Pregunta

For an example, I have position 1,2,3, rotation in quaternion 0,0,0,1 and scale 0.3, 0.3, 0.3. How can I apply it to vertices and normals?

¿Fue útil?

Solución

Build matrices P, R, and S corresponding to position, rotation, and scale. There are likely helper functions for that.

Apply S then R then P (i.e. P*R*S) to your vertices and R to your normals.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top