1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd">
|
3 | <X3D profile='Immersive' version='3.0' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.0.xsd'> |
4 | <head> |
5 | <component level='1' name='NURBS'/> |
6 | <meta name='title' content='NurbsPatchSurfaceExampleWithOahuTexture.x3d'/> |
7 | <meta name='description' content='ImageTexture applied to animated NURBS patch using NurbsPatchSurface. Compare regular animation rendering to wireframe-mode rendering (if supported by X3D/VRML browser) in order to observe dynamic tessellation.'/> |
8 | <meta name='creator' content='Jeffrey Weekley, Charles Adams'/> |
9 | <meta name='created' content='6 February 2003'/> |
10 | <meta name='modified' content='20 October 2019'/> |
11 | <meta name=' warning ' content=' missing default values for knot and weight array fields in NurbsPatchSurface (weight default: all 1 values) ; not required by X3D specification, but some browsers may fail without them. '/> |
12 | <meta name=' warning ' content=' under development, needs to be upgraded to final version of X3D NURBS nodes '/> |
13 | <meta name='acknowledgement' content='Oahu image prepared by David Colleen and Planet 9 Inc.'/> |
14 | <meta name='reference' content='http://www.planet9.com'/> |
15 | <meta name='subject' content='NURBS Surface Example'/> |
16 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/Basic/NURBS/NurbsPatchSurfaceExampleWithOahuTexture.x3d'/> |
17 | <meta name='generator' content='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/> |
18 | <meta name='license' content='../license.html'/> |
19 | </head> |
20 | <Scene> |
21 | <WorldInfo title='NurbsPatchSurfaceExampleWithOahuTexture.x3d'/> |
22 | <Viewpoint description='animatedPlane' position='3 2 40'/> |
23 | <Transform rotation='1 0 0 -1.5'> |
24 | <Shape> |
25 | <NurbsPatchSurface DEF='NS' solid='false' uDimension='5' uOrder='4' uTessellation='30' vDimension='5' vOrder='4' vTessellation='30' containerField='geometry'> |
26 |
<!-- ROUTE information for NC node:
[from CI.value_changed to set_point
]
-->
<Coordinate DEF='NC' containerField='controlPoint' point='-10 -10 0 -10 -5 0 -10 0 0 -10 5 0 -10 10 0 -5 -10 0 -5 -5 2.5 -5 0 5 -5 5 2.5 -5 10 0 0 -10 0 0 -5 2.5 0 0 5 0 5 2.5 0 10 0 5 -10 0 5 -5 2.5 5 0 15 5 5 2.5 5 10 0 10 -10 0 10 -5 0 10 0 0 10 5 0 10 10 0'/> |
27 | </NurbsPatchSurface> |
28 | <Appearance> |
29 | <ImageTexture url=' "PearlHarborLowResolution.jpg " "https://savage.nps.edu/Savage/Locations/Hawaii/PearlHarborLowResolution.jpg " '/> |
30 | </Appearance> |
31 | </Shape> |
32 | </Transform> |
33 |
<!-- ROUTE information for TS node:
[from fraction_changed to CI.set_fraction
]
-->
<TimeSensor DEF='TS' cycleInterval='6' loop='true'/> |
34 |
<!-- ROUTE information for CI node:
[from TS.fraction_changed to set_fraction
]
[from value_changed to NC.set_point
]
-->
<CoordinateInterpolator DEF='CI' key='0 .5 1' keyValue='-10 -10 0 -10 -5 0 -10 0 0 -10 5 0 -10 10 0 -5 -10 0 -5 -5 2.5 -5 0 5 -5 5 2.5 -5 10 0 0 -10 0 0 -5 2.5 0 0 5 0 5 2.5 0 10 0 5 -10 0 5 -5 2.5 5 0 15 5 5 2.5 5 10 0 10 -10 0 10 -5 0 10 0 0 10 5 0 10 10 0 -10 -10 0 -10 -5 0 -10 0 0 -10 5 0 -10 10 0 -5 -10 0 -5 -5 0 -5 0 0 -5 5 0 -5 10 0 0 -10 0 0 -5 0 0 0 0 0 5 0 0 10 0 5 -10 0 5 -5 0 5 0 0 5 5 0 5 10 0 10 -10 0 10 -5 0 10 0 0 10 5 0 10 10 0 -10 -10 0 -10 -5 0 -10 0 0 -10 5 0 -10 10 0 -5 -10 0 -5 -5 2.5 -5 0 5 -5 5 2.5 -5 10 0 0 -10 0 0 -5 2.5 0 0 5 0 5 2.5 0 10 0 5 -10 0 5 -5 2.5 5 0 15 5 5 2.5 5 10 0 10 -10 0 10 -5 0 10 0 0 10 5 0 10 10 0'/> |
35 | < ROUTE fromNode='TS' fromField='fraction_changed' toNode='CI' toField='set_fraction'/> |
36 | < ROUTE fromNode='CI' fromField='value_changed' toNode='NC' toField='set_point'/> |
37 | </Scene> |
38 | </X3D> |
Event Graph ROUTE Table with 2 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.
TS
TimeSensor fraction_changed SFFloat |
CI
CoordinateInterpolator set_fraction SFFloat |
then
|
CI
CoordinateInterpolator value_changed MFVec3f |
NC
Coordinate set_point MFVec3f |
<!--
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. -->