POV-Ray : Newsgroups : povray.beta-test : Regarding Camera Cleanup : Re: Regarding Camera Cleanup Server Time
2 Nov 2024 07:26:50 EDT (-0400)
  Re: Regarding Camera Cleanup  
From: Peter Popov
Date: 2 Jan 2002 03:43:17
Message: <gjj33u80riuko16ttkfeeliceg06i0lg49@4ax.com>
On Tue, 1 Jan 2002 01:27:58 +0100, "Rune"
<run### [at] mobilixnetdk> wrote:

>You also say that the order dependency will not and cannot be removed. I
>don't understand either.

I'll dissect the source for you, namely Parse_Camera in parse.cpp, and
extract some tissue for further inspection.

* if the 'orthographic' keyword is parsed
  - the camera type is changed to orthographic
  - the up and right vectors are adjusted to get the same image area
as with the perspective camera

* if the 'angle' keyword is parsed
  - the direction vector length is adjusted accordingly

* the 'direction', 'up' and 'right' vectors directly change the
respective camera parameters

* if the 'look_at' keyword is parsed
  - the up vector is calculated
  - the right vector is calculated
  - the direction vector is calculated

You can see that there are different means to address the various
parameters of a perspective/orthographic camera. So you can see the
order they are specified in really counts.

  
Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

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