|
|
> 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
|
|
|
|
"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
|
|