blensor icon indicating copy to clipboard operation
blensor copied to clipboard

wrong focal length

Open tfriedel opened this issue 11 years ago • 0 comments

When using Blensor 1.0.16rc1 the focal length for a TOF sensor which is set in the GUI is not correctly used. It is hard coded to 10.0 in TOF.py: #10.0mm is currently the distance between the focal point and the sensor

sensor_width = 2 * math.tan(deg2rad(lens_angle_w/2.0)) * 10.0
sensor_height = 2 * math.tan(deg2rad(lens_angle_h/2.0)) * 10.0

replacing 10.0 with flength fixed this problem for me.

tfriedel avatar Feb 27 '15 14:02 tfriedel