Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting the viewing angle of the image when displayed #1199

Open
zeleamaaa opened this issue Jan 1, 2024 · 1 comment
Open

Setting the viewing angle of the image when displayed #1199

zeleamaaa opened this issue Jan 1, 2024 · 1 comment
Labels

Comments

@zeleamaaa
Copy link

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

@mpetroff
Copy link
Owner

mpetroff commented Jan 7, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants