Comments (3)
This is already possible with the targetPitch
and targetYaw
hot spot configuration parameters, which override the target scene's default pointing.
from pannellum.
The first scene - is it possible to create a targetYaw for that one? And if so, what's the implementation?
Thanks!
from pannellum.
Yes. Each scene can have a pitch
and yaw
specified that determine its default pointing, and each hot spot can have a targetPitch
and targetYaw
that override the default pointing.
"sceneName": {
"panorama": "./pano1.jpg",
"hotSpots": [
{
"pitch": 0,
"yaw": 100,
"targetPitch": 10,
"targetYaw": 20,
"type": "scene",
"text": "Other Scene (with override)",
"sceneId": "otherScene"
},
{
"pitch": 10,
"yaw": 100,
"type": "scene",
"text": "Other Scene (without override)",
"sceneId": "otherScene"
}
]
},
"otherScene": {
"panorama": "./pano2.jpg",
"pitch": 100,
"yaw": 150
}
In this example, the scene's (not the hot spot's) pitch
and yaw
parameters specify the default pointing of the other scene. When the hot spot that specifies the targetPitch
and targetYaw
parameters is clicked, the other scene is loaded with an initial pointing of pitch 10 and yaw 20. When the hot spot that does not specify this override is clicked, the other scene is loaded with its default initial pointing of pitch 100 and yaw 150.
from pannellum.
Related Issues (20)
- hotspot HOT 1
- Can I use a normal image (not panorama or photosphere) in pannellum? HOT 2
- Removing white screen between images loading without using scenes HOT 3
- i have problem caching image i set to canvas HOT 2
- Mouse click to cube coordinates HOT 1
- generate.py tile size edge case HOT 1
- Cubemap panorama HOT 1
- question - Support for depth map (equirectangular image with encoded depth value) HOT 1
- Virtual Tour Scene Misalignment with Navigation Arrows. HOT 3
- black squares when using multiple resolutions HOT 1
- Add typescript definitions on DefinitelyTyped HOT 1
- Feature Request: /latest/ path on cdn.pannellum.org HOT 1
- autoRotateInactivityDelay without autoRotate causes it to lookAt on scene start HOT 3
- how to set custom hotSpots arrow rotation HOT 1
- Untilting a panorama HOT 2
- Simple Panorama Example can't load my image? HOT 2
- Why there is no LOADING system for MRES pano ? HOT 1
- How to turn the azimuth values of nearby points to the hotspot view inside the panoramic view. HOT 8
- some android browser throw maxWidth error HOT 1
- Viewer.removeHotSpot HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pannellum.