Is there any scene.addEventListener that detects when the ShapeDiver canvas is orbited?
I have a CSS animation inviting users to “orbit” the canvas, as an advise that what they are seeing is a 3D model, so I want to detect when the user rotates the viewer and then hide the container with the CSS animation.
Thank you @Joseph_Oster, I had previously tried with these SceneEventType and I think that they are waiting for an object to move from position (maybe for clickable 3d objects).
I also tried with HOVER_ON SceneEventType and it works when the mouse hovers an object (callback), but I want specifically fire an event when the scene is orbited.
I’m now testing with an orthogonal camera (cameraType = 1), but it doesn’t seem to trigger the event listener. Is this expected behavior?
Update: I guess this has to do with the fact that zooming in orthogonal mode doens’t actually make the camera move, it only changes the camera target. Is there any way to trigger an event in this case?
Update 2: Maybe not: panning dóes move the camera, also in ortho mode, and it doesn’t trigger.
Update 3: When setting the camera damping factor to 1.0 camera movements also fail to trigger.
Sorry for the late answer. After some testing, it appears that the event is indeed not triggered with the orthogonal cameras. I have filed a bug and will let you know once it is fixed.