Author Topic: waves crashing against cliff  (Read 2798 times)

Offline Aerometrex

  • Member
  • *
  • Posts: 86
  • Fabrice
    • natural and urban 3D models
waves crashing against cliff
« on: February 12, 2015, 03:39:18 AM »
The water animation sequence has been generated using Blender and imported into Terragen for rendering.

I am passionate  about the art and science of digital aerial mapping, photogrammetry, geospatial information, VR and 3D modelling.
http://aero3dpro.com

Offline Oshyan

  • Planetside Staff
  • *
  • Posts: 12453
  • Holy snagging ducks!
Re: waves crashing against cliff
« Reply #1 on: February 12, 2015, 03:43:30 AM »
Interesting! So the water simulation results were imported as an OBJ sequence?

- Oshyan

Offline Aerometrex

  • Member
  • *
  • Posts: 86
  • Fabrice
    • natural and urban 3D models
Re: waves crashing against cliff
« Reply #2 on: February 12, 2015, 04: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.
I am passionate  about the art and science of digital aerial mapping, photogrammetry, geospatial information, VR and 3D modelling.
http://aero3dpro.com

Offline bigben

  • Member
  • *
  • Posts: 2129
  • The Long Stranger rides again
    • Tinkering with Terragen
Re: waves crashing against cliff
« Reply #3 on: February 13, 2015, 04:26:27 AM »
very interesting

Offline TheBadger

  • Member
  • *
  • Posts: 7416
  • what's the difference?
Re: waves crashing against cliff
« Reply #4 on: February 13, 2015, 04:59:03 AM »
Yeah, really! Is this at real scale then?
Quote
I had to edit the .tgd directly to associate each frame with a pair of objects.
Meaning what, exactly?
It has been eaten.

Offline Aerometrex

  • Member
  • *
  • Posts: 86
  • Fabrice
    • natural and urban 3D models
Re: waves crashing against cliff
« Reply #5 on: February 15, 2015, 09:50:14 PM »
Yeah, really! Is this at real scale then?
Quote
I 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 am passionate  about the art and science of digital aerial mapping, photogrammetry, geospatial information, VR and 3D modelling.
http://aero3dpro.com

Offline Oshyan

  • Planetside Staff
  • *
  • Posts: 12453
  • Holy snagging ducks!
Re: waves crashing against cliff
« Reply #6 on: February 15, 2015, 10: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

Offline Aerometrex

  • Member
  • *
  • Posts: 86
  • Fabrice
    • natural and urban 3D models
Re: waves crashing against cliff
« Reply #7 on: February 15, 2015, 11:29:01 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 am passionate  about the art and science of digital aerial mapping, photogrammetry, geospatial information, VR and 3D modelling.
http://aero3dpro.com

Offline Oshyan

  • Planetside Staff
  • *
  • Posts: 12453
  • Holy snagging ducks!
Re: waves crashing against cliff
« Reply #8 on: February 15, 2015, 11: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

Offline Aerometrex

  • Member
  • *
  • Posts: 86
  • Fabrice
    • natural and urban 3D models
Re: waves crashing against cliff
« Reply #9 on: February 16, 2015, 12:47:01 AM »
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 am passionate  about the art and science of digital aerial mapping, photogrammetry, geospatial information, VR and 3D modelling.
http://aero3dpro.com

Offline Oshyan

  • Planetside Staff
  • *
  • Posts: 12453
  • Holy snagging ducks!
Re: waves crashing against cliff
« Reply #10 on: February 16, 2015, 01:37:16 AM »
I'm glad to hear that. :)

- Oshyan

Offline bobbystahr

  • Member
  • *
  • Posts: 9357
  • Turn, and face the Strange Ch Ch Changes...D Bowie
Re: waves crashing against cliff
« Reply #11 on: March 31, 2015, 03:12:29 PM »
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.
something borrowed,
something Blue.
Ring out the Old.
Bring in the New

bobbystahr

 

anything