* Fixed incorrect distortion when loading scene with multiple distortion cameras
Signed-off-by: William Lew <email address hidden>
* Add models and world to show distortion bug
There is a bug in the initialization of cameras with distortion.
Loading multiple cameras with different distortion parameters
at the same time causes some of the same distortion parameters
to be applied to all those cameras. Spawning a model with a single
distorted camera afterwards works fine, even in a world that
already contains distorted cameras.
Signed-off-by: Steve Peters <email address hidden>
Co-authored-by: Steve Peters <email address hidden>
Distortion normalization improvement + fix "folding" on large distortions (#3009)
This fixes distortion behavior when the SDFormat
<ignition:legacy_mode> parameter is set to false in
the distortion context. The fix ensures that pixel
coordinates projected to camera plane for distortion
and disables cropping.
This also fixes a wraparound issue for extreme distortions.