Forum Discussion
360 image: trigger or JavaScript to change view angle
This is an amazingly basic scripting task. I can set the initial view (but then the setting is ignored in version v3.113.36519.0), but I can't programmatically move the viewing angle to point where I want.
This could be handled either by rotating the virtual camera to an actual 3D angle or by having an action to "point the camera" at a marker. Neither appears to exist. The program does this exact thing in guided tour mode, why not expose this functionality to the developer?
Maybe it's available from JavaScript, but I can't locate an API for the 360 image functionality. If it exists, please point me toward it.
Thank you.
1 Reply
- Nathan_HilliardCommunity Member
You can look at the discussion at
Interaction with 360 degree images | E-Learning Heroes for some info and potential starting points.
I have not found an active reference to the 360 Image viewer object in SL. However, with a small story.html file hack you can expose all of it, and more. It is a hassle to maintain through project edits though. Of course, you can also make your own from scratch but then you're largely reinventing the wheel, even if it is a better wheel in the end.