I think I'll start the first topic here with some update/bulletin entry.
From now on every new information about changes in JOML will start with a "[UPDATE]" in the subject.
JOML is now finally on-par with XNA's math library with this commit
The only thing that was missing was a way to create a spherical and cylindrical billboard matrix.
There were some design decisions that needed to be made for this:
1. Should the method assume to operate on an already established view/camera matrix?
2. Should it be post-multiplying or create/set the matrix?
I decided to use the same semantics as does the XNA CreateBillboard
Matrix methods, by having that method create a completely independent model transformation matrix that can later be concatenated/multiplied to a view transformation matrix.
See the BillboardDemo
for an example.
Additionally, the Matrix4 classes got a little utility origin()
method to determine the camera position from a view/camera transformation matrix. (hint: this is not
simply the last column of the matrix).
Oh and by the way: Happy new year!