1 vote

Avoiding gimbal lock in spherical movement around an object - Python

You can use rotations where only the deltas are based on Euler angles. Say you have a rotation matrix $R$, e.g. which can be the identity initially. Then you can update the rotation as $R'= R_z(\Delta ...
lightxbulb's user avatar
  • 2,083
1 vote

Rendering light balls: Where to do perspective calculations?

First of all a small introduction about the matrices you need. viewMatrix: This matrix is a 4x4 matrix which stores the position and orientation of your camera with respect to the world origin. ...
Thomas's user avatar
  • 1,111
1 vote
Accepted

Converting points, vectors, normals between world and object space for a ray tracer gives weird results

I think you have the wrong order of matrix multiplication. ...
Kevin Reid's user avatar
1 vote

How to apply transformation matrices from multiple primitives on a mesh

In the glTF format, "primitives" are just a way to specify separate draw calls (and hence, separate materials or shader programs) for a single mesh. There is no transform, as you've ...
emackey's user avatar
  • 369

Only top scored, non community-wiki answers of a minimum length are eligible