Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Bad shader result in a custom QQuickItem
QtWS25 Last Chance

Bad shader result in a custom QQuickItem

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qtquick2qquickitemopenglqmlscene graph
2 Posts 2 Posters 1.1k Views
  • 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 Offline
    S Offline
    seyed
    wrote on 25 Apr 2018, 10:44 last edited by
    #1

    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 1 May 2018, 18:34
    0
    • S seyed
      25 Apr 2018, 10:44

      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 Offline
      T Offline
      timday
      wrote on 1 May 2018, 18:34 last edited by
      #2

      @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
      0

      1/2

      25 Apr 2018, 10:44

      • Login

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