Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-111700

Allow picking subset of models in View3D

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • Not Evaluated
    • 6.8.0 FF
    • None
    • Quick: 3D
    • None
    • d3f6fe0b3 (dev)

    Description

      TLDR; please amend `PickResult pick(float x, float y)` to `PickResult pick(float x, float y, List<Model> included)` and optimize picking to only iterate over `included`.

      I have millions of instanced `Model`s in my scene that are pickable. As expected without any sort of culling, picking runs slow at 10FPS (which is good enough).

      However, every frame I would like to `pick` only a specific object to find its exact world coordinates that are in the 4 corners of the viewport.

      I tried disabling picking for the instanced model right before picking this specific object (and turning it back on after picking), but for some reason this didn't work (bug?). Whether this behavior is a bug or not I'd love a 3rd optional param added to `pick` as an optimization.

      Edit: Simply exposing `getRayFromViewportPos(point p)` would also let me do what I need to do picking

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kskau Kristoffer Skau
            clickingbuttons clicking buttons
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes