|Posted: Fri Jul 06, 2018 11:27 am Post subject:
ReaderWriterCFG - offset for single camera
hope you enjoyed your holiday.
Attached is the fix for ReaderWriterCFG to load offset for camera into
view matrix if only single camera is defined in the config file.
The cameras from .cfg files were loaded as slaves initially. There was a
change in 2014 to reuse the View::getCamera() instead of creating a
slave for single camera but that change removed loading offset onto
camera's view matrix. The 2014 change affected only single camera mode,
the multiple cameras config still loads offsets onto view matrices. The
2014 resulted in single cam offset being ignored and unavailable from
outside the config reader. My change copies the multiple camera
behaviour for single camera and brings back pre 2014 functionality while
still reusing master camera.
With this change one can still use same camera configuration
(projection, offsets) in both single and mulitple cam setups.
Post generated by Mail2Forum