Class GuidedTour
X3D encodings example: provides control of the viewpoint through use of a script. This is useful for things such as guided tours, merry-go-round rides, and transportation devices such as buses and elevators. These next two examples show a couple of ways to use this feature. This example is a simple guided tour through the world. Upon entry, a guide orb hovers in front of the viewer. Click on this and a tour through the world begins. The orb follows the user around on his tour. A ProximitySensor ensures that the tour is started only if the user is close to the initial starting point. Note that this is done without scripts thanks to the touchTime output of the TouchSensor.
Related links: Catalog page GuidedTour, source GuidedTour.java, X3D Resources, X3D Scene Authoring Hints, and X3D Tooltips.
meta tags | Document Metadata |
title | GuidedTour.x3d |
description | X3D encodings example: provides control of the viewpoint through use of a script. This is useful for things such as guided tours, merry-go-round rides, and transportation devices such as buses and elevators. These next two examples show a couple of ways to use this feature. This example is a simple guided tour through the world. Upon entry, a guide orb hovers in front of the viewer. Click on this and a tour through the world begins. The orb follows the user around on his tour. A ProximitySensor ensures that the tour is started only if the user is close to the initial starting point. Note that this is done without scripts thanks to the touchTime output of the TouchSensor. |
creator | Don Brutzman and Joe Williams |
created | 1 June 2002 |
modified | 28 October 2019 |
specificationSection | X3D encodings, ISO/IEC 19776-1.3, Part 1: XML encoding, Annex C.17 Guided tour |
specificationUrl | https://www.web3d.org/documents/specifications/19776-1/V3.3/Part01/examples.html#GuidedTour |
identifier | https://www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/GuidedTour.x3d |
generator | X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit |
license | ../license.html |
This program uses the
X3D Java Scene Access Interface Library (X3DJSAIL).
It has been produced using the
X3dToJava.xslt
stylesheet
(version control)
which is used to create Java source code from an original .x3d
model.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.web3d.x3d.jsail.Core.X3D
Provide a shallow copy of the X3D model.final void
Create and initialize the X3D model for this object.static void
Default main() method provided for test purposes, uses CommandLine to set global ConfigurationProperties for this object.
-
Constructor Details
-
GuidedTour
public GuidedTour()Default constructor to create this object.
-
-
Method Details
-
initialize
public final void initialize()Create and initialize the X3D model for this object. -
getX3dModel
public org.web3d.x3d.jsail.Core.X3D getX3dModel()Provide a shallow copy of the X3D model.- Returns:
- GuidedTour model
- See Also:
-
main
Default main() method provided for test purposes, uses CommandLine to set global ConfigurationProperties for this object.- Parameters:
args
- array of input parameters, provided as arguments- See Also:
-