webots icon indicating copy to clipboard operation
webots copied to clipboard

Broken viewpoint rotation around selected object in VM

Open stefaniapedrazzi opened this issue 3 years ago • 4 comments
trafficstars

If an object is selected when rotating the viewpoint, the rotation should be centered at selected object position. However the rotation center in R2022b still seems to be the viewpoint center.

Not sure if this is an issue of the VM (Ubuntu 22.04 VirtualBox) only. Tested with 21.06 nightly build snap package. I will further investigate

stefaniapedrazzi avatar Jun 22 '22 11:06 stefaniapedrazzi

(I hope we are talking about the same thing). I could reproduce the issue using the develop branch today, on a Debian 11. However, I have just checked and I got the same behavior with R2021b, is that the same on your end ?

ShuffleWire avatar Jun 22 '22 22:06 ShuffleWire

Rotating the viewpoint is not based on the selection, but on the picked object. Regardless of the selection, the rotation should take place around the picked point (intersection between the ray from the viewpoint going forward and the first object encountered). I tested it on Ubuntu 22.04 (development environment) under VMware and it works as expected. The bug you experienced may be caused by an OpenGL bug of VirtualBox related to the picking.

omichel avatar Jun 23 '22 06:06 omichel

Yes, I also think it is related to some weird behavior on VirtualBox because I cannot reproduce it on my native system even if I install Webots using the snap package.

However, it is strange because picking seems to work works correctly:

  • on click the correct object is always selected
  • rotating the viewpoint by clicking on the background always works correctly

stefaniapedrazzi avatar Jun 23 '22 06:06 stefaniapedrazzi

I believe this is not a regression.

omichel avatar Jun 23 '22 08:06 omichel