|
![](/i/fill.gif) |
Grim Reaper nous illumina en ce 2008-06-04 04:21 -->
> I have always liked the Rayshade lighting model, since you can specify the
> ambient, diffuse and specular colour as rgb values, instead of the POV-Ray
> percentage of diffuse model.
>
> What are the chances of allowing this in POV-Ray? Or can someone tell me how to
> write a Renderman surface shader that will mimic the Rayshade model so I can
> use it with POVMan.
>
> The problem with the POV-Ray model is that you can never get exactly the colour
> you want, even when you iteratively try and refine it. If you change the light
> you have to redo all the colour. It's harder to get the colour you want, cause
> you can't just directly specify it.
>
> Thanks
>
>
In POV-Ray you can always set those parameters with a full colour instead of
shades of gray. diffuse 1 get promoted to diffuse<1,1,1>.
The following are all legal:
ambient <1,0.5,0.1>/10 // give a red tint to your shadowed areas. Also to the
rest of the object.
diffuse <0.2, 1, 0.898> // This object will apears blue-green
specular <0.5,0.3,0.8> // bluish megenta specular highlights.
phong <0,1,0> // green phong highlight
If you want rgb value in the 0-255 range, just divide the colour vector by 255.
--
Alain
-------------------------------------------------
99 percent of lawyers give the rest a bad name.
Post a reply to this message
|
![](/i/fill.gif) |