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. QtQuick 3d: how to enable transparency?
Qt 6.11 is out! See what's new in the release blog

QtQuick 3d: how to enable transparency?

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 4.3k 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.
  • H Offline
    H Offline
    hhrhhr
    wrote on last edited by
    #1

    if in the tutorial "\tutorials\qt3d\penguin_advanced":http://doc.qt.nokia.com/qt-quick3d-snapshot/qt3d-penguin.html load model with a transparent material, it appears as a normal material. ("test model":https://github.com/assimp/assimp/blob/master/test/models/3DS/cubes_with_alpha.3DS)
    how to enable the transparency?

    1 Reply Last reply
    0
    • kidproquoK Offline
      kidproquoK Offline
      kidproquo
      wrote on last edited by
      #2

      Apparently the Qt Quick 3d importer is still incomplete and doesn't handle transparency yet. You sometimes work around this from within the QML file.

      Try having a look at "this video":http://labs.qt.nokia.com/2011/08/24/qt-quick-3d-tutorial-video/ . They cover "fixing" the glass in a car model so it is semi-transparent.

      Hopefully that might be of some use.

      1 Reply Last reply
      0
      • H Offline
        H Offline
        hhrhhr
        wrote on last edited by
        #3

        Thanks, I tried to do it in Qt3D and everything turned out (add an transparency effect to the individual mesh).
        but usually the editing model is difficult :(

        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