Can a warp shader displace a cloud layer in the y axis

Started by cyphyr, August 30, 2009, 07:09:08 PM

Previous topic - Next topic

cyphyr

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
www.richardfraservfx.com
https://www.facebook.com/RichardFraserVFX/
/|\

Ryzen 9 5950X OC@4Ghz, 64Gb (TG4 benchmark 4:13)

Matt

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.)
Just because milk is white doesn't mean that clouds are made of milk.

cyphyr

www.richardfraservfx.com
https://www.facebook.com/RichardFraserVFX/
/|\

Ryzen 9 5950X OC@4Ghz, 64Gb (TG4 benchmark 4:13)

Hetzen

Got to say, it works very well, and is a good starting point to generate a 'meta-cloud'.