POV-Ray : Newsgroups : povray.newusers : Move optical center? Server Time
29 Jul 2024 18:18:19 EDT (-0400)
  Move optical center? (Message 1 to 4 of 4)  
From: Besen
Subject: Move optical center?
Date: 5 Apr 2005 12:45:00
Message: <web.4252c02cb1192a23feb490460@news.povray.org>
In Povray, the optical center seems to always be at the center of the
rendered image. Is there a way to move the optical center to another point?

thx
Besen


Post a reply to this message

From: Ross
Subject: Re: Move optical center?
Date: 5 Apr 2005 12:51:59
Message: <4252c22f$1@news.povray.org>
"Besen" <nomail@nomail> wrote in message
news:web.4252c02cb1192a23feb490460@news.povray.org...
> In Povray, the optical center seems to always be at the center of the
> rendered image. Is there a way to move the optical center to another
point?
>
> thx
> Besen
>
>

using focal blur, you can specify which area is focused by specifying a
focal_point other than the default.

Documentation: 3.2.2.3  Focal Blur

Hopefully that's what you are looking for.
-r


Post a reply to this message

From: Slime
Subject: Re: Move optical center?
Date: 5 Apr 2005 16:11:35
Message: <4252f0f7$1@news.povray.org>
> In Povray, the optical center seems to always be at the center of the
> rendered image. Is there a way to move the optical center to another
point?


If I understand what you're asking for, you have to apply a matrix
transformation to the camera to do this.

You may find it handy to use my zoomin.inc include file, which will do this
for you:

http://news.povray.org/povray.binaries.scene-files/attachment/%3C3cdd900a@news.povray.org%3E/zoomin.inc.txt

Simply use it like this:


// specify your camera's location and the location that you want to be the
optical center
#declare camera_location = -z*10;
#declare camera_look_at = <0,0,0>;

// sets up camera, doesn't zoom in:
Set_Zoom_Area(camera_location, camera_look_at, "+sc0 +sr0 +ec1 +er1")
// imagine fixing the optical center and moving your view around it; that's
how this works:
Move_Zoom(.5,.1) // moves optical center to the left and down a little
// create camera:
Update_Camera_Zoom()


You can use Set_Zoom_Area_ScreenInc to get more control over your camera if
you use screen.inc; all this is explained at the top of the include file.

Note there is a bug with Move_Zoom: neither number may be zero or it won't
work. You can workaround this by using 1e-10 instead of 0.

Be sure to use -UV in the command line or the non-perpendicular camera
vectors will cause POV-Ray to throw an error.

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

From: Besen
Subject: Re: Move optical center?
Date: 6 Apr 2005 04:50:00
Message: <web.4253a24320327e3cfeb490460@news.povray.org>
"Slime" <fak### [at] emailaddress> wrote:
> If I understand what you're asking for, you have to apply a matrix
> transformation to the camera to do this.
>
> You may find it handy to use my zoomin.inc include file, which will do this
> for you:
> [...]

Thanks, that was what I was looking for... I will look into it!

Besen


Post a reply to this message

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