|
|
In article <3f1d210a@news.povray.org>, Warp <war### [at] tagpovrayorg>
wrote:
> Janne <kos### [at] kolumbusfi> wrote:
> > How can I test if a randomly selected point is visible to my camera? I need
> > to place a lot of objects in my scene, but I run out of memory if I place
> > objects over the whole scene.
>
> This depends on whether you have reflections/refractions or not. If you
> have them, then forget it.
Radiosity can also make a difference. Even shadows can make an object
out of the field of view have a significant effect. And you would have
to test the corners of the bounding box for each object, not just one
point...it may be visible even if that one point is out of the field of
view.
> There is also a mathematical way of doing it, but the tip above might
> be the easiest way.
Also note that you would have to use a different method for different
camera types.
It might be possible to reduce the memory consumption of the scene some
other way...using copies of meshes, for example. This might be a better
solution than placing objects only where they are directly visible.
--
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
|
|