-
Notifications
You must be signed in to change notification settings - Fork 497
Distortion initialization fix with background color #3060
Distortion initialization fix with background color #3060
Conversation
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 <scpeters@openrobotics.org>
…n cameras Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
…heckDistortion test Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
this has merge conflicts that need to be resolved |
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
I tightened some test expectations in 0fe817c |
for some reason, there is a regressions in
I added a Since the |
Spawn the first distorted camera twice and expect both instances to produce the same images. This illustrates a bug observed in which the first distorted camera has too much distortion. Signed-off-by: Steve Peters <scpeters@openrobotics.org>
I've added a test to detect the problems with the first distorted images in edd5d43 |
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
The tests are working now! Turns out that the distortion effect was magnified because refreshing the compositor just adds another compositor on top of the existing one. To fix the issue, I remove the compositor right before adding the new one. |
great work! |
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Closes #2527 - Last camera's distortion affects previous cameras' distortions
When setting the background color to a scene, the distortion parameters continue to leak. From #3033 we can infer that setting the scene's background color is effecting the distortion compositor which is causing the improper order for compositor initialization.
To fix the issue, we reinitialize the distortion after setting the scene's color to ensure the distortion compositor is properly set for each camera.