POV-Ray : Newsgroups : povray.programming : Camera Shift (2) : Camera Shift (2) Server Time
4 May 2024 15:12:59 EDT (-0400)
  Camera Shift (2)  
From: karpov
Date: 21 Feb 2008 14:10:01
Message: <web.47bdcbd793eb4592e31c21340@news.povray.org>
Hi !

I've "added a new function" to povray called "Camera Shift".
It enable to render the view with a shift to left/right | up/down.
(Based on Blender shift camera )
I use it for architectural rendering.

So I tweak the render.ccp code with this :

function : create_ray()
case : perspective camera

x0 = ( x / (DBL)Frame.Screen_Width - 0.5) + shiftx  ;
y0 = (((DBL)(Frame.Screen_Height ) - y -1)  / (DBL)Frame.Screen_Height -0.5  ) +
shifty * right ;

....but I've got problems with Bounding Box :(

See this image :

http://www.mediafire.com/imageview.php?quickkey=2zri2zmfrbj&thumb=4

When I turn off Bounding Box it works but slow down too much the rendering.

Any clue ?


Milovann
- Sorry for my english  :) -


Post a reply to this message

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