Forum: Vue


Subject: switch material base on sun angle?

lightning2911 opened this issue on Feb 06, 2009 · 6 posts


dburdick posted Fri, 06 February 2009 at 4:04 PM

This is easily done in Vue 5, 6 ad 7 although it's a bit more automatic in Vue 7 because you can link the sun direction/orientation to the material automatically.  In Vue 5 and 6 you have to key in the sun rotation values.  Here's how.  Create a mixed material with the two materials you want to use.  Set up the distribution of the materials as follows in the function editor.  Basically, you are just doing a dot product of the sun's rotation against the normal (world standard) of the object.  In Vue 7, you can link the sun's orientation into the function editor automatically -- and when you move the sun around, it will automatically update the material distribution.  In Vue 5 and Vue 6, you have to manually key in the sun rotation coordinates when the sun is moved.

http://www.skinvue.net/Vue7/VueLightFresnel.jpg