opensourceBIM / BIMsurfer-before2019

This is the repository of the v1 and v2 version of BIM Surfer. It is not maintained anymore. Find the most recent version on https://github.com/opensourceBIM/BIMsurfer
MIT License
432 stars 195 forks source link

2D trace Possible? #229

Open lijuncheng16 opened 6 years ago

lijuncheng16 commented 6 years ago

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?

aothms commented 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