POV-Ray : Newsgroups : povray.advanced-users : trace + color? : Re: trace + color? Server Time
4 Oct 2024 17:01:03 EDT (-0400)
  Re: trace + color?  
From: Charles C
Date: 28 Jun 2007 13:40:01
Message: <web.4683f14a7de6b226e94cc5130@news.povray.org>
Mike Williams <nos### [at] econymdemoncouk> wrote:
> 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

Hmm, this has me thinking, based on something I'm working on... I wonder
what the best way to do it would be if you are sampling arbitrary points in
a union of many objects with various pigments where knowing the pigment used
and the orientation of each object within the union might not be straight
forward....  I can think of a couple of ways but they aren't very
efficient.  E.g. creating slices like LikeNoOther is doing, using an ortho
camera and then sampling the resulting image.
Charles


Post a reply to this message

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