|
![](/i/fill.gif) |
In article <421e2f58$1@news.povray.org>,
> OK. I have to answer myself. This is possible for the position and the
> normal of an object. Is it also possible to get the color or do I have
> to create a lot of images with 1x1 pixel in size?
The color of an object depends on the direction the object is seen from
and on the rest of the scene, and the scene isn't fully constructed when
the file is still being parsed. So no, you can't get the color that way.
If you have the pigment, you can evaluate its color instead, which is
normally independent of viewing direction.
Another thing: generating a surface from a cloud of unconnected points
is extremely difficult. It is actually impossible to do so perfectly,
though simply using a large number of points can give good results in
many cases. You would really be better off designing meshes for each
component. This doesn't necessarily require a mesh editor, you could
write code in POV that generates the meshes you need, as long as there
aren't any difficult differences or intersections.
--
Christopher James Huff <cja### [at] earthlink net>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: <chr### [at] tag povray org>
http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |