Adding scale factor to camera, which will multiply near, far and pan_delta, see scripts/v120_camera_scale.py. We need try a bit to see what number works best for what unit. Also the definition for units might be more relevant to live in code base of inheriting class like ifc_viewer.
Added look_at function for better camera positioning. See scripts/v120_camera_lookat.py. Right now the camera has been setup in the "target prioritised" way, which means setting position will automatically update rotation to maintain target unchanged. But setting target directly will end up updating position (like a shifting action), this might be the reason it was previously not working as expected. look_at allows look at new target at same time maintaining current position.
Adding scale factor to camera, which will multiply near, far and pan_delta, see
scripts/v120_camera_scale.py
. We need try a bit to see what number works best for what unit. Also the definition for units might be more relevant to live in code base of inheriting class like ifc_viewer.Added
look_at
function for better camera positioning. Seescripts/v120_camera_lookat.py
. Right now the camera has been setup in the "target prioritised" way, which means setting position will automatically update rotation to maintain target unchanged. But setting target directly will end up updating position (like a shifting action), this might be the reason it was previously not working as expected.look_at
allows look at new target at same time maintaining current position.