2

Billboard transformation was depricated since Qt3D 1.0. Now it is replaced with lookAt transformation. I have created plane inside Qt3D context. (took it from Qt3D example found here) and added QLookAtTransform to it. But both:

planeEntity->lookAtTransform()->setViewCenter(cameraEntity->position());

and

planeEntity->lookAtTransform()->setViewVector(cameraEntity->position());

give no result. Plane disappear from scene.

Class reference found here give no explanation of how to use it.

How must QLookAtTransform be used to act like billboard transformation?

ElDorado
  • 448
  • 6
  • 19

1 Answers1

0

See my answer at Gamedev, the procedure is quite simple once you have the view matrix. The view matrix can be acquired through the appropriate getter of your Camera object. If you want to know more, there is also a link which gives you the detailed derivation.

LKieliger
  • 91
  • 7