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. How to pick 3D objects precisely with Qt3D

How to pick 3D objects precisely with Qt3D

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

    Here is my use case:
    I am using Qt3D to pick 3D objects(like a Qt3DExtras::QCuboidMesh). The default pick method is BoundingVolume, which is very coarse. I would like to switch to TrianglePicking.

    My question is how to make the TrianglePicking work?
    I have achieved very precise picking in QtQuick, while do not know how to do that with C++. Here is the code that does not work. Could anyone point out where should I correct?

    Qt3DRender::QPickingSettings *settings = new Qt3DRender::QPickingSettings();
    settings->setPickMethod(Qt3DRender::QPickingSettings::PickMethod::TrianglePicking);
    
    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