Can I change the direction of rotation of the 360 photo dome?

The babylon’s PhotoDome gives a very convenient and efficient way to create a panorama,
I want to know,can I change the direction of rotation of the 360 photo dome?
It’s mean,when I move the mouse or finger(on mobile device) to the left, the view also rotates to the left,the current default is the opposite of this (I know this is because it is the camera that is rotating),
I found an example of what I was looking for, but it’s based on threejs:
https://threejs.org/examples/?q=pan#webgl_panorama_cube

1 Like

You can simply rotate the dome like this : https://playground.babylonjs.com/#14KRGG#577

Thanks for your reply, but it’s not what I was looking for.
What I want is that when I drag with the mouse or my finger, it looks like I’m dragging the ‘picture’ instead of the camera view, like when you scroll a long horizontal page on your phone and swipe your finger to the left, the page scrolls to the left, not the other way around.

Maybe something like this?https://playground.babylonjs.com/#14KRGG#578
Changes on Line 6 and 7.

2 Likes

Yes, this is exactly what I was looking for, fantastic!

1 Like