POV-Ray : Newsgroups : povray.general : Camera Parameters, esp. angle : Re: Camera Parameters, esp. angle Server Time
5 Aug 2024 18:20:42 EDT (-0400)
  Re: Camera Parameters, esp. angle  
From: Mike
Date: 6 Aug 2002 12:25:10
Message: <web.3d4ff7f5a27e738523878ff90@news.povray.org>
OK I looked at the source again and I found where the change is made. It
scales the up and right vectors, but I don't understand exactly by what
values.
What is k1/k2 equal to?

Here's the section of POV's code:

if (((had_up == false) && (had_right == false)) || (had_angle == true))
   {
    // resize right and up vector to get the same image
    // area as we get with the perspective camera
    VSub(tempv, New->Look_At, New->Location);
    VLength(k1, tempv);
    VLength(k2, New->Direction);
    if ((k1 > EPSILON) && (k2 > EPSILON))
    {
     VScaleEq(New->Right, k1 / k2);
     VScaleEq(New->Up, k1 / k2);
    }
   }


Post a reply to this message

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