Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Qt3D] Setting a uniform per entity && drawing a single frame.
Forum Updated to NodeBB v4.3 + New Features

[Qt3D] Setting a uniform per entity && drawing a single frame.

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 213 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.
  • F Offline
    F Offline
    FredFred
    wrote on last edited by
    #1

    Hello,

    I am currently working on a Qt3D project in which I would like to implement color picking. The usual way of doing this is to send a different ID for each drawn object to the shaders via a uniform. That means changing the value of a uniform in between draw calls.

    • Is there a way of doing this without creating as many materials as there are objects ?
    • Is there a way of asking Qt3D to render a single frame on demand ?

    If someone has already written a clean implementation of this, I would appreciate the help.
    Thank you.

    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