Planetside Software Forums

General => Terragen Animation => Topic started by: Aerometrex on February 11, 2015, 11:39:18 PM

Title: waves crashing against cliff
Post by: Aerometrex on February 11, 2015, 11:39:18 PM
The water animation sequence has been generated using Blender and imported into Terragen for rendering.

Title: Re: waves crashing against cliff
Post by: Oshyan on February 11, 2015, 11:43:30 PM
Interesting! So the water simulation results were imported as an OBJ sequence?

- Oshyan
Title: Re: waves crashing against cliff
Post by: Aerometrex on February 12, 2015, 12:55:06 AM
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.
Title: Re: waves crashing against cliff
Post by: bigben on February 13, 2015, 12:26:27 AM
very interesting
Title: Re: waves crashing against cliff
Post by: 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?
Title: Re: waves crashing against cliff
Post by: Aerometrex on February 15, 2015, 05:50:14 PM
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.
Title: Re: waves crashing against cliff
Post by: 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
Title: Re: waves crashing against cliff
Post by: Aerometrex on February 15, 2015, 07:29:01 PM
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>

Title: Re: waves crashing against cliff
Post by: Oshyan on February 15, 2015, 07:41:17 PM
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
Title: Re: waves crashing against cliff
Post by: Aerometrex on February 15, 2015, 08:47:01 PM
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.
Title: Re: waves crashing against cliff
Post by: Oshyan on February 15, 2015, 09:37:16 PM
I'm glad to hear that. :)

- Oshyan
Title: Re: waves crashing against cliff
Post by: bobbystahr on March 31, 2015, 11:12:29 AM
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.