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

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

Log in to reply