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

    timdayT 1 Reply Last reply
    0
    • S seyed

      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

      timdayT Offline
      timdayT Offline
      timday
      wrote on 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

      • Login

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