Is it possible for TG to export animated vdb sequences?

Started by gao_jian11, July 17, 2024, 07:36:41 AM

Previous topic - Next topic

gao_jian11

Is it possible for TG to export animated vdb sequences?
In the last few days I've seen that the new version of ue5.4 supports vdb functionality, and the dynamic vdb generated by software like EmberGen performs amazingly well in ue. tg4 can't export vdb for dynamic sequences right now, so it would be very exciting to have this functionality.

Kevin Kipper

Matt wrote a script to export a vdb sequence using Python and Terragen's command line render features.  The following link to the script was posted on the Terragen Discord forum channel: https://gist.github.com/mfairclough/467e5e328912d6b556e2179188ed3ba5

Hope this helps.


gao_jian11

Thanks Kevin Kipper, looks like I still need to learn a bit of Python. but I found what is probably a bug. In an Easy cloud, I rendered the first frame and the hundredth frame separately in tg, the clouds are changing. But I right click on the exported vdb and observe in ue that they all look like the first frame, it seems that the exported vdb in Easy cloud are all the first frame. I did not test cloud layer 2 and 3, I will test them later.


Kevin Kipper

Using the Python script, we were able to export a vdb sequnce of an Easy Cloud, then load the vdb files into a third party 3d package.  Here's an example of the test we made.  The top row is the animated cloud layer in Terragen and the bottom row is the vdb assets loaded into another 3d application.

30838_VDB_Sequence_Export_Test.JPG

gao_jian11

#4
This is a vdb export problem I'm having.There is obviously a huge difference between frame 1 and frame 100, but the vdb file looks the same in blender when I export it separately.
11.jpg

test_vdb.tgd  This is a tgd file.

Kevin Kipper

Did you use the python script to export the vdb files?

gao_jian11

Kevin Kipper, I've found the cause of the problem. In the cloud animation panel, the vdb file of animation cannot be exported only by checking the Enable drift and Enable evolution options, while the Time warp option must be checked and the animation key frame set. I right-click the export successfully, and I learned to use Python script, and the export succeeded. Thanks again!
174759.jpg