Planetside Software Forums

General => Terragen Discussion => Topic started by: cyphyr on August 30, 2009, 07:09:08 PM

Title: Can a warp shader displace a cloud layer in the y axis
Post by: cyphyr on August 30, 2009, 07:09:08 PM
Can a warp shader displace a cloud layer in the y axis (the input there of :) ) ??
I'm trying to make smoke ....  yeah I know :)
I've stretched a very small scale cloud "density Fractal" in the y axis to make a uniform distribution and plugged that into a warp shader. The warper is a PF at a similar small scale with various displacements (I've tried).
I keep trying different settings but get no results, any suggestions?
Ricchard
Title: Re: Can a warp shader displace a cloud layer in the y axis
Post by: Matt on August 30, 2009, 08:35:28 PM
Yes. Most displacement shaders default to displacement along the normal, and when applied to warping cloud textures this is the "up" vector pointing away from the centre of the planet. It's easier to do this than warping in the other directions, where you need a Redirect Shader.

Here's an example warping in X,Y,Z, but you don't need the Redirect Shader if you're only warping along the up vector:

http://forums.planetside.co.uk/index.php?topic=7213.0  (Follow the thread, but download my working example near the end.)
Title: Re: Can a warp shader displace a cloud layer in the y axis
Post by: cyphyr on August 30, 2009, 09:13:13 PM
cheers Matt, I;ll look in to it :)
richard
Title: Re: Can a warp shader displace a cloud layer in the y axis
Post by: Hetzen on August 31, 2009, 08:42:44 AM
Got to say, it works very well, and is a good starting point to generate a 'meta-cloud'.