Open lijuncheng16 opened 6 years ago
There's some matrix utility functions here [1] in xeogl that comes bundled with bimsurfer, not sure if there's something for projections. But I don't think a projection matrix is going to be the hardest part of your plan. If I understand you correctly my first attempt would be to render the objects to texture to make use of the efficiency of your GPU (and perhaps minimize implementation effort).
[1] https://github.com/xeolabs/xeogl/blob/master/src/math/math.js
If there's moving objects in the canvas and I want to leave a 2D trace on a plane, Is there an easy way to do it using existing APIs instead me trying to write a matrix operation for coordinates projection over again?