mpetroff / pannellum

Pannellum is a lightweight, free, and open source panorama viewer for the web.

Home Page:https://pannellum.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setting the viewing angle of the image when displayed

zeleamaaa opened this issue · comments

Is it possible to make 2 settings (hfov, pitch, yaw) on one image? For example, if we want to click the button to move forward (hotspot), the initial viewpoint of the image remains forward, and if we want to return to the previous image, the viewpoint of the image is from behind the image, such as when accessing Google Street View. Thank you in advance

You can use the targetPitch / targetYaw / targetHfov parameters on your hot spots. By setting these, you'll override the defaults for the scene. Or if you're using the API, loadScene method has optional parameters for setting the pitch, yaw, and hfov.