Source

kinect-viewer / utility.h

Author Commit Message Labels Comments Date
Cliff Biffle
Removed the old color-texture transform code in preparation for doing it the Right Way(tm).
Branches
shaders
Cliff Biffle
Vector math functions now pass/return structs by value, not by address. This simplifies the code, and since they're inlined anyway it seems to have no performance impact.
Cliff Biffle
Added projective transforms for mapping one frustum onto another.
Cliff Biffle
Changed how perspective is computed. My original formula was wrong. I was merely trying to run the perspective projection formula backwards. This gave a decent approximation at middle distances, but showed warping at extremes. Today I realized I had over-simplified the problem.
Cliff Biffle
Renderer colors are now configurable.
Cliff Biffle
Moved computePerspective out of types.h into a new header, utility.h, and stuffed the vector math routines in there too.