POV-Ray : Newsgroups : povray.advanced-users : trace + color? : Re: trace + color? Server Time
4 Oct 2024 17:05:16 EDT (-0400)
  Re: trace + color?  
From: Mike Williams
Date: 28 Jun 2007 11:35:38
Message: <TaEHZEAuT9gGFwRE@econym.demon.co.uk>
Wasn't it Simon who wrote:
>Hi,
>   just a quick question... i haven't povrayed in a Very long while!
>
>I'm still thinking about my project and I would need to use povray to extract 
>shape information from an object (easy with trace, get the position of a surface 
>and its normal), but I'm wondering about the color at that point.
>
>Right now, i was thinking on having an orthogonal camera make a zoomed-in render 
>of that point, while the camera would be sitting along the normal axis.
>
>But, is there a better way to get the color, to finally right it to stdout like 
>i do with trace?

Once you've got the point you can get the pigment with eval_pigment
(except for things like slope pattern pigments). I don't think that
there's anything that will return you the final pixel colour after
things like lighting, shadows, reflection, refraction and radiosity have
been applied.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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