Realistic Snow

Report this File

Th_neige3

Views:

83,769

Updated:

Sep 13, 2005

Readership Level:

Advanced

Tags:

Maya Versions:

1.x, 2.x, 3.x, 4.x, 5.x, 6.x, 7.x

Platforms:

irix, linux, mac, windows

Owner:

Language:

English


1. Create a NURBS surface and deform it a bit to get a nice-looking bumpy terrain.
Create a camera




2. Open the Hypershader. Create a Blinn node and edit it as shown below:



I highlighted in red the attributes that need to be edited.
Don't forget the slight blueish Ambience, because snow is always a bit blue when in sunlight.

Also add a light bump (on the example, I use the Turbulence texture, available in the highend3d.com library.
Rename the blinn1 as snowBlinn.

3. Next, create a 2D Fractal texture and edit it as follows:



This texture (fractal1) will simulate the ice crystals that glitter when lit. I use the 2D Fractal node cause it has a Time attribute that allows to phase it. You must also check the Animated box. The phase depends on the value of the Time attribute. This attribute will be later linked to the camera's position using an expression. Also check the Invert box.


4. Remap the fractal1 node (click the Insert button in the Color Remap field), and edit the Ramp as shown:



This is to have stronger glitters (the fractal alone is too soft, because of its high Threshold).


5. Connect the outAlpha of the RemapRamp1 to the SpecularRollOut of the snowBlinn.
You could also link the outColor to the SpecularColor, the result is the same.

This is what you should see in the Hypershade:



Render the scene:



6. This is close to what we want to get, but if we move the camera, the glitters stay at the same place. Now we're creating a very simple expression that links the camera's translation attributes to the fractal1's Time value. If you kept the same names given to the objects along this tutorial, you can copy-paste the following expression. Otherwise you'll have to edit it yourself to make it fit your scene.


fractal1.time = (camera1.tx + camera1.ty + camera1.tz) / 3;


Here I map the average of the camera's 3 XYZ translations to the Time attribute. But feel free to use another value than 3, to control the glittering speed.

7. That's it! If you animate the camera, the snow will glitter as the view changes. As a final touch, you can also put a special attribute instead of the 3 in the expression, so that you have more control of the glittering speed.

Scene File Neige.zip<\/a>

Comments

Dashboard_avatar
Apr 15, 2010
Post id: 10828
Report this comment to moderators [SPAM]

very informative!

Dashboard_avatar
Nov 10, 2010
Post id: 12990
Report this comment to moderators [SPAM]

Thanks just needed that. :)

Dashboard_avatar
Dec 18, 2010
Post id: 13324
Report this comment to moderators [SPAM]

script not working for me... this error // Error: Invalid use of Maya object "camera1.tz".

Dashboard_avatar
Oct 13, 2011
Post id: 15375
Report this comment to moderators [SPAM]

I have no idea where you got that turbulence texture... I only found the AM_Turbulence .OS files which doesn't seem to be the right one though it probably is... and if so I don't know how to utilize it =( I really need this, is there a way to get it working?

Thanks

Dashboard_avatar
Nov 14, 2011
Post id: 15488
Report this comment to moderators [SPAM]

turbulence texture how do I use that ? can any one please tell me I found a .SO file but have no idea how to use it !

Dashboard_avatar
Oct 03, 2012
Post id: 16926
Report this comment to moderators [SPAM]

HI, I like the tutorial and it is very informative but I cannot see the pictures or download the zip file. IS there another way to get those?

Write a Comment

You must be logged in and have verified your email address to leave a comment. Login or create an account