Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Bad shader result in a custom QQuickItem

    QML and Qt Quick
    qtquick2 qquickitem opengl qml scene graph
    2
    2
    761
    Loading More Posts
    • 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.
    • S
      seyed last edited by

      Open Scene Graph - OpenGl under QML and Scene Graph - Graph sample projects and try set scale 0.5 to the custom QQuickItems.
      This is results:
      alt text
      alt text

      You can see bad result.
      What is the problem?! Why this behaviour?!
      Is there any bug on uv mapping?

      Thank you

      T 1 Reply Last reply Reply Quote 0
      • T
        timday @seyed last edited by

        @seyed As I understand things, you need to get hold of the item's transform and do whatever your rendering needs to do with it for it to have effect... see https://stackoverflow.com/questions/28535528/how-can-i-get-transform-matrix-for-qquickitem . (Similarly, nothing will implement the opacity property for you... you have to bring it into your OpenGL code and use it in your fragment shader.)

        1 Reply Last reply Reply Quote 0
        • First post
          Last post