-
-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RViz on High-DPI screens #102
Comments
Can confirm that I have this issue across multiple machines and on windows. Resizing does appear to fix most case. |
Thanks all for this bug report! Indeed, it's something I noticed on Fedora, too (and usually fixed by resizing the window). We have similar issues on OS X where the view is skewed (but the skew factor seems to change based on how wide the RViz Window is). I wonder if there is a place in RViz where the window viewport width is calculated? cc @rhaschke if you have a pointer where I should look I'd be happy to debug this a bit locally. |
I did a little bit of digging and I am guessing the file is render_widget.cpp in the ogre_helpers folder might be relevant. Seems to have been an issue on High DPI screens here: ros-visualization/rviz#1306 (comment) |
How about just calling RenderWidget::resizeEvent() at the end of the RenderWidget constructor? Unfortunately I don't have a high dpi screen to test it. |
This issue seems to be a duplicate of ros-visualization/rviz#1262 which was fixed via ros-visualization/rviz#1263. The corresponding commit should be part of the RoboStack-released version as well. @wolfv, have a look at |
I can confirm the same issue on Ubuntu 18.04 |
@ameysutavani, do you observe this issue with the standard ROS Debian packages as well or with the RoboStack release only? |
@rhaschke my system is ubuntu 18.04, and everything of RVIZ (version 1.13.16) with the standard ROS Debian packages (melodic) is ok, but has the same issue after installing this devel with conda. |
@rhaschke The above issue does not seem to happen with deb install rviz. I can confirm this for both ros melodic and ros noetic |
Hiya, I just had a look at this - it seems like the ogre selector was wrong in ros-noetic/patch/ros-noetic-rviz.patch Lines 94 to 104 in 057e616
We use Ogre 1.10 which needs the call to render_window_->windowMovedOrResized(); which didn't happen without the patch that I just uploaded (@rhaschke).
@ameysutavani @lyh458 @SteveQUT @wxmerkt - let me know if this did the trick for you (the package rebuild will take an hour or so, after that simply |
Can confirm this is now fixed on Linux64. |
Seems like the package was accidentally downgraded rather than upgraded. |
I'm using a high-DPI screen with scaling (4K, 200% scale). Regular RViz works just fine while RoboStack-RViz does not use the full viewport.
This is how RViz starts:
After some window resizing I get this:
Sometimes it also renders garbage/background windows in the black space.
Have you observed something similar? Could this be related to a different OGRE version? I use rviz-1.14.5/the latest.
The text was updated successfully, but these errors were encountered: