POV-Ray : Newsgroups : povray.general : POVRay CSG to polygon based models : Re: POVRay CSG to polygon based models Server Time
2 Aug 2024 00:14:19 EDT (-0400)
  Re: POVRay CSG to polygon based models  
From: Christopher James Huff
Date: 24 Feb 2005 20:38:56
Message: <cjameshuff-828850.20385124022005@news.povray.org>
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] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: <chr### [at] tagpovrayorg>
http://tag.povray.org/


Post a reply to this message

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