How to make the camera look at a point on the PhotoDome. I need to focus on hot topics。
For example, how can I make the camera look at this green dot
camera.target = globeMarker.position
Example (click on the green marker) - https://www.babylonjs-playground.com/#14krgg#975
You also may want to add some camera animation to make the target change more smooth. Example here (double click changes ArcRotate camera’s target with animation and easing) - https://playground.babylonjs.com/#IA5B1R#1
camera.target = globeMarker.position.normalizeToRef(BABYLON.Vector3.Zero())
camera.position = BABYLON.Vector3.Zero()
Can we calculate alpha and beta?
console.log(camera.alpha, camera.beta)
Example - https://www.babylonjs-playground.com/#14krgg#978
I want to calculate alpha and beta first. Set the camera angle based on alpha and beta. Because I want to achieve an animation effect. However, thank you very much
Now I understand better
I think the way is to clone your camera, and after setting the cloned camera target you’ll have final alpha and beta values to make a smooth transition for your main camera. Then just dispose cloned camera.