p5.EasyCam
p5.EasyCam copied to clipboard
Importing p5.js with threejs
Can I use this 3d camera with three.js?
Sort of. The EasyCam library at present is coupled with the p5js renderer. Perhaps it could be decoupled at some point in the future. Meanwhile, there is the option of overlaying two canvases and using the p5 EasyCam instance to dynamically inform the threejs camera within the update loop. Here's how: https://editor.p5js.org/jwdunn1/sketches/NxiklckeZ (Not perfect, but reasonable.)
Thank you so much !