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. Face coloring on custom geometry

Face coloring on custom geometry

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 2 Posters 349 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.
  • O Offline
    O Offline
    OlivierD
    wrote on last edited by
    #1

    Hello

    I'm currently playing around with custom geometry using QQuick3DGeometry and I was wondering if it was possible to assign a color to each defined face. I know there is a colorsemantic attribute, but I have no clue what influence that attribute has. It doesn't look possible using the material, when defining the geometry in QML, either. So I was hoping someone here had some advice on this.

    Kind regards
    Olivier

    1 Reply Last reply
    0
    • johngodJ Offline
      johngodJ Offline
      johngod
      wrote on last edited by
      #2

      Hi @OlivierD
      You can use colorsemantic using the addAttribute(....) to define a color for each face , iirc just make sure that in the model Material you set

      lighting: DefaultMaterial.NoLighting
      
      1 Reply Last reply
      0
      • O OlivierD has marked this topic as solved on

      • Login

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