bavarianbasti
Hi all,

I am super new to SouP/OVDB and need your help.

I have exported the results from a pyro sim in Houdini to vdb files.
These contain density and vel.x, vel.y, vel.z.

Now, in Maya, I am using the BE_VDBRead and then BE_VDBToMayaFluid, but the Velocity Grid dropdown on the BE_VDBToMayaFluid only lets me pick either vel.x, vel.y, or vel.z.

How can I apply all of the velocity terms to my Maya fluid?

Any help is much appreciated.

Cheers,
Sebastian
Reply 0 0
besha1
Use the BE_VDB_VectorMerge it will create from three scalar velocity grids one grid of type vec3s and you can use it in Maya fluid.
Reply 0 0
bavarianbasti
Hi besha1,

Thanks so much for the fast reply.
Now that I have the merged velocity available in the Maya fluid, I am struggling to apply it.
I attached the fluid to a custom node that uses the MFnFluid::getForceAtPoint API.
I set the Contents Method on the Maya fluid to Dynamic Grid for Velocity, but nothing appears to happen. Neither for Static Grid. The only time I get some result from the MFnFluid::getForceAtPoint API, it appears to just be pointing in a uniform direction which looks like (1,1,1).

Also, I tried visualizing the velocity to make sure it's all there, but using the BE_VDBVolumeTrailShape for the merged velocity grid only shows the bounding box, but no curves.

Any help would be much appreciated.

Cheers,
Sebastian

Reply 0 0
besha1
sorry for delay
you're right, I checked the Maya fluid does not want to give the velocity data
I'll try to fix it in the next release

why do you need velocity in the Maya fluid?
if you just need data like from MFnFluid::getForceAtPoint
you can use BE_VDBAttributeFromVDB node
Reply 0 0
bavarianbasti
Hi besha1,

Thank you so much for getting back to me.
Your example files are really useful to help my understanding.

As to your question: The reason why I can't just use the BE_VDBAttributeFromVDB node is that my custom node works with Maya fluids and flows. Hence why I tried to work with the BE_VDBToMayaFluid node.
I am trying to find the least intrusive way to use VDBs and BE_VDBToMayaFluid would fit in seamlessly.
I hope this makes sense.

Cheers,
Sebastian
Reply 0 0
besha1
I fixed it.
if you use Windows I can give you fixed version
what version of Maya you use?
Reply 0 0
bavarianbasti
Hi besha1,

That sounds great, thanks.
I am currently using Maya 2018.3 in Windows.

Thanks so much,
Sebastian
Reply 0 0
besha1
fix velocity for maya 2018 win
https://drive.google.com/open?id=1memrz6aKD8I5ygMPY9MhZ_Xr1zbfSZmS
replace BE_OpenVDB.mll in your plugin directory
\ovdb\plug-ins\maya2018_win
Reply 0 0
bavarianbasti
Hi besha1,

Fantastic!
This has solved the issue.
Thank you so much for the fast responses and the fix.

Cheers,
Sebastian
Reply 0 0
Reply