The water animation sequence has been generated using Blender and imported into Terragen for rendering.
Interesting! So the water simulation results were imported as an OBJ sequence?
- Oshyan
Yes, a sequence of 150 objects for the water and another 150 objects (of 5000 particles) for the white tracer and floater in the water.
I had to edit the .tgd directly to associate each frame with a pair of objects.
very interesting
Yeah, really! Is this at real scale then?
QuoteI had to edit the .tgd directly to associate each frame with a pair of objects.
Meaning what, exactly?
Quote from: TheBadger on February 13, 2015, 12:59:03 AM
Yeah, really! Is this at real scale then?
QuoteI had to edit the .tgd directly to associate each frame with a pair of objects.
Meaning what, exactly?
Yes it is real scale.
It is not possible to import a obj sequence into Terragen so I had to associate each frames from 1 to 150 with the corresponding obj and move the other ones out of the field of view to make sure only one obj is visible at any point in time. Instead of doing the setup into Terragen, it was easier to make a script and edit the .tgd file directly.
I'm not sure it meets your needs, but you can use OBJ sequences in TG. You just use a wildcard in the file name, e.g. waves_%04d.obj, which would fine waves_0001.obj as well as waves_1011.obj, all in between, etc.
- Oshyan
Quote from: Oshyan on February 15, 2015, 06:04:04 PM
I'm not sure it meets your needs, but you can use OBJ sequences in TG. You just use a wildcard in the file name, e.g. waves_%04d.obj, which would fine waves_0001.obj as well as waves_1011.obj, all in between, etc.
- Oshyan
I'm aware of that but the issue is to turn the obj "on and off" to avoid having all off them at the same location at the same time so the work-around was to associate each object with the right keyframe.
for example the following animation is associated to obj_94.obj. the obj needs to disappear from the camera view before and after frame 94 (in my case it goes underground).
<animationData param = "translate" componentIndex = "1" >
<curve mode = "tcb" >
<key t = "93" value = "-100" tension = "0" continuity = "0" bias = "0" />
<key t = "94" value = "2" tension = "0" continuity = "0" bias = "0" />
<key t = "95" value = "-100" tension = "0" continuity = "0" bias = "0" />
</curve>
</animationData>
I'm still not clear on why it was necessary to do it that way. If you have a simulation that outputs one object for each computed frame of a fluid sim solution, then using the sequence load function in TG will associate each object 1:1 with a given frame. So unless you're using a different number of simulation frames than the number of final output frames, there's no need to manually hide anything. The object sequence load function does not load things on top of other, previously loaded objects; it loads the corresponding object for the current frame alone.
I assume though that since you knew of this functionality you must have tested it and it didn't meet your needs for some reason. It's nice to see fluid sims being rendered in TG, so I'm curious to know what in the standard workflow did not function as needed.
- Oshyan
The loading of the sequence is working fine now that I changed my folder name. TG didn't read properly my folder name which included "R&D" when adding the path in the Filename field so I found this work-around.
It really makes my life mush easier now.
Thanks a lot.
I'm glad to hear that. :)
- Oshyan
Great to see, been waiting for someone knowledgeable to attempt this, and also great to hear the the load .obj sequence works well and as expected.
Terragen seems to like everything to be in one folder I've found with no sub folders. I've not worked with animation over much yet but this seems to apply there as well.