OpenVDB support

Discussion related to the Engine functionality, implementations and API.
neo2068
Developer
Developer
Posts: 102
Joined: Tue Dec 05, 2017 6:06 pm

Re: OpenVDB support

Post by neo2068 » Wed Oct 09, 2019 5:36 am

Rivental1 wrote:
Sun Oct 06, 2019 5:28 am
Thank you. Blender smoke simulator is very slow and often gives strange results... So would be great to render VDB cash from other programms, like Houdini or Cinema 4d with FumeFX or TFD. Strange why blender no read other VDB files...
LuxCore has support for VDB files from other programs as Dade showed in this post with the densitygrid texture.

Code: Select all

scene.textures.tex.type = densitygrid
scene.textures.tex.nx = 256
scene.textures.tex.ny = 256
scene.textures.tex.nz = 256
scene.textures.tex.wrap = black
scene.textures.tex.openvdb.file = scenes/media/blender-blosc.vdb
scene.textures.tex.openvdb.grid = density
scene.textures.tex.mapping.type = globalmapping3d
scene.textures.tex.mapping.transformation = 1. 0 0 0  0 0 -1. 0  0 .8 0 0  0.5 0.5 0.5 1
I work on the OpenVDB support for the Blender addon. Currently, it is in a very early stage and it doesn't work with e.g. houdini VDB files on my side because the OpenVDB library isn't compiled with blosc support. I have to fix that first. Animations, e.g. automatic file selection according to the current frame doesn't work either.
i7 5820K, 32 GB RAM, NVIDIA Geforce GTX 1080 + GTX 780, Windows 10 64bit, Blender 2.79b
Support LuxCoreRender project with salts and bounties

User avatar
Dade
Developer
Developer
Posts: 3143
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: OpenVDB support

Post by Dade » Wed Oct 09, 2019 7:56 am

neo2068 wrote:
Wed Oct 09, 2019 5:36 am
it is in a very early stage and it doesn't work with e.g. houdini VDB files on my side because the OpenVDB library isn't compiled with blosc support.
It is https://github.com/LuxCoreRender/Window ... /blosc.lib but, may be, is a OpenVDB/Blosc version problem ? I was using the version used by Blender for compatibility (it is a quite old version).
Support LuxCoreRender project with salts and bounties

neo2068
Developer
Developer
Posts: 102
Joined: Tue Dec 05, 2017 6:06 pm

Re: OpenVDB support

Post by neo2068 » Wed Oct 09, 2019 8:39 am

Dade wrote:
Wed Oct 09, 2019 7:56 am
It is https://github.com/LuxCoreRender/Window ... /blosc.lib but, may be, is a OpenVDB/Blosc version problem ? I was using the version used by Blender for compatibility (it is a quite old version).
Thank you for the hint. I updated the OpenVDB library in the branch to the latest one. Probably I have messed up something in the build configuration. I will check.
i7 5820K, 32 GB RAM, NVIDIA Geforce GTX 1080 + GTX 780, Windows 10 64bit, Blender 2.79b
Support LuxCoreRender project with salts and bounties

Rivental1
Posts: 11
Joined: Tue Mar 05, 2019 9:15 pm

Re: OpenVDB support

Post by Rivental1 » Sat Oct 12, 2019 4:33 pm

neo2068 wrote:
Wed Oct 09, 2019 5:36 am
I work on the OpenVDB support for the Blender addon. Currently, it is in a very early stage and it doesn't work with e.g. houdini VDB files on my side because the OpenVDB library isn't compiled with blosc support. I have to fix that first. Animations, e.g. automatic file selection according to the current frame doesn't work either.
Thank you. It is a very important feature. Now, as i know, only octane can render VDB files inside blender, but i dont like results from octane.

Post Reply