-
Notifications
You must be signed in to change notification settings - Fork 109
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
I tried the demo in the project, and the correct aspect ratio cannot be displayed. #36
Comments
Hi @fafa1899 do you happen to have any screenshots? |
Hi @mathieu At first, after building osgQt through CMake and compiling VS2017, I directly run it in CMD through the compiled osgviewerQt program:
The rendered earth is slightly deformed: So, to verify this problem, I added the following line of code to the end of osgviewerQt:
"Widget.resize (200, 600);" is the code I added. This time I directly display the cow.osg that comes with OSG: Looks like there is a problem with the aspect ratio, or should the code be adjusted to get normal results? Thanks Reply. |
Same here. The demo shows correct proportions when it calls
|
See #42 |
yes.
|
Thank you very much @fafa1899 |
Hello there!
This project is great because it is implemented from QOpenGLWidget integration. When I tried its own example, osgviewerQt, I found that there was a problem with the aspect ratio of the example. By adding a line of code:
widget.resize (200, 600);
The aspect ratio displayed is even more strange, it seems that this example does not set the correct viewport or crop.
How can I adjust the code to display the correct aspect ratio?
Best regards
osgQt: master version
osg: 3.6.4
env: Windows 10 with vs 2017
The text was updated successfully, but these errors were encountered: