|
|
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
|
|
|
|
> 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
|
|