Author Topic: Generating Flowmaps in Terragen for animation of static skies.  (Read 913 times)

Offline kvasibarn

  • Member
  • *
  • Posts: 11
  • Terragen artist since 1942
Generating Flowmaps in Terragen for animation of static skies.
« on: February 06, 2018, 08:48:03 AM »
Hi!

I wonder if its possible to generate flowmaps (motion vectors) in TG4 to simulate cloud movement / wind on a static image.

Using these colors

There have been some animated gifs of stormclouds literally circling the web lately showcasing the effect I am after.



Any ideas?
« Last Edit: February 06, 2018, 08:54:43 AM by kvasibarn »
fiat lux.

Offline cyphyr

  • Terragen Alpha Tester (Win)
  • ***
  • Posts: 3807
    • richardfraser
Re: Generating Flowmaps in Terragen for animation of static skies.
« Reply #1 on: February 06, 2018, 09:00:15 AM »
You could do something very similar without using flow maps, although I'm sure you probably could and I'd love to know how.
I made this a few years ago with transform and vortex shaders. I'll see if I still have the file (probably don't )

https://vimeo.com/134650275

EDIT: Tgd is a few posts down and I had previously uploaded it HERE.
« Last Edit: February 07, 2018, 08:12:45 AM by cyphyr »
www.richardfraser.co.uk
https://www.facebook.com/RichardFraserVFX/
/|\

i7 5930 @3.5Ghz, 32Gb
i7 2600k @3.4Ghz, 16Gb
i7 980 @3.33Ghz, 16Gb

Offline luvsmuzik

  • Member
  • *
  • Posts: 2620
    • luvsmuzik 1995
Re: Generating Flowmaps in Terragen for animation of static skies.
« Reply #2 on: February 06, 2018, 11:30:27 AM »
You could do something very similar without using flow maps, although I'm sure you probably could and I'd love to know how.
I made this a few years ago with transform and vortex shaders. I'll see if I still have the file (probably don't )

https://vimeo.com/134650275

I have your 4DVortexLayer tgd?

Offline kvasibarn

  • Member
  • *
  • Posts: 11
  • Terragen artist since 1942
Re: Generating Flowmaps in Terragen for animation of static skies.
« Reply #3 on: February 06, 2018, 11:29:07 PM »
You could do something very similar without using flow maps, although I'm sure you probably could and I'd love to know how.
I made this a few years ago with transform and vortex shaders. I'll see if I still have the file (probably don't )

https://vimeo.com/134650275

That looks relly nice but it also looks like you had to render multiple frames? I am looking for a way to animate a single frame.

Cheers!
fiat lux.

Offline cyphyr

  • Terragen Alpha Tester (Win)
  • ***
  • Posts: 3807
    • richardfraser
Re: Generating Flowmaps in Terragen for animation of static skies.
« Reply #4 on: February 06, 2018, 11:46:38 PM »
You could do something very similar without using flow maps, although I'm sure you probably could and I'd love to know how.
I made this a few years ago with transform and vortex shaders. I'll see if I still have the file (probably don't )

https://vimeo.com/134650275

I have your 4DVortexLayer tgd?

Could you re-upload it?
I don't seem to have it any more :(
www.richardfraser.co.uk
https://www.facebook.com/RichardFraserVFX/
/|\

i7 5930 @3.5Ghz, 32Gb
i7 2600k @3.4Ghz, 16Gb
i7 980 @3.33Ghz, 16Gb

Offline luvsmuzik

  • Member
  • *
  • Posts: 2620
    • luvsmuzik 1995
Re: Generating Flowmaps in Terragen for animation of static skies.
« Reply #5 on: February 07, 2018, 01:49:06 AM »
Sure....I think this may have been a share, may still be there

Offline kvasibarn

  • Member
  • *
  • Posts: 11
  • Terragen artist since 1942
Re: Generating Flowmaps in Terragen for animation of static skies.
« Reply #6 on: February 07, 2018, 03:04:58 AM »
There is a Render Layer for 2D motion vectors. I wonder if that solves my problem... Trying it :D


fiat lux.

Offline kvasibarn

  • Member
  • *
  • Posts: 11
  • Terragen artist since 1942
Re: Generating Flowmaps in Terragen for animation of static skies.
« Reply #7 on: February 07, 2018, 04:49:18 AM »
Trying it, but I cant seem to get anything but 0/0/0 black in my Cloud 2D motion vectors, even though the clouds are animating.

Only way to get it to render something is to have an animating camera in the scene, but I think it would be great to be able to generate motion vectors for cloud movement as well.
@oshyan?


(Camera animation cloud motion vectors)

https://realtimevfx.com/t/motion-vectors-for-animated-textures-how-do-you-generate-them/575/27
This thread has some juicy information.
« Last Edit: February 07, 2018, 08:41:16 AM by kvasibarn »
fiat lux.

Offline cyphyr

  • Terragen Alpha Tester (Win)
  • ***
  • Posts: 3807
    • richardfraser
Re: Generating Flowmaps in Terragen for animation of static skies.
« Reply #8 on: February 07, 2018, 08:08:00 AM »
Sure....I think this may have been a share, may still be there
Hey that's brilliant, thanks.
I never completed the full animation and this version is much longer than the one I posted on vimeo.
www.richardfraser.co.uk
https://www.facebook.com/RichardFraserVFX/
/|\

i7 5930 @3.5Ghz, 32Gb
i7 2600k @3.4Ghz, 16Gb
i7 980 @3.33Ghz, 16Gb

Offline Oshyan

  • Planetside Staff
  • *
  • Posts: 12264
  • Holy snagging ducks!
Re: Generating Flowmaps in Terragen for animation of static skies.
« Reply #9 on: February 08, 2018, 12:17:23 AM »
Motion Vector render element output probably has the same limitation that all Motion Blur does in Terragen: it only accounts for *camera* motion, not object, texture, shader, or displacement change.

- Oshyan

Offline kvasibarn

  • Member
  • *
  • Posts: 11
  • Terragen artist since 1942
Re: Generating Flowmaps in Terragen for animation of static skies.
« Reply #10 on: February 08, 2018, 12:50:02 AM »
Motion Vector render element output probably has the same limitation that all Motion Blur does in Terragen: it only accounts for *camera* motion, not object, texture, shader, or displacement change.

- Oshyan

I was afraid that was the case. I guess I can render out a few frames and generate the motion vectors in something like AE or Nuke.

thanks!
fiat lux.

Offline ajcgi

  • Terragen Alpha Tester (Mac)
  • ***
  • Posts: 543
    • My little blogsite
Re: Generating Flowmaps in Terragen for animation of static skies.
« Reply #11 on: February 08, 2018, 09:45:00 AM »
Indeed. I've always used ReelSmart for that in the past. The motion vectors for the ground work fine, but the clouds less so, ordinarily.

Offline cyphyr

  • Terragen Alpha Tester (Win)
  • ***
  • Posts: 3807
    • richardfraser
Re: Generating Flowmaps in Terragen for animation of static skies.
« Reply #12 on: February 08, 2018, 09:50:32 AM »
Forgive my ignorance but I don't see how you can animate a single frame. The gifs you have at the start of this thread are multiple frames compressed into a single image. They could equally have been turned into a mov or mp4 ...
www.richardfraser.co.uk
https://www.facebook.com/RichardFraserVFX/
/|\

i7 5930 @3.5Ghz, 32Gb
i7 2600k @3.4Ghz, 16Gb
i7 980 @3.33Ghz, 16Gb

Offline kvasibarn

  • Member
  • *
  • Posts: 11
  • Terragen artist since 1942
Re: Generating Flowmaps in Terragen for animation of static skies.
« Reply #13 on: February 09, 2018, 12:15:00 AM »
Forgive my ignorance but I don't see how you can animate a single frame. The gifs you have at the start of this thread are multiple frames compressed into a single image. They could equally have been turned into a mov or mp4 ...

Yeah, sorry, those gifs were not the best examples. It was the best I could dig up fast.

You can use motion vectors to blend between frames like shown in the following video:


Its good because you can get a lot of mileage out of very low framerate material. Especially for realtime graphics.
You can even use motionvectors to blend a single frame and get quite realistic percieved motion from a static image. It will however result in some ghosting artefacts but its usually not too obvious.
This video shows single frame animation of the skies in Starwars Battlefront I. Due to the speed up you can really tell its just one frame but you dont notice it as much at regular playback speeds.

If you had the option to generate motion vectors for clouds in terragen you would be able to cut rendering time for timelapses by a factor of 10. (Render every 10 frame and let the motion vectors blend between them).

« Last Edit: February 09, 2018, 12:24:49 AM by kvasibarn »
fiat lux.

Offline cyphyr

  • Terragen Alpha Tester (Win)
  • ***
  • Posts: 3807
    • richardfraser
Re: Generating Flowmaps in Terragen for animation of static skies.
« Reply #14 on: February 09, 2018, 08:58:07 AM »
Thanks for the explanation. Wow that's a really cool technique. That would be a great addition to Terragen, hopefully it will get picked up.
www.richardfraser.co.uk
https://www.facebook.com/RichardFraserVFX/
/|\

i7 5930 @3.5Ghz, 32Gb
i7 2600k @3.4Ghz, 16Gb
i7 980 @3.33Ghz, 16Gb

 

anything