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. Custom mesh, but QQuickShaderEffectMesh is defined private

Custom mesh, but QQuickShaderEffectMesh is defined private

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 2 Posters 1.8k 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.
  • D Offline
    D Offline
    diro
    wrote on last edited by
    #1

    I am playing ShaderEffect in QtQuick 2.0, and there is a mesh property. The document said:
    "This property defines the mesh used to draw the ShaderEffect. It can hold any mesh object deriving from QQuickShaderEffectMesh, such as GridMesh."
    But it seems the QQuickShaderEffectMesh is defined in a private header file inside Qt, so I cannot derived from it. How can I make a custom mesh in ShaderEffect?

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

      Hi,

      It sounds like the documentation needs to be updated (I'd suggest filing a bug at http://bugreports.qt-project.org ). Have you looked at using GridMesh to define your mesh? Can you give any information about what sort of custom mesh you are looking to produce?

      Regards,
      Michael

      1 Reply Last reply
      0
      • D Offline
        D Offline
        diro
        wrote on last edited by
        #3

        Hi,
        Yes, I have looked at GridMesh, but it seems that it can define the resolution only, right?
        In my case, I want to get an distorted texture without vertex shader, such as the vector deformation example (http://qt-project.org/doc/qt-4.8/demos-deform.html)

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mbrasser
          wrote on last edited by
          #4

          Yes, as far as I know GridMesh only defines a resolution, and is meant to be used with a custom vertex 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