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

Incorrect position in OpenMW (OpenGL) #81

Closed
rharish101 opened this issue Mar 17, 2020 · 7 comments
Closed

Incorrect position in OpenMW (OpenGL) #81

rharish101 opened this issue Mar 17, 2020 · 7 comments

Comments

@rharish101
Copy link

My MangoHud config is the default one, with the position set to top-right as the only change. When I open OpenMW, which uses OpenGL, MangoHud is shown in the middle-left as opposed to top-right.

Screenshot:
MangoHud OpenMW

My setup:

  • OS: Arch Linux
  • MangoHud version: 0.3.0 (from the AUR)
@flightlessmango
Copy link
Owner

The underlying problem seems to be that openmw is not giving the correct GL_VIEWPORT, it's always set to 800x600. I think this is something that should be fixed in openmw

@rharish101
Copy link
Author

Thanks, I'll raise the issue there.

@AnyOldName3
Copy link

It's not always set to 800x600, just when the buffers are swapped. We're not explicitly doing this, OpenSceneGraph is. More details here: https://gitlab.com/OpenMW/openmw/-/issues/5312#note_315016884

@AnyOldName3
Copy link

I'm bumping this again as I've been tidying OpenMW's issue tracker. From our perspective, either MangoHud is incorrect to assume the full viewport is set right before the buffers are swapped, or OpenSceneGraph is incorrect to set a default viewport size right before swapping buffers. This is something that needs to be discussed between the MangoHud developers and OpenSceneGraph developers, as the problem will exist for every OSG application, so there's not any particular need for the OpenMW team to get involved.

To recap, OpenSceneGraph resets the OpenGL state to what it views as a reasonable default at the end of every frame. That includes setting an 800x600 viewport, regardless of what the default framebuffer's size actually is.

@flightlessmango
Copy link
Owner

It doesn't appear to be an issue anymore, most likely fixed on our end a while back

@AnyOldName3
Copy link

Cooleo. I'll close the issue on our tracker.

@rharish101
Copy link
Author

rharish101 commented Sep 10, 2020

Yes, sorry, this was fixed sometime back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants