BillboardItem3DThe BillboardItem3D will always face toward the viewer. More... Inherits Item3D BillboardItem3D instantiates the C++ class BillboardItem3D This type was introduced in Qt 4.8. Detailed DescriptionSometimes it is desirable to have objects which always face toward the camera. For example, a quad with text on it may always face the camera so as to be readable at all times. While this can be achieved with a QGraphicsLookAtTransform on a normal Item3D, the BillboardItem3D class provides a more efficient "cheat" which takes advantage of the underlying 3D mathematics. To use a BillboardItem3D declare it exactly like a regular Item3D. When the item is drawn a QGraphicsBillboardTransform will be applied to the item after all other transforms have been performed. For example: Viewport { BillboardItem3D { mesh: Mesh { source: "model.obj" } effect: Effect { blending: true texture: "texture.png" } } } For a practical illustration of its use see the forest example. |
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt 5.0-snapshot | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter contacter par email ou par MP ! |
Copyright © 2000-2012 - www.developpez.com