PDA

View Full Version : mental ray sun & sky shader


larryvm
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}"

and
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 ?

larryvm
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!

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

mat

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

maybe this link can interrest you

http://www.cs.utah.edu/vissim/papers/sunsky/
http://www.cs.utah.edu/vissim/papers/sunsky/code

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.