cloud altitude offset with power fractal

Started by oysteroid, January 15, 2015, 06:04:18 PM

Previous topic - Next topic

oysteroid

I went through the Cloud Function Tutorial by Martin Huisman and have been fiddling with his associated TGD file a bit. When I use a power fractal instead of an image map to displace the landscape and offset the cloud layer, the clouds do have an offset that is similar to the terrain, but not exactly the same. Here it is with an image map:

[attachimg=1]

Here it is with a power fractal instead of an image map:

[attachimg=2]

Everything else is exactly the same.

What's going on here? Am I doing something wrong?

I attached the TGD.

Matt

The fractal is 3D, so the Y coordinate is important. When displacing the terrain, the fractal is sampled at the surface of the planet. When rendering the cloud, the fractal is sampled in 3D space for every part of the cloud that's sampled.

Try setting the fractal's noise stretch parameter to (1, 1000000, 1). That stretches the fractal in Y so much that it becomes almost 2D. I think that will probably solve the problem.

Matt
Just because milk is white doesn't mean that clouds are made of milk.

oysteroid


bobbystahr

something borrowed,
something Blue.
Ring out the Old.
Bring in the New
Bobby Stahr, Paracosmologist

Mid-Knight Acchan

I read "Cloud function tutorial" and read "Cloud Functions Explained.tgd" file in Terragen4.
Then, it did a rendering first.
However, the image which is different from the tutorial was made.
Will something have changed  with 2.2 upgrades?
What value is it  if changing to like an image in the tutorial?

[attachimg=1]



I started 3D landscape with "Bryce" and am currently editing Japanese Wiki as a Terragen user. I am riding the Kawasaki ZEPHYR1100. I am a reader.