POV-Ray : Newsgroups : povray.general : POV-Ray lighting model vs Rayshade : Re: POV-Ray lighting model vs Rayshade Server Time
30 Jul 2024 20:18:58 EDT (-0400)
  Re: POV-Ray lighting model vs Rayshade  
From: Alain
Date: 4 Jun 2008 20:18:27
Message: <484730d3$1@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.