POV-Ray : Newsgroups : povray.general : Orthographic to Perspective Camera Shift? Server Time
29 Nov 2024 21:37:57 EST (-0500)
  Orthographic to Perspective Camera Shift? (Message 1 to 3 of 3)  
From: Kronix
Subject: Orthographic to Perspective Camera Shift?
Date: 15 Apr 2005 12:00:00
Message: <web.425fe4965eaac9ac1d4ddc70@news.povray.org>
I've got a scene rendered with a perspective camera, producing Image #1.
Switching to an orthographic camera, I can produce Image #2.  It would be
extremely helpful, however, if I could smoothly transition the scene from
Image #1 to Image #2.  In other words, produce the same image that results
from an orthographic camera, yet using a perspective camera.  For example,
I would like to view my scene at the "halfway" point between Image #1 and
Image #2.

Any ideas?

- How


Post a reply to this message

From: Chris B
Subject: Re: Orthographic to Perspective Camera Shift?
Date: 15 Apr 2005 14:28:05
Message: <426007b5@news.povray.org>
"Kronix" <kro### [at] hotmailcom> wrote in message
news:web.425fe4965eaac9ac1d4ddc70@news.povray.org...
> I've got a scene rendered with a perspective camera, producing Image #1.
> Switching to an orthographic camera, I can produce Image #2.  It would be
> extremely helpful, however, if I could smoothly transition the scene from
> Image #1 to Image #2.  In other words, produce the same image that results
> from an orthographic camera, yet using a perspective camera.  For example,
> I would like to view my scene at the "halfway" point between Image #1 and
> Image #2.
>
> Any ideas?
>
> - How
>

If you put the perspective camera a very long way back and use the 'right'
and 'up' vectors to 'zoom in' you can get pretty close to an orthographic
camera.
(so long as there's nothing in the way)
You can then move the camera forward to half the distance and 'zoom out' by
doubling the 'right' and 'up' vectors.

camera {location<0,0,-250> look_at<0,0,0>
  right 4/3*x/20  up y/20
}

camera {location<0,0,-125> look_at<0,0,0>
  right 4/3*x/10  up y/10
}

Chris B.


Post a reply to this message

From: Jellby
Subject: Re: Orthographic to Perspective Camera Shift?
Date: 15 Apr 2005 14:40:06
Message: <2eb5j2-o6u.ln1@badulaque.unex.es>
Among other things, Kronix saw fit to write:

> I've got a scene rendered with a perspective camera, producing Image #1.
> Switching to an orthographic camera, I can produce Image #2.  It would be
> extremely helpful, however, if I could smoothly transition the scene from
> Image #1 to Image #2.  In other words, produce the same image that results
> from an orthographic camera, yet using a perspective camera.  For example,
> I would like to view my scene at the "halfway" point between Image #1 and
> Image #2.

If I'm not mistaken, an orthographic camera can be "simulated" by a
perspenctive camera placed far far away and with a narrow-angled field of
view, so you could probably start with the normal perspective camera and
move it back while reducing the angle (the exact relationship shouldn' be
too hard to figure out. That could work in the open, but would't if there
are objects (walls, trees) behind the camera that would "move" in front of
the camera when you take it back.

-- 
light_source{9+9*x,1}camera{orthographic look_at(1-y)/4angle 30location
9/4-z*4}light_source{-9*z,1}union{box{.9-z.1+x clipped_by{plane{2+y-4*x
0}}}box{z-y-.1.1+z}box{-.1.1+x}box{.1z-.1}pigment{rgb<.8.2,1>}}//Jellby


Post a reply to this message

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