Jump to content
konstantin magnus

How to avoid double walls created by convertVDB

Recommended Posts

Posted (edited)

I have a point cloud with large open parts and turn this into a VDB from particles.

pc_open.jpg

Logically, but unfortunately I get double walls after meshing it.

pc_double_wall.jpg

Whats the most robust way to get a hollow model from this right away? Even if there are dozens of parts, messy geometry etc.

PC_double_wall.hiplc

Edited by konstantin magnus

Share this post


Link to post
Share on other sites
Posted (edited)

here's my go...but it needs the Normals to be established for Peak to work tho...if you were given just point cloud with no normals...dunno...

PC_double_wall_vu.hipnc

(but double walls are good for massage parlours tho)

Edited by Noobini

Share this post


Link to post
Share on other sites

Hi vusta, thanks for your help.

The point cloud`s normals are potentially corrupted, too. So, as you suspected, I am looking for a more technical approach that may include SDFs gradients or possibly any information coming from within the VDB field.

Share this post


Link to post
Share on other sites

i tried this road but i'm stuck:
i am trying to find the borders of the mesh with an attribute (I tried with the curvature and with another silly method, both gives the same results in this case)  and primitiveSplit them so in my mind i would have the big face on one side, the faces at the borders, and the other side of the mesh. The problem is that this method is very dirty and i would need to create a clean seam line. Once you can separate the 2 big faces you can choose the one you prefer based on some parameters (like occlusion maybe?) and reproject it more or less in the position where the original scattered points were. 

The problem is to find a cleaner border edge to use to split the prims. 

maybe there is a good way to find the borders of the original scattered points, I usually count how many neighbours in a radius and use a treshold to filter those particles.. but is not always great, and use those border points to create a line, then extrude and boolean the mesh to split it.

I attach the file if you want to have a look... :/  I'm pretty sure there must be some mathy way of finding those features.

findBorders.hipnc

Share this post


Link to post
Share on other sites
1 hour ago, MENOZ said:

occlusion maybe?

Yes sure, I can delete points by their occlusion. But my question is rather if creating inner walls can be avoided right at the outset?

occlusion_0.jpg.e9a2507cfba461cd56ae9043913f5de8.jpgocclusion_1.jpg.2680fb0dd8712cd549ad6c5374d1cf40.jpg

Occlusion_test.hiplc (make sure to enable game dev tools)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×