POV-Ray : Newsgroups : povray.general : How to place objects randomly in the visible area of image? : Re: How to place objects randomly in the visible area of image? Server Time
5 Nov 2024 03:16:17 EST (-0500)
  Re: How to place objects randomly in the visible area of image?  
From: Christopher James Huff
Date: 22 Jul 2003 10:36:44
Message: <cjameshuff-569470.09294622072003@netplex.aussie.org>
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

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