OpenVDB remesh

Edit: I had a problem by the C++ redistributable

@DcVertice: If you are using the beta .py you also need to also install the beta libs from Gumroad. Currently they only support 64-bit Windows and Blender with Python 3.5.

@Hoverkraft: You mean like this?
https://media.giphy.com/media/4WEKPsWw5zG42Are8w/giphy.gif
It’s currently using verts, but it could use any points in theory. I’m not familiar with non-realtime workflows so someone would have to point it out to me how this would be useful.

This is awesome! Maybe I’m getting ahead of myself, but is there any possibility of using this as a particle mesher in the future, with cache or something similar?

@RaphaelBarros: Probably
https://media.giphy.com/media/1iqfvFcbcm1DzOt5Zo/giphy.gif
It doesn’t currently cache anything, just remeshes per render frame. (this is not yet released, just proof of concept)

1 Like

You just got yourself a buyer. That’s awesome!!!

Wooop! I’d already bought it anyway but still…

The beta that includes particle remeshing is up on Gumroad and Github. There’s a separate addon you have to enable. Just search for VDB in the user preferences when you have copied all .py files into addon folder–and enable them. Also copy new new libs to modules folder before starting Blender.

The Python side of particle remeshing is based on Cube Surfers implementation (http://pyroevil.com/cubesurfer-addon-download/). Here’s how to use that approach: https://www.youtube.com/watch?v=ArVXkfXHDWg
The difference being you don’t need any modifiers as the smoothing is done on voxel level.

Hmm, curious about the performance of the openvdb mesher. It produces good looking results :slight_smile: How fast is the meshing process for higher details ? Does it scale well if detail is cranked up ?
Tried to build pyopenvdb from source, errored out with “VolumeToComplexMesh” not being a member of FloatGrid / pygrid or something (will try again later)

There is also a “Metaball” mode in the remesh modifier (in the Fracture Modifier branch)

But this modifier code doesnt scale well imho.

I have this problem when a press OpenVDB:

Traceback (most recent call last):
File “C:\Users\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\vdb_remesh.py”, line 489, in execute
self.filter_style, self.filter_sigma, grid=self.grid)
File “C:\Users\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\vdb_remesh.py”, line 268, in vdb_remesh
return (_write(grid), grid if saved_grid == None else saved_grid)
File “C:\Users\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\vdb_remesh.py”, line 264, in _write
verts, tris, quads = gr.convertToComplex(iso, adapt, fit, filter_width, filter_param)
AttributeError: ‘FloatGrid’ object has no attribute ‘convertToComplex’

location: <unknown location>:-1

@scorpion81: About this fast (w/ i7 4770 10k particles):
https://media.giphy.com/media/1ffOfqJc87vCTyF43x/giphy.gif
Also I’m using a custom PyOpenVDB that has some additional functionality in the newer versions, so the (newer) addons wont work with the vanilla version.

@LukasCub: Which Python version (beta only supports Python 3.5 atm), do you have Visual C++ 2017 runtime installed? The error means you’re using old libs or the new libs can’t be loaded for one reason or another.

Thanks for your replay! I have Blender 2.94 and python console 3.6.2 and I install vc_redist.x64 from this site https://support.microsoft.com/sk-sk/help/2977003/the-latest-supported-visual-c-downloads

Ok! When I used vdb_remesh-2018-04-14 it´s worked but when I install vdb_remesh-2018-04-23 it does not work anymore

It’s strange that pyopenvdb-python36-win64 works with this version vdb_remesh-2018-04-14 but does not work with this vdb_remesh-2018-04-23

It doesn’t work because beta currently doesn’t have a Python 3.6 release. It’s ready to ship but I still have to finalize it, might be tomorrow.

Interesting. Any chance of a version for Blender MacOS?

Finally!
I’ve found addon that fail to intall)
What a mess - a lot of files with absolutely no proper description and even readme file.

Can it be fixed?
Can you add a description txt file, that will explain what has come when it was obtained througs [Downlad all] button?

Anyway, nice solution for meshing leafes for snowing.
A must-have addon.

Wow, I usually used Zbrush for complex shapes to not waste time, but this looks ok. Can you tell me how fast it is comparing to basic blender remesh?

It’s about the same I would say. But once you get the mesh transformed into voxel space, it should be much quicker to change parameters outside voxel size.

I made it because the existing remesh has some issues:

Plus with increasing isovalue and projecting back you can fill holes and cavities:

And you can smooth in voxel space, which creates a completely different option from all other smoothing inside Blender, in my understanding.

3 Likes