View Full Version : mental ray sun & sky shader

06-10-2005, 03:25 PM
this is the first mental ray shader i wrote, is a 2d texture that can be maped on the IBL node so and render with FG simule the sun position and sky color, is the first version so it has some bugs.

you only have to connect the shader in the texture attribute of the IBL node and connect a mi_texture_vector to the coord attribute of the shader.

to install the shader you have to edit the maya.rayrc

and add the lines in the file

link "{MAYABASE}/lib/fvEnvironment.{DSO}"

mi "{MAYABASE}/include/fvEnvironment.mi"

this is still a wip so if someone have an idea or comment can be added to the final shader.

Dr. Ira Kane
06-10-2005, 04:23 PM
Can you write more about this, post some images etc ? I'm just curious is this shader more than 'set camera env to blue and put directional light with yellowish color + FG' thingy, I assume it has nothing to do with physical sky like maxwell's right ?

06-10-2005, 05:02 PM
this shader create an environment with a sun with high values and a sky with an sun decay and hour changes, the position of the sun is calculate with the hour, the day of the year and the latitude.

is not as perfect as the maxwell environment but works fine.

some images with the shader and no ligths

Dr. Ira Kane
06-10-2005, 06:10 PM
Ok, thanks for the contribution!

06-10-2005, 06:47 PM
thanx larry! it look interesting! :thumbsup:
keep ut the good work!


06-10-2005, 06:48 PM
hi larry and thanks for this shader

maybe this link can interrest you


CGTalk Moderation
06-10-2005, 06:48 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.