google / marzipano

A 360° media viewer for the modern web.
http://www.marzipano.net
Apache License 2.0
2.01k stars 1k forks source link

Is it possible to make view center and contain whole hotspot html? #445

Open mukishao opened 2 years ago

mukishao commented 2 years ago

Context I hvae hotspot contains a popup. When I click on the hotspot the popup will show up and I want the whole popup at the center of view.

The problem I use scene.lookTo() but the result will like the following picture, you can see only the hotspot is on the center. Wrong Result

What is expected ? I want the whole hotspot html ( the popup is inside hotspot html ) to be visible and center on the view. Like the following picture. Correct Result

Thanks for any help!

jalamprea commented 1 year ago

Hey, if you want to build a complete custom 360 experience with a lot of more custom controls without any code, you could use https://webxr.tools It's a nocode platform with a visual builder based on marzipano to create amazing 360 experiences, with multiple scenes, custom hotspots, custom navigation, and a lot of features to customize your 360 scenes