POV-Ray : Newsgroups : povray.general : Generating an objects map along with the image : Re: Generating an objects map along with the image Server Time
29 Jul 2024 18:18:54 EDT (-0400)
  Re: Generating an objects map along with the image  
From: Le Forgeron
Date: 29 Sep 2010 03:19:00
Message: <4ca2e864$1@news.povray.org>
Le 28/09/2010 21:28, Boing3000 a écrit :
> Hello everybody,
> 
> Is there an option (if every object rendered as been given a king of
> unique id) to have a x/y map of the first object hits by the ray during the
> rendering of each pixel ?
> 
> Could be usefull to build a quick modeler, or just having a click-on map
> associated with your image.

Hello,

You might use the quick_color (with a different value for each object)
along with a quality of 0 or 1. ( +Q0 on command line/option)

http://www.povray.org/documentation/view/3.6.1/223/
http://www.povray.org/documentation/view/3.6.1/338/

How you generate the unique id and then encode it as a color is up to you.

-- 
A good Manager will take you
through the forest, no mater what.
A Leader will take time to climb on a
Tree and say 'This is the wrong forest'.


Post a reply to this message

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