POV-Ray : Newsgroups : povray.general : extents for camera object location??? Server Time
6 Aug 2024 04:24:37 EDT (-0400)
  extents for camera object location??? (Message 1 to 2 of 2)  
From: Jeff Nighbert
Subject: extents for camera object location???
Date: 3 Jun 2002 09:10:17
Message: <3CFB6AB8.70E250F1@or.blm.gov>
When you do a lot of camera movement with transform rotate spline etc,
its difficult to figure out just exactly where the camera is.  I
attempted to use "extents" but it doesn't allow use of the camera as an
object.

So how do I query pov for the exact camera vector at any given time, if
I can't use extents??  (as a work around I build a serrogate sphere that
I assign the same movement, then use extents to query its location.)

Jeff


Post a reply to this message

From: Christopher James Huff
Subject: Re: extents for camera object location???
Date: 7 Jun 2002 13:39:10
Message: <pan.2002.06.07.12.39.58.728467.710@mac.com>
On Mon, 03 Jun 2002 09:10:16 -0500, Jeff Nighbert wrote:

> So how do I query pov for the exact camera vector at any given time, if
> I can't use extents??

You don't. A camera isn't a shape, so of course it isn't useable for those
functions, and there isn't any way of retrieving the parameters. However,
you could just compute the location and use the same value in the camera
and wherever else you need it.


> (as a work around I build a serrogate sphere that I assign the same
> movement, then use extents to query its location.)

This is to be a very roundabout way of doing things...just transform a
vector. Look at the vtransform() macro in functions.inc.


-- 
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: <chr### [at] tagpovrayorg>
WWW: http://homepage.mac.com/chrishuff/


Post a reply to this message

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