OpenVDB to Softimage
Plugins linking to this thread: (hide)
OpenVDB ICE
This is a Softimage ICE integration of the OpenVDB suite, Dreamworks Animation's volumetrics toolset which has been built around a new data
structure for efficient storage and manipulation of big volumes. See openvdb_dreamworks.pdf for slides of a OpenVDB feature presentation.
Oleg Bliznuk, author of Exocortex's Implosia FX and Explosia FX has created this ICE adapter. His fluid simulator »Explosia FX« (free as a noncommercial version) can be used to create VDB files. OpenVDB ICE covers the essential features of the OpenVDB suite:
Mental Ray/Arnold shaders included: VDBGridReaderScalar VDBGridReaderVec3 VDBGridReaderInt VDBVolumeShaderSimple VDBBlackbody
Compounds included: Voxelize Geometry Voxelize Particles Get VDB Grid Set VDB Grid File Grid IO Add Noise Fogvolume Filter LevelSet Boolean Operations LevelSet Morphology VolumeFog Boolean Operations Advection Get Value at Coordinate Set Value at Coordinate Grid To Mesh Mesh To Grid Get Grid Data Particles To Grid Grid IO Fill Box Grid Change Grid Class Noise Advect Level Set Morphological Filters Rebuild LevelSet Resample Grid Transform Platonic Create Grid CSG Deep Copy Grid Morpher Polygonize Grid Solidify Level Set Create Velocity Field Display Grid Info Platonic Sphere Resize Container to Active Volume Visualize Grid Slice Visualize Scalar Grid Visualize Scalar Grid Slice Visualize Vector Grid Visualize Vector Grid Slice
For feedback and questions, visit the si-community thread. There's also some info there on how to interoperate with emFluid. Here is a demo video by the author and another video from the thread, created by Rob Chapman using only OpenVDB ICE nodes and rendered using the included openVDB arnold shaders. Requirements: Microsoft Visual C++ 2012 Redistributable Package (x64)
local backup: OpenVDB_to_Softimage_v0.8.rar
Oleg Bliznuk, author of Exocortex's Implosia FX and Explosia FX has created this ICE adapter. His fluid simulator »Explosia FX« (free as a noncommercial version) can be used to create VDB files. OpenVDB ICE covers the essential features of the OpenVDB suite:
Mental Ray/Arnold shaders included: VDBGridReaderScalar VDBGridReaderVec3 VDBGridReaderInt VDBVolumeShaderSimple VDBBlackbody
Compounds included: Voxelize Geometry Voxelize Particles Get VDB Grid Set VDB Grid File Grid IO Add Noise Fogvolume Filter LevelSet Boolean Operations LevelSet Morphology VolumeFog Boolean Operations Advection Get Value at Coordinate Set Value at Coordinate Grid To Mesh Mesh To Grid Get Grid Data Particles To Grid Grid IO Fill Box Grid Change Grid Class Noise Advect Level Set Morphological Filters Rebuild LevelSet Resample Grid Transform Platonic Create Grid CSG Deep Copy Grid Morpher Polygonize Grid Solidify Level Set Create Velocity Field Display Grid Info Platonic Sphere Resize Container to Active Volume Visualize Grid Slice Visualize Scalar Grid Visualize Scalar Grid Slice Visualize Vector Grid Visualize Vector Grid Slice
For feedback and questions, visit the si-community thread. There's also some info there on how to interoperate with emFluid. Here is a demo video by the author and another video from the thread, created by Rob Chapman using only OpenVDB ICE nodes and rendered using the included openVDB arnold shaders. Requirements: Microsoft Visual C++ 2012 Redistributable Package (x64)
local backup: OpenVDB_to_Softimage_v0.8.rar
-
- Posts: 253
- Joined: 17 Feb 2010, 15:13
Re: OpenVDB to Softimage
ok. looks like this does the trick to match voxel grids and data content of emFluid and VDB.
still some issues.
e.g. i build the colorGrid inside emFluid as it does not exist like so. looking up with closest location decreases performance massivly...
also i expected a little bit more details with a cell size of 0.2...
still some issues.
e.g. i build the colorGrid inside emFluid as it does not exist like so. looking up with closest location decreases performance massivly...
also i expected a little bit more details with a cell size of 0.2...
Last edited by caledonian_tartan on 07 Jan 2014, 15:26, edited 1 time in total.
Re: OpenVDB to Softimage
I do believe you are turning the emfluid visualizer particles to VDB rather than the actual fluid grid.
version 4.0 you can cache the grid to Bafl format. for VDB it is the same way just rename to vdb in the export - but it could be a later version than you currently have
version 4.0 you can cache the grid to Bafl format. for VDB it is the same way just rename to vdb in the export - but it could be a later version than you currently have
Gossip is what no one claims to like, but everybody enjoys.
-
- Posts: 253
- Joined: 17 Feb 2010, 15:13
Re: OpenVDB to Softimage
thanks Tekano
caching .bafl is easy, but i get this error at rendertime. (while reading the renamed bafl file)
what do i need to chache on emFluid? waste? heat? density? velocity? all?
what's the ReadingGridName on the VDB_IO reader?
(using emFluid4 _ Solver v6, including the beta cache on file node)
the emFluid docs say:
caching .bafl is easy, but i get this error at rendertime. (while reading the renamed bafl file)
# WARNING : [VDB][GRIDIO]: IoError: not a VDB file
what do i need to chache on emFluid? waste? heat? density? velocity? all?
what's the ReadingGridName on the VDB_IO reader?
(using emFluid4 _ Solver v6, including the beta cache on file node)
i'm not shure how to get the real grid instead of just the visualizer. are you shure they're not the same?I do believe you are turning the emfluid visualizer particles to VDB rather than the actual fluid grid.
the emFluid docs say:
"Grid (Array) - for advanced users. These ports give you access to the solver's internal data grids which are stored as flat arrays."
SI 2015 @ WIN7-64
Re: OpenVDB to Softimage
ah yes the grid array should work! I thought you were just connecting the pointcloud and the cell size attribute earlier
will try a VDB export out later to see if it works
will try a VDB export out later to see if it works
Gossip is what no one claims to like, but everybody enjoys.
-
- Posts: 253
- Joined: 17 Feb 2010, 15:13
Re: OpenVDB to Softimage
here's a comparison of BA_Fluid and VDB rendering.
both using the same emFluid4 Grid as Source with a cell size of 0.25
Looks quite the same. still lacks detail.
i noticed strange behaviour with "emFluid4 _ Solver (v6)".
the VisualFeedback_AlphaBox is limited in size and cuts the top. works wrong. especially with low cellsize.
no problem with v4. got to discuss that somewhere else.
still not able to load .bafl (renamed to .vdb)...
both using the same emFluid4 Grid as Source with a cell size of 0.25
Looks quite the same. still lacks detail.
i noticed strange behaviour with "emFluid4 _ Solver (v6)".
the VisualFeedback_AlphaBox is limited in size and cuts the top. works wrong. especially with low cellsize.
no problem with v4. got to discuss that somewhere else.
still not able to load .bafl (renamed to .vdb)...
SI 2015 @ WIN7-64
Re: OpenVDB to Softimage
>>Gradient
tools::gradient
Mean curvature
tools::meanCurvature
Closest-point transform
tools::cpt
Divergence
tools::divergence
Laplacian
tools::laplacian
Buoyant density in an incompressible
fluid simulation
Magnitude
tools::magnitude
Curl
tools::curl
caledonian_tartan
Maybe you better try to get emfluid 5 beta and use it's native vdb export ..? It should be much more faster and in some cases may hasn't interpolation artifacts
tools::gradient
Mean curvature
tools::meanCurvature
Closest-point transform
tools::cpt
Divergence
tools::divergence
Laplacian
tools::laplacian
Buoyant density in an incompressible
fluid simulation
Magnitude
tools::magnitude
Curl
tools::curl
caledonian_tartan
Maybe you better try to get emfluid 5 beta and use it's native vdb export ..? It should be much more faster and in some cases may hasn't interpolation artifacts
Re: OpenVDB to Softimage
Caladonian tartan:
yes my mistake you can only change the extension on the write file node to .vdb in emfluid beta not version 4
but it does work fine and also I used the blackbody shader driven by an emfluid heat grid (exported as vdb)
** edit ** here is image as promised below
Mr Core:
I have found various functions mentioned earlier in this thread in the VDB Levelset Mortphology compound. eg
mean value
dilate
erode
Gaussian
median value
mean curvature
Laplacian Flow
Track Narrowband
Renormalize
also have grasped that you have to input a vdb file and rebuild the level set before any noises or morphology can be applied then the grid class needs changing back from sdf to fog afterwards
so yeah looks like already have pretty much what I had asked for already and as for speed.. well from my tests so far these functions are being done in real time over 100's of vovels radius. I even accidently toggled off voxels into units..? any way hundreds of units took a few minutes to gaussian blur but I let it continue and did not crash. so yes this seems VERY fast.
yes my mistake you can only change the extension on the write file node to .vdb in emfluid beta not version 4
but it does work fine and also I used the blackbody shader driven by an emfluid heat grid (exported as vdb)
** edit ** here is image as promised below
Mr Core:
I have found various functions mentioned earlier in this thread in the VDB Levelset Mortphology compound. eg
mean value
dilate
erode
Gaussian
median value
mean curvature
Laplacian Flow
Track Narrowband
Renormalize
also have grasped that you have to input a vdb file and rebuild the level set before any noises or morphology can be applied then the grid class needs changing back from sdf to fog afterwards
so yeah looks like already have pretty much what I had asked for already and as for speed.. well from my tests so far these functions are being done in real time over 100's of vovels radius. I even accidently toggled off voxels into units..? any way hundreds of units took a few minutes to gaussian blur but I let it continue and did not crash. so yes this seems VERY fast.
Gossip is what no one claims to like, but everybody enjoys.
Re: OpenVDB to Softimage
The vdb export from emfluid5 works fine here, export with vdb extension, put shader on a cube, render.
One problem I have here is: how do I read sequences in the shader?
I tried tokens: [Frame #4], #### etc. but that doesn't seems to work, I don't know how to use the currentframe slider...
Any hints?
Cheers, Wim
One problem I have here is: how do I read sequences in the shader?
I tried tokens: [Frame #4], #### etc. but that doesn't seems to work, I don't know how to use the currentframe slider...
Any hints?
Cheers, Wim
Re: OpenVDB to Softimage
Found it! it seems $F5 stands for the "currentframe" parameter.
For example grid_00_$F4 gives me the name + currentframe in 4 digits.
The correct gridname I found by opening the vdb file in a text editor (waste).
Very easy to use if you know the basics, I know it's WIP but some more basic examples would be handy.
Thanks for this great plugin!
For example grid_00_$F4 gives me the name + currentframe in 4 digits.
The correct gridname I found by opening the vdb file in a text editor (waste).
Very easy to use if you know the basics, I know it's WIP but some more basic examples would be handy.
Thanks for this great plugin!
-
- Posts: 11
- Joined: 14 Jan 2014, 10:45
- Location: clermont-ferrand france
- Contact:
Re: OpenVDB to Softimage
First of all, great work Oleg!
But I have a problem though:
I'm on a windows xp 64 bits machine and I can't figure how to install properly the addon.
With DependencyWalker I have an unresolved symbol : InitializeCriticalSectionEx in Kernell32.dll
Do you think it's even possible? Or the plugin has to be compiled on a xp machine?
I also try to compile from source(from steven caron github repo) and while I compile successfully(on my XP setup), I encounter
the same problem.
Any ideas?
Thanks in advance
Ben
But I have a problem though:
I'm on a windows xp 64 bits machine and I can't figure how to install properly the addon.
With DependencyWalker I have an unresolved symbol : InitializeCriticalSectionEx in Kernell32.dll
Do you think it's even possible? Or the plugin has to be compiled on a xp machine?
I also try to compile from source(from steven caron github repo) and while I compile successfully(on my XP setup), I encounter
the same problem.
Any ideas?
Thanks in advance
Ben
-
- Posts: 253
- Joined: 17 Feb 2010, 15:13
Re: OpenVDB to Softimage
seems like "Kernell32.dll" is 32bit, which is not supposed to be working on 64bit softimage... but correct me if i'm wrong
SI 2015 @ WIN7-64
Re: OpenVDB to Softimage
Hi Ben,
Which version of Visual studio you are using ? according to some info in web VS2012 uses runtime lib features not available on XP.
http://forums.codeguru.com/showthread.p ... -statement
Which version of Visual studio you are using ? according to some info in web VS2012 uses runtime lib features not available on XP.
http://forums.codeguru.com/showthread.p ... -statement
-
- Posts: 11
- Joined: 14 Jan 2014, 10:45
- Location: clermont-ferrand france
- Contact:
Re: OpenVDB to Softimage
I'm using visual studio 2008...
Which version of VS are you using?
I definitely should update my setup, I know.
Since then I never had encountered such problem,
but also never used lib whith so much dependencies...
thanks for the link, I'll look at it.
Which version of VS are you using?
I definitely should update my setup, I know.
Since then I never had encountered such problem,
but also never used lib whith so much dependencies...
thanks for the link, I'll look at it.
Re: OpenVDB to Softimage
Ok Oleg, so I've got the plugin up and running, and everything works great! Except for one thing.......how on earth do you get the cloud fx files in houdini to save to a vdb file?? This is driving me nuts, as I can't find ANYTHING on the internet on how to do this??
Re: OpenVDB to Softimage
That's an API that's only from Windows Vista and up.benmalartre wrote:First of all, great work Oleg!
But I have a problem though:
I'm on a windows xp 64 bits machine and I can't figure how to install properly the addon.
With DependencyWalker I have an unresolved symbol : InitializeCriticalSectionEx in Kernell32.dll
Do you think it's even possible? Or the plugin has to be compiled on a xp machine?
Re: OpenVDB to Softimage
you should find some houdini guy and force him to open his secret Seriously, i got my files from friend who is experienced with houdini. And this question is pretty actual as you are one from many who asked on how to export these .vdb.reaver wrote:Ok Oleg, so I've got the plugin up and running, and everything works great! Except for one thing.......how on earth do you get the cloud fx files in houdini to save to a vdb file?? This is driving me nuts, as I can't find ANYTHING on the internet on how to do this??
Who is online
Users browsing this forum: No registered users and 11 guests