Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top