Skip to content
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

Rendering 1/4 of Scene with qt5 on macOS 10.12 (Sierra) #2070

Closed
osrf-migration opened this issue Oct 12, 2016 · 21 comments
Closed

Rendering 1/4 of Scene with qt5 on macOS 10.12 (Sierra) #2070

osrf-migration opened this issue Oct 12, 2016 · 21 comments
Labels
bug Something isn't working major os::osx

Comments

@osrf-migration
Copy link

Original report (archived issue) by Denys Kotelovych (Bitbucket: ilidar).


Having this kind of issue on macOS Sierra. Looks like something wrong going on with ogre.

[Link Text](Link URL)Screenshot 2016-10-12 12.31.45.png

@osrf-migration
Copy link
Author

Original comment by Denys Kotelovych (Bitbucket: ilidar).


  • Edited issue description

@osrf-migration
Copy link
Author

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


Out of curiosity, how did you build qt for Sierra? Did you use the tapped formula:

brew install cartr/qt4/qt

I don't have a Sierra install, so I don't have a way to reproduce this yet.

@osrf-migration
Copy link
Author

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


  • changed component from "rendering::ogre_gazebo" to "os::osx"

@osrf-migration
Copy link
Author

Original comment by Denys Kotelovych (Bitbucket: ilidar).


Nope, I'm using qt5 formula.

@osrf-migration
Copy link
Author

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


Did you use the qt5 branch of gazebo?

@osrf-migration
Copy link
Author

Original comment by Denys Kotelovych (Bitbucket: ilidar).


Exactly. I've switched to Sierra recently and now suffering from consequences :-(.

@osrf-migration
Copy link
Author

Original comment by Denys Kotelovych (Bitbucket: ilidar).


Strange thing is that if I use external display it's working like a charm, perfectly. But when using just a laptop ( MacBook Pro (Retina, 15-inch, Late 2013) ) then above screenshot is happens :-(, I think it's because of Retina display.

@osrf-migration
Copy link
Author

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


I haven't been able to get even that far on Yosemite with the qt5 branch. I was getting runtime errors.

@osrf-migration
Copy link
Author

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


What happens if you adjust the scaling of your display?

https://support.apple.com/en-us/HT202471

@osrf-migration
Copy link
Author

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


  • changed title from "Rendering 1/4 of Scene" to "Rendering 1/4 of Scene with qt5 on macOS 10.12 (Sierra)"

@osrf-migration
Copy link
Author

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


Also, are you using the default ogre formula (1.7.4) or have you used one of the more recent alternates (1.8 or 1.9)?

@osrf-migration
Copy link
Author

Original comment by Denys Kotelovych (Bitbucket: ilidar).


Adjusting scaling didn't help. And I'm using default 1.7.4 formula.

@osrf-migration
Copy link
Author

Original comment by Denys Kotelovych (Bitbucket: ilidar).


I've tried some of 1.8/1.9, but couldn't compile them, so I've stopped in this direction.

@osrf-migration
Copy link
Author

Original comment by Denys Kotelovych (Bitbucket: ilidar).


Also, qt5 branch didn't compile on sierra either, seams like qwt doesn't works yet.

UPD
I've disabled qwt and fixed some include_directories problems, so now it's working on my machine.

@osrf-migration
Copy link
Author

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


here's an updated qwt formula:

Homebrew/homebrew-core#5162

@osrf-migration
Copy link
Author

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


I've been able to reproduce the 1/4 screen issue after fixing the recurring seg-fault I was seeing (see pull request #2475). We will continue to investigate this.

@osrf-migration
Copy link
Author

Original comment by Denys Kotelovych (Bitbucket: ilidar).


Good, would be nice to know what's wrong ;-(.

@osrf-migration
Copy link
Author

Original comment by Ian Chen (Bitbucket: Ian Chen, GitHub: iche033).


I did some digging into this and found that it's due to qt5's high dpi support, i.e. a problem on retina devices. Everything is scaled by 2x.

Ogre 1.9's OSX Cocoa window class added some support for this, namely the contentScalingFactor param. On the other hand Qt 5.6+ added an attribute, Qt::AA_DisableHighDpiScaling that's supposed to disable scaling. Unfortunately we're on ogre 1.7.4 and qt 5.5 so we don't get these two options.

A not-so-ideal workaround is to scale the ogre window by 2x but we'll probably need to make sure all qt mouse input pos (for mouse picking) are converted correctly to the ogre viewport coordinates within the scaled window.

@osrf-migration
Copy link
Author

Original comment by Ian Chen (Bitbucket: Ian Chen, GitHub: iche033).


oh just realized it's been a while since I updated homebrew, so we'll have qt 5.7 to work with.

@osrf-migration
Copy link
Author

Original comment by Ian Chen (Bitbucket: Ian Chen, GitHub: iche033).


pull request #2572

@osrf-migration
Copy link
Author

Original comment by Ian Chen (Bitbucket: Ian Chen, GitHub: iche033).


  • changed state from "new" to "resolved"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working major os::osx
Projects
None yet
Development

No branches or pull requests

1 participant