Previously a production blog for my final year project ( you can still find the old posts of WIP images) YOu have stumbled across a collection of knick knacks and tutorials for 3D CG...

Friday, January 29, 2010

physical sun

Animated clouds with mental ray Physical Sky – Tutorial

In general the trick is to add the clouds (either an image or a node) to the physical sky “Haze” value as Master Zap indicated in his blog.


To achive that in Maya you will need the following.
Maya nodes = noise, multiplyDivide and luminance.

Connect as follow
noise out color > multiplyDivide input
multiplyDivide output > luminance input
luminance out value > mia_physicalsky haze.

netwrok.jpg

The noise node will serve as the clouds in the sky, which can be animated easily.

Once rendered you will hardly notice any clouds.
clouds001.jpg

This where the multiply/divide nodes comes in.
Increase “Input 2″ to be 20, 0, 0
Now you will have more prominent clouds.


Since the haze parameter accept only ONE value.
The RGB > Luminance node can be useful in this connection, since it will convert the 3 out values of RGB to 1 value which is luminance.

clouds002.jpg

In the Noise node, you can animate the time value to get the animated clouds in your render.

Note: The Noise node can be replaced with a texture file or any other Maya nodes.

To achieve more realistic result, add an envBall node to the shading network, this will give the sky roundness effect rather than just a flat image.

clouds003.jpg

From here you can start building more complicated network to get more realistic look.

clouds0041.jpg


netwrok2.jpg

Note: to get rid of these artifacts that you see on the cone object, one needs to examine the network connection closely.
The clouds were connected to the “haze” parameter, however that “Sky haze” is already connected to the “Sun haze”

netwroksun2.jpg
Once this connection is broken, the artifacts will disappear, however you will need test it since this test was made on a simple scene and it might have a side effect in an actual production file.

clouds005fx.jpg

The following image reminds me with Alias Power Animator Sky system.
If you know what I’m talking about , then you are old. :)


clouds005.jpg

Note:

No comments:

Post a Comment