POV-Ray : Newsgroups : povray.general : perspective - calculations : perspective - calculations Server Time
6 Aug 2024 02:24:19 EDT (-0400)
  perspective - calculations  
From: Rafal 'Raf256' Maj
Date: 4 Jul 2002 12:52:15
Message: <Xns9241BF6EAA147raf256com@204.213.191.226>
camera {
  location 0
  look_at z
}

how can I calculate (X,Y) of image for given <x,y,z> point, assuming image 
is 1x1 and angle is A.
for perspective camera it will be 
X=(x-0.5)*d + 0.5
Y=(y-0.5)*d + 0.5

(what's forumla for 'd' btw...)

what are formulas for diffrent camera types (especialy for fish_eye and 
ultra_wide)

-- 


Post a reply to this message

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