IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

PickingProxy QML Type

Can be used to provide an alternate GeometryView used only for picking.

This type was introduced in Qt 5.7.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

PickingProxy QML Type

  • Import Statement: import Qt3D.Render 2.4

  • Since:: Qt 5.7

  • Inherits:: Component3D

  • Instantiates:: QPickingProxy

Detailed Description

Picking can be an expensive operation, especially if the mesh has a lot of vertices. PickProxy can be used to provide an alternative geometry, usually with fewer primitives, which will be used for picking, while the GeometryRenderer instance will be used for rendering.

Do not use a PickingProxy if the application requires picking coordinates to match the rendered mesh.

The picking algorithm uses a bounding volume hierarchy to optimize out entities who's bounding volume does not intersect the picking ray. For that hierarchy, the bounding volume of the renderered entity is used (or one explicitly set using a BoundingVolume component) will be used rather than the one of the proxy.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+