Currently, I am engaged in a small-scale project aimed at showcasing NSF OpenTopography data through a point cloud visualization using three.js. While I have successfully generated the point cloud, I am encountering significant challenges with setting up the camera and implementing camera navigation. Various controls such as OrbitControls.js, TrackballControls.js, and FirstPersonControls.js have been tested but none have produced satisfactory results. Below is a link to a prototype of the visualization I have managed to create so far. My objective is to plot the point cloud data and enable navigation within the scene utilizing either mouse interactions or arrow keys.
Please feel free to reach out if additional code snippets or examples are required. The provided jsFiddle serves as just one of my many attempts to achieve a functioning solution.
Your guidance and insights would be greatly appreciated.
Javascript
... // Code snippet continues