Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] QOpenGLFramebufferObject y inverted.

[SOLVED] QOpenGLFramebufferObject y inverted.

Scheduled Pinned Locked Moved General and Desktop
3 Posts 1 Posters 1.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Martell Malone
    wrote on last edited by
    #1

    Hi Guys

    I have a QOpenGLFramebufferObject that is y inverted.
    How do i flip it the right way around

    It's for a QSGSimpleTextureNode

    Maybe I change something here?

    QSGGeometry::updateTexturedRectGeometry(&m_geometry,
    QRectF(0, 0, m_size.width(), m_size.height()),
    QRectF(0, 0, 1, 1));

    It's easy for QQuickPaintedItem but not so much for the native rendering method.

    Many Thanks

    Martell

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Martell Malone
      wrote on last edited by
      #2

      I set the scale in qml to -1 and that flipped it but that flips the x value as well :/

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Martell Malone
        wrote on last edited by
        #3

        I've solved this one guys I just changed the rect above to 1 and -1.
        Just like in qquickitem.cpp painted items

        :)

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved