1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
|
3 | <X3D profile='Immersive' version='3.3' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.3.xsd'> |
4 | <head> |
5 | <meta name='title' content='AnchorComparison.x3d'/> |
6 | <meta name='description' content='Anchor-node examples comparing HTML page launch, shifting Viewpoints, and loading another X3D scene.'/> |
7 | <meta name='creator' content='Leonard Daly and Don Brutzman'/> |
8 | <meta name='created' content='21 April 2011'/> |
9 | <meta name='modified' content='20 October 2019'/> |
10 | <meta name='Image' content='AnchorComparisonFrontViewpoint.png'/> |
11 | <meta name='Image' content='AnchorComparisonObliqueViewpoint.png'/> |
12 | <meta name='reference' content='Show Anchor link to Monterey Bay Aquarium web site for Kelp Forest exhibit'/> |
13 | <meta name='reference' content='http://www.mbayaq.org/efc/kelp.asp'/> |
14 | <meta name='reference' content='https://www.web3d.org/x3d/content/examples/X3dResources.html'/> |
15 | <meta name='rights' content='Copyright (c) 2005, Daly Realism and Don Brutzman'/> |
16 | <meta name='subject' content='X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com'/> |
17 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter04ViewingNavigation/AnchorComparison.x3d'/> |
18 | <meta name='generator' content='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/> |
19 | <meta name='license' content='../license.html'/> |
20 | </head> |
21 | <Scene> |
22 | <WorldInfo title='AnchorComparison.x3d'/> |
23 | <Viewpoint DEF='FrontView' description='Front view Anchor text' position='0 0 8'/> |
24 | <Viewpoint DEF='AngledView' description='Side view Anchor text' orientation='0 1 0 0.7854' position='6 0 6'/> |
25 | <Transform translation='0 2 0'> |
26 | <!-- First Anchor loads a web page --> |
27 | <Anchor DEF='AnchorExample' description='Aquarium Exhibit Web Site' parameter='"target=_blank"' url=' "http://www.montereybayaquarium.org/efc/kelp.asp" '> |
28 | <Shape> |
29 | <Text string='"Click orange text to launch" "Monterey Bay Aquarium" "kelp forest HTML page"'> |
30 |
<!-- FontStyle
LocalFontStyle is a DEF node that has 2 USE nodes: USE_1, USE_2 --> <FontStyle DEF='LocalFontStyle' justify='"MIDDLE" "MIDDLE"' size='0.6'/> |
31 | </Text> |
32 | <Appearance> |
33 | <Material DEF='Autumn11' ambientIntensity='0.25641' diffuseColor='0.795918 0.273554 0.006861' shininess='1' specularColor='0.48655 0.319155 0.444036'> |
34 | <!-- Universal Media Library: Autumn 11 --> |
35 | </Material> |
36 | </Appearance> |
37 | </Shape> |
38 | <!-- Add transparent geometry over the text to make clicking (i.e. Anchor selection) easier --> |
39 |
<!-- Shape
TransparentBoxForEasierUserSelection is a DEF node that has 2 USE nodes: USE_1, USE_2 -->
<Shape DEF='TransparentBoxForEasierUserSelection'> |
40 | <Box size='6 2 0.02'/> |
41 | <Appearance> |
42 | <Material transparency='1'/> |
43 | </Appearance> |
44 | </Shape> |
45 | </Anchor> |
46 | </Transform> |
47 | <!-- Second Anchor brings user to a different viewpoint --> |
48 | <Transform translation='0 -0.25 0'> |
49 | <Anchor description='Move view to diagonal Viewpoint' url=' "#AngledView" '> |
50 | <Shape DEF='AnchorMessage2'> |
51 | <Text string='"Click yellow text to move" "to a diagonal Viewpoint"'> |
52 | <FontStyle USE='LocalFontStyle'/> |
53 | </Text> |
54 | <Appearance> |
55 | <Material ambientIntensity='0.25641' diffuseColor='0.222308 0.15428 0' shininess='0.02' specularColor='0.678571 0.661796 0.528818'> |
56 | <!-- Universal Media Library: Metals 16 --> |
57 | </Material> |
58 | </Appearance> |
59 | </Shape> |
60 | <Shape USE='TransparentBoxForEasierUserSelection'/> |
61 | </Anchor> |
62 | </Transform> |
63 | <!-- Third Anchor Launches Kelp Forest scene --> |
64 | <Transform translation='0 -2 0'> |
65 | <Anchor url=' "../Chapter03Grouping/CoordinateAxes.x3d" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.x3d" "../Chapter03Grouping/CoordinateAxes.wrl" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.wrl" '> |
66 | <Shape DEF='AnchorMessage3'> |
67 | <Text string='"Click green text to load X3D" "CoordinateAxes.x3d scene"'> |
68 | <FontStyle USE='LocalFontStyle'/> |
69 | </Text> |
70 | <Appearance> |
71 | <Material ambientIntensity='0.25' diffuseColor='0.315389 0.544 0.258052' shininess='0.5' specularColor='0.456 0.456 0.456'> |
72 | <!-- Universal Media Library: Autumn 28 --> |
73 | </Material> |
74 | </Appearance> |
75 | </Shape> |
76 | <Shape USE='TransparentBoxForEasierUserSelection'/> |
77 | </Anchor> |
78 | </Transform> |
79 | </Scene> |
80 | </X3D> |
Event Graph ROUTE Table with 0 ROUTE connections total, showing X3D event-model relationships for this scene.
Each row shows an event cascade that may occur during a single timestamp interval between frame renderings, as part of the X3D execution model.
Anchor |
description='Move view to diagonal Viewpoint' User-interaction hint for this node. |
AnchorExample
Anchor |
description='Aquarium Exhibit Web Site' User-interaction hint for this node. |
<!--
Color legend: X3D terminology
<X3dNode
DEF='idName' field='value'/>
matches XML terminology
<XmlElement
DEF='idName' attribute='value'/>
(Light-blue background: event-based behavior node or statement)
(Grey background inside box: inserted documentation)
(Magenta background: X3D Extensibility)
-->
<!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->