Planetside Software Forums

General => Terragen Discussion => Topic started by: mhaze on November 30, 2008, 06:52:12 AM

Title: More on the clouds following the terrain
Post by: mhaze on November 30, 2008, 06:52:12 AM
More on clouds following the terrain. I've made this work with greyscale images and with ters and an assosiated B/W image map/mask. I've had limited success with power fractals and none whatsoever with the heightfield shader. Matt any chance the HF shader or the load HF/generateHF could have a B/W mask that can be exported to photoshop - would be very useful for many purposes.
There is huge potential here, I leave you to play.
Title: Re: More on the clouds following the terrain
Post by: cyphyr on November 30, 2008, 07:18:59 AM
Oooh very good discovery, I remember people looking into this a year or so ago and the general consensus was it was a non starter. You've broken the barrier !!
any chance of a node network view :)
richard
Title: Re: More on the clouds following the terrain
Post by: JimB on November 30, 2008, 07:31:37 AM
Great stuff!

If you were to somehow mask them further based on angle/direction and possibly slope, it should create gaps to one side of the mountains as often seen in the real world. E.g., use World Machine to load the terrain and add an Angle Selector to create the masks from the terrain.

You should be able to create a terrain in .ter format from Power Fractals and HF Generators by saving an area as a .ter by right clicking on the HF Generate node and selecting Save As...
Title: Re: More on the clouds following the terrain
Post by: mhaze on November 30, 2008, 08:21:50 AM
Thanks for the comments and ideas.

Cyphyr you'll find a basic node network for this in my previous post clouds following terrain

Thanks for the ideas JimB - ! had a quick try the the twist and shear shader - with little success I'm afraid.

I'll try some of your other ideas, a gradient mask or redirect shader might achieve the cloud offset. I'll experiment with creating ters from powerfractals - still need a greyscale image map though - hmmm might be able to do that in geocontrol 2 
Title: Re: More on the clouds following the terrain
Post by: j meyer on November 30, 2008, 10:23:45 AM
Hi,
nice experiments.
As for the editable images you could try Terraconverter(tconv),you can
convert ter files to tiff with it and viceversa.
Title: Re: More on the clouds following the terrain
Post by: mhaze on November 30, 2008, 11:07:11 AM
A quick update  - you can get the twist and shear shader to give the effect of winblown clouds. Nodes attached
Title: Re: More on the clouds following the terrain
Post by: bigben on December 01, 2008, 06:08:17 AM
Quote from: j meyer on November 30, 2008, 10:23:45 AM
Hi,
nice experiments.
As for the editable images you could try Terraconverter(tconv),you can
convert ter files to tiff with it and viceversa.

Even loading it up into TG0.9 and doing a screen grab of the terrain modify window should be enough for masking purposes.... or campath or terranim.   

Very interesting experiments
Title: Re: More on the clouds following the terrain
Post by: dandelO on December 01, 2008, 06:45:00 AM
This is one of the coolest uses of TG cloud I've seen yet. Great work and keep going!
Title: Re: More on the clouds following the terrain
Post by: domdib on December 01, 2008, 08:16:44 AM
Perhaps this post and the previous post on cloud following terrain could somehow be incorporated into the cloud library?
Title: Re: More on the clouds following the terrain
Post by: mhaze on December 01, 2008, 11:10:44 AM
Ok after this I shall leave others to play! and go and make some pics.

The terrain is a ter and the clouds are from a greyscale of the same terrain - you have to carefully match the height with a heightfield adjust vertical shader.The terrain is coloured with a standard shader. all created in geocontrol2

The clouds are pushed to the right with a twist and shear shader into a warp shader and there are two density shaders to give interest to the clouds. Note how there is less cloud on the winward side and more on the leeside.

Have fun playing.
Title: Re: More on the clouds following the terrain
Post by: JimB on December 01, 2008, 12:48:50 PM
With the Twist & Shear shader attached, have you tried lowering the camera so that the cloud and peaks are above the horizon line? I came up with a rather undesirable result (the cloud is fine below the horizon, but is like a 2D texture on the peaks above the horizon line). Maybe you find it different.

That said, this is a great technique without the Twist & Shear, and I can't believe it's so simple.
Title: Re: More on the clouds following the terrain
Post by: Aagam on December 01, 2008, 01:00:45 PM
I've been trying to do this for a while. I got something like this but not quite as clean. Thanks!
Title: Re: More on the clouds following the terrain
Post by: mhaze on December 01, 2008, 01:35:19 PM
Hi JimB no I havn't seen this. I'm just doing a test render now but look at my pic "from the depths" mountains and clouds well above the horizon and no odd effects. could it be lighting? could you post a pic?
Title: Re: More on the clouds following the terrain
Post by: bigben on December 01, 2008, 03:33:31 PM
This would also look great animated...  orographic clouds
Title: Re: More on the clouds following the terrain
Post by: mhaze on December 01, 2008, 03:44:32 PM
Hi JimB

Yes, I've just come across a problem to do with clouds above the horizon - doing a render now.
Title: Re: More on the clouds following the terrain
Post by: mhaze on December 02, 2008, 11:57:23 AM
Is this a bug, altering the height of the clouds, changing acceleration cache or any other parameter has no effect. Removing the twist and shear shader and it's OK
Title: Re: More on the clouds following the terrain
Post by: JimB on December 02, 2008, 12:01:29 PM
Quote from: mhaze on December 02, 2008, 11:57:23 AM
Is this a bug, altering the height of the clouds, changing acceleration cache or any other parameter has no effect. Removing the redirect shader and it's OK

I suspect adding the Twist & Shear shader turns the clouds into a terrain based shader. But Matt et al would know better.
Title: Re: More on the clouds following the terrain
Post by: freelancah on December 05, 2008, 06:29:13 AM
We need more masking methods so this could be done with something else than just image map shader or is there a way to do this otherwise? I tried but lots of other ways but so far no success. Also a way to make a gradient map from f.e. heightmap would be nice
Title: Re: More on the clouds following the terrain
Post by: moodflow on December 05, 2008, 04:28:48 PM
Once I saw this technique in action (about an hour ago), I realized it may apply to another idea I've wanted to test for a while.  It worked!  Here are the results.  Many thanks for pioneering this.

Title: Re: More on the clouds following the terrain
Post by: domdib on December 05, 2008, 06:16:10 PM
WOW! Care to elaborate on how you made this work moodflow? Looks fantastic.
Title: Re: More on the clouds following the terrain
Post by: moodflow on December 05, 2008, 06:35:04 PM
Its just like mHaze's method, but instead of viewing from the top, its viewing from the bottom.  MHaze's method was proof that you could create "terrain" using clouds. 

I put the sun just below the horizon to underlight the clouds for additional effect.  This only took me about 15 minutes to assemble and about 5 to render and came out 100X better than I thought it would.
Title: Re: More on the clouds following the terrain
Post by: Mohawk20 on December 06, 2008, 03:26:58 AM
I've seen such clouds hundreds of times for real, now I can finally make them!
Title: Re: More on the clouds following the terrain
Post by: mhaze on December 06, 2008, 08:49:26 AM
here's another clouds from underneath
Title: Re: More on the clouds following the terrain
Post by: rcallicotte on December 06, 2008, 12:31:14 PM
I found this incredibly helpful for conversion from a TER file to TIF - http://koti.mbnet.fi/pkl/tg/TerraConv.htm
Title: Re: More on the clouds following the terrain
Post by: mhaze on December 06, 2008, 12:55:01 PM
Cheers Calico - I've had trouble finding this.
Title: Re: More on the clouds following the terrain
Post by: rcallicotte on December 06, 2008, 01:25:59 PM
I had to convert the 16-bit TIF to JPG before I could get it to work.

mhaze (and all those joining in) - Thanks.  This is so much fun!  It works!