Login  Register

Re: CPU - based math library (like GLM)?

Posted by BIS on Sep 30, 2016; 7:37pm
URL: https://forum.jogamp.org/CPU-based-math-library-like-GLM-tp4037172p4037269.html

One enhancement I'd like to see would be a utility function for generating a matrix for transforming normals, derived from a vertex transformation matrix; i.e., a function that would take a 4x4 ModelView matrix, invert and transpose it, and return the upper left 3x3 of the result. That was the one feature I found I needed to add myself. (Or is there already such an animal, and I just overlooked it? I had written my own LookAt before I spotted the included one - maybe I've missed this, too?)