<scene> & <global>
Description
The scene node contains the nodes that make up a single scene. A tour can contain multiple scene elements.
The global node is syntax equivalent to the scene node. Child elements of the global node are available in all scenes. As such, the global node can be used to specify common elements such as a user interface and branding for a set of panoramic scenes. If a scene contains a node with the same id as a node in the global node, the global version is overridden.
Syntax
<tour> <global src="globalfile.xml"> ... </global> <scene id="someId" src="scenefile.xml"> ... </scene> <scene id="someOtherId"> ... </scene> .. </tour>
Attributes
-
id
The scene is referenced by this unique id. Ignored for global nodes, required for scene nodes. -
src
Optionally specifies an external XML file that describes this node. If src is specified, node attributes and any inline child elements are replaced by the child elements specified in the external file. The external file should be SPi-V XML file, and contain at least a single scene or global node.
Events
-
enter
Fires when the scene is entered, before any of the child elements are built. -
exit
Fires when the scene is left. -
ready
Fires when all the elements in the scene are done building.
History
- 07-Mar-07: Added variable
- 22-Oct-04: Added events
- 22-Oct-04: Changed signal to ramp
- 13-Oct-04: Updated src attribute
- 08-Oct-04: Added sound, signal and meter childs
- 01-Apr-04: Initial version
fieldOfView | SPi-V dev
Re: <scene> & <global>
<scene id="name" src="name.xml" />can only read the first scene in name.xml
so:
"The external file should be SPi-V XML file, and contain at least a single scene or global node. "
Is it correct sentence?
Re: <scene> & <global>
Yes it is.
There may be another reason to put in a second 'scene' node. But only one is read when using the 'src=' technique.