Closed hietalajulius closed 2 years ago
Looks good to me. I took the liberty to add a few changes. I abstracted the camera controls into a helper class and included them in the studio view. It also now renders the look at point when rotating the camera too for clarity.
Feel free to merge if you think these changes are ok.
https://user-images.githubusercontent.com/4254623/160874763-5a3c5c48-685c-4d5d-9fdd-c582579ab0a7.mp4
Initially points the camera to the mean of the cloud. Also calculates the std of the points in order to determine a scale factor for the cloud. Did not yet find a bulletproof heuristic that would work super well for small and large scenes. With larger scenes there also seems to be a bug when alternating between translating and rotating around a target.
Also renders the lookat point when
ctrl/cmd
is held down. This should probably be evolved into something more sophisticated e.g. what meshlab does.