POV-Ray : Newsgroups : povray.advanced-users : Setting the color of each coordinate in the Povray coordinates Server Time
24 Nov 2024 17:47:23 EST (-0500)
  Setting the color of each coordinate in the Povray coordinates (Message 1 to 2 of 2)  
From: SSSUTM
Subject: Setting the color of each coordinate in the Povray coordinates
Date: 19 Oct 2005 04:40:01
Message: <web.435605d2ae6c03fe36a46a7d0@news.povray.org>
I want to be able to set the color of each point in the Povray coordinates
individually. For example, I want coordinate <10,10,10> to be red,
coordinate <10,10,11> to be yellow. Suppose I have a database of
coordinates with a color attributed to each coordinate. I want to query the
database and set the corresponding pixel in the Povray coordinates to the
same color.

Which function in povray can allow me to choose a particular coordinate and
set a color to it?


Post a reply to this message

From: Slime
Subject: Re: Setting the color of each coordinate in the Povray coordinates
Date: 19 Oct 2005 17:16:56
Message: <4356b7c8@news.povray.org>
> I want to be able to set the color of each point in the Povray coordinates
> individually. For example, I want coordinate <10,10,10> to be red,
> coordinate <10,10,11> to be yellow. Suppose I have a database of
> coordinates with a color attributed to each coordinate. I want to query
the
> database and set the corresponding pixel in the Povray coordinates to the
> same color.
>
> Which function in povray can allow me to choose a particular coordinate
and
> set a color to it?


Are you trying to do this for many points in 3D space? If so, you might want
to look into the density file format (df3) in the docs, create a df3 with an
external program, and use it in POV-Ray as a media density or pigment.

If you only want to do this over a 2D area, you should make an image and use
it as an image_map.

If you can't easily use an external program to generate the image, and would
rather use SDL, you can make a mesh with colored triangles as in the
advanced ray-tracing tutorial in the documentation.

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

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