POV-Ray : Newsgroups : povray.binaries.images : "Position Finder" results : Re: "Position Finder" results Server Time
12 May 2024 08:37:06 EDT (-0400)
  Re: "Position Finder" results  
From: Thomas de Groot
Date: 3 Oct 2018 04:00:29
Message: <5bb4771d@news.povray.org>
So, I manage to get the arrow on the rod by tweaking:

#local dir_y  = vaxis_rotate (lookat-cam_loc, vcross (cam_d, cam_up), 
(0.483-screen_y_position*0.01)*cam_ang/image_width*image_height);
#local dir_xy = vaxis_rotate (dir_y, cam_up, 
(0.535-screen_x_position*0.01)*cam_mirror*cam_ang);

replacing the 0.5 value by respectively 0.483 in dir_y and 0.535 in dir_xy.

Of course, this is entirely by just dumb trial and error, and I highly 
doubt if it is significant. I wonder now if it holds for other scenes... 
tests to do...

-- 
Thomas


Post a reply to this message


Attachments:
Download 'islaytest.png' (360 KB)

Preview of image 'islaytest.png'
islaytest.png


 

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