|
|
Hi everyone,
I'd like to get the pose of camera looking at the scene. e.g. in my case it is
#declare cl = <0,0,-165>;
camera{
location cl
up y*1.8
right x*3.6
direction 2.8*z
look_at <0,0,0>
translate 400*y
translate<tx,ty,tz>
rotate <rx,ry,rz>
translate <10,5,150>
}
and the povray file is called with
megapov + "Declare=tx=-125.881" + "Declare=ty=-21.4282" + "Declare=tz=-22.9708"+
"Declare=rx=18.7804" + "Declare=ry=-30.3326" + "Declare=rz=-32.1209"
I'm rendering the office.pov scene available in povray hall of fame and found a
software called vlpov (http://www.vlfeat.org/~vedaldi/code/vlpovy.html) which
returns the camera parameters as
output_name = 'scene_-125.880806_-21.428187_-22.970766.png' ;
screen_height = 480 ;
screen_width = 640 ;
cam_type = 'perspective' ;
cam_pos = [ 164.7199 402.5147 38.02027]' ;
cam_dir = [ -1.613141 -0.05161951 2.288037]' ;
cam_up = [ 0.8776798 2.131886 0.6668896]' ;
cam_right = [ 2.631566 -1.652116 1.818068]' ;
cam_sky = [ 0 1 0]' ;
cam_lookat = [ 0 0 0]' ;
cam_fpoint = [ 0 0 1]' ;
cam_focal = 2.8 ;
cam_angle = 90 ;
All that bothers me is that why is it still looking at <0,0,0> after it has been
translated, rotated and again translated. Is there any way to verify if this
pose retuned by vlpov is correct or not? Or is there any other way to retrieve
the camera pose without using vlpov? Could someone please kindly have a look at
this and help me out! I'd be very grateful.
Kind Regards,
Ankur
Post a reply to this message
|
|