Planetside Software Forums

General => Terragen Discussion => Topic started by: moodflow on March 13, 2008, 02:01:01 PM

Title: offset clouds technique - an idea
Post by: moodflow on March 13, 2008, 02:01:01 PM
One thing we can't do using the default cloud setup is create offset clouds.  Currently, the clouds flow in concentric layers around the main planet.  This makes it difficult to make clouds that truly change vertically.  The current system can do it in a way, but I discovered a way to make some radical looking clouds that are not bound to the planet.

Here is what to do:  Create a second planet.  Make the second planet's radius 0 (so its invisible), and disable its atmosphere (we don't need it).  We are going to use the second planet's clouds on the first planet.  The clouds will be offset relative to the main planet, as they will be wrapping around the second planet.  Now place the second planet wherever you want - the clouds will follow it wherever you place it.

For example, put the second planet about 10000 meters away from the render camera.  Make its cloud height 0, and its cloud depth slightly less than its distance away from the render camera.  This makes for some crazy cloud effects, as the clouds are associated with the second planet (wrapping around it), not the main planet, but are effected by the main planets atmoshere and lighting.  Move the second planet around to place the clouds in different configurations. 

Some example effects:  placing the second planet overhead creates clouds that curve "upwards" towards the second planet.  Placing the second planet way out in front of the camera makes vertical style clouds that come out of the ground on the main planet.  The options are endless.

Hopefully, someone can give this a shot and post some of their results.  I'll post what I have when I get back home in a day or two.  I've already tested it and it works well.  I hope this wasn't too confusing as its just hard to explain.

We may even be able to do this with terrain, but thats another test and topic.

Title: Re: offset clouds technique - an idea
Post by: choronr on March 13, 2008, 02:09:07 PM
This sounds like a great idea!!!
Title: Re: offset clouds technique - an idea
Post by: Volker Harun on March 13, 2008, 03:06:29 PM
It works ... and it looks very promising :-)

Edit: Attached image has 3D cumulus at 500 heigt with 500 depth
Title: Re: offset clouds technique - an idea
Post by: moodflow on March 13, 2008, 04:12:57 PM
Yes, I have some interesting looking images that feature this (at home).  Too bad I am stuck at work.   :-[
Title: Re: offset clouds technique - an idea
Post by: Volker Harun on March 13, 2008, 04:42:01 PM
Get yourself a hug at first ;)
Title: Re: offset clouds technique - an idea
Post by: Saurav on March 13, 2008, 06:50:25 PM
Genius idea. This will open up opportunities for those 'hero clouds'.  :)
Title: Re: offset clouds technique - an idea
Post by: bigben on March 13, 2008, 08:37:37 PM
I love simple ideas that are outside the box   ;D

This does have a lot of potential
Title: Re: offset clouds technique - an idea
Post by: JimB on March 13, 2008, 09:07:53 PM
A true "Eureka" moment. I wonder what happens if you use the same fractal for the different clouds (rendering on everything right now, can't test it out). Would clouds appear to flow from one set to another, or is the fractal set to a planet's co-ordinates?
Title: Re: offset clouds technique - an idea
Post by: Matt on March 13, 2008, 09:11:18 PM
Quote from: JimB on March 13, 2008, 09:07:53 PM
A true "Eureka" moment. I wonder what happens if you use the same fractal for the different clouds (rendering on everything right now, can't test it out). Would clouds appear to flow from one set to another, or is the fractal set to a planet's co-ordinates?

The fractals would flow from one to another. Cloud density lookups are performed in world/universe space. However, adjacent clouds might not blend very easily because the density cutoff thresholds would be different in each cloud at the points where the two merge.

Matt
Title: Re: offset clouds technique - an idea
Post by: moodflow on March 13, 2008, 11:09:50 PM
Quote from: JimB on March 13, 2008, 09:07:53 PM
A true "Eureka" moment. I wonder what happens if you use the same fractal for the different clouds (rendering on everything right now, can't test it out). Would clouds appear to flow from one set to another, or is the fractal set to a planet's co-ordinates?

Jim, can't wait to see your results.   8)
Title: Re: offset clouds technique - an idea
Post by: monks on March 14, 2008, 06:01:32 AM
Great idea! One can imagine all kinds of severe turbulences possible. Wow.

monks
Title: Re: offset clouds technique - an idea
Post by: Volker Harun on March 16, 2008, 08:11:37 AM
The attached image is one of my function-tests. A simple sine-function on the sphere.
I added a second planet within the sphere to test those clouds.

Using a planet by default instead of that sphere is possible. And in this case it would not work, as I gave the planet a 30% vertical offset to the sphere - modifying the clouds' appearance.

Consider this render as it is, a work in progress.

Volker
Title: Re: offset clouds technique - an idea
Post by: child@play on April 08, 2008, 03:32:06 PM
AWESOME!!!

finally a way to place clouds where you need them. thanks a lot moodflow
Title: Re: offset clouds technique - an idea
Post by: PG on April 08, 2008, 04:07:03 PM
This should work for volcano's billowing out steam columns. Must try that now :D
Title: Re: offset clouds technique - an idea
Post by: Seth on April 08, 2008, 05:35:31 PM
amazing result ! hope to see some evolutions soon :)