Search This Blog

Thursday, November 18, 2010

SamplerInfo Node and Facing Ratio addition

To give the clear affect of water and how it would act in a real life situation i wanted to make sure that depending on what angle you viewed the water from depicted to the camera how the water was perceived. In order to achieve this affect a few things needed to occur. Firstly i had to develop two separate texture packages both relatively similar but still different in some aspects such as color and transparency most importantly. After creating these two seperate packages one of which is below(the only thing differing from the other package is some change to transparency a little tweak in color and the weight that the two textures are given). When these two separate packages are created you can then apply them to a simple ramp with three or so colors depending on the depth you want to achieve. The ramp is run on a value system from 0-1 like a lot of things in Maya. 0 being at the top of the ramp and 1 being at the bottom, you can use these integers to tell the camera what to render. 0 renders everything facing the camera with the texture pack you created for the color at the top of the ramp, while 1 renders the polygons which normals are not facing the camera with the other texture package you applied to the color at the bottom of the ramp.

No comments:

Post a Comment