POV-Ray : Newsgroups : povray.general : Objects in camera : Re: Objects in camera Server Time
5 Aug 2024 14:11:56 EDT (-0400)
  Re: Objects in camera  
From: Tom A 
Date: 5 Sep 2002 17:19:14
Message: <3D77CA51.1FDB1988@my-deja.com>
Warp wrote:
> 
> Slime <slm### [at] slimelandcom> wrote:
> > The wimpy (non-mathematical, less learning involved) way to do what Warp
> > described is to create a thin box in front of the camera that covers the
> > viewing plane
> 
>   This still has the problem of putting the box there. Fortunately I think
> there are tools for this in the standard include files.
> 

> --
>  - Warp -

Sorry, been a little busy, haven't had a chance to say Thank You for the
suggestions.

Question about this answer - while I understand how to create the box,
and the trace conditional, Warp is right in that it still leaves the
problem with the box there.  Can you point me at the include files that
might help with this?

Actually, in thinking about it, a simpler solution is to think 2
dimensionally - since I'm just worried about which trees will be in
view, I can ignore the Y dimension of the trees or camera.  
The math then comes down to figuring out the angle between the vector
from the camera position to the look_at point and the camera and the
location of the tree.  Compare that with half the angle of the screen
(about 40 degrees, maybe a little more, to allow for trees just outside
the view to have branches in screen).  

Then, I should be able to put the camera in the middle of a forest, and
get a reasonable render time.

Again, thanks everyone.

-- 
Tom A.
When scientist say they're making a "quantum leap" it 
means they are going out to catch some rays.  - Dr. Science
Deja mail is gone.  Look for me at raugost at yahoo . com


Post a reply to this message

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