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 | <meta name='title' content='XvlShellAttributeTexture.x3d'/> |
6 | <meta name='description' content='Examples of XvlShell texture mapping.'/> |
7 | <meta name='creator' content='Marc Jablonski'/> |
8 | <meta name='created' content='23 November 2001'/> |
9 | <meta name='modified' content='20 October 2019'/> |
10 | <meta name=' error ' content=' Test X3D DTD experimental extensions mechanisms, the XVL nodes are not legal X3D '/> |
11 | <meta name='reference' content='readme.txt'/> |
12 | <meta name='reference' content='docs/LatticeXVL/LatticeXvlOverview.html'/> |
13 | <meta name='reference' content='https://www.web3d.org/x3d/content/examples/Basic/LatticeXvl/docs/LatticeXVL/LatticeXvlOverview.html'/> |
14 | <meta name='reference' content='http://www.xvl3d.com'/> |
15 | <meta name='subject' content='Lattice XVL parametric geometry X3D VRML'/> |
16 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/Basic/LatticeXvl/XvlShellAttributeTexture.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='XvlShellAttributeTexture.x3d'/> |
22 | <Background groundColor='0 .1 .2' skyColor='0 .1 .2'/> |
23 | <Transform translation='0 1.5 0'> |
24 | <Shape> |
25 | <Appearance> |
26 | <Material emissiveColor='1 1 1'/> |
27 | </Appearance> |
28 | <Text string='"XvlShell Texture Mapping"'> |
29 | <FontStyle justify='"MIDDLE" "MIDDLE"'/> |
30 | </Text> |
31 | </Shape> |
32 | </Transform> |
33 | <Transform translation='-4.5 -1 0'> |
34 | <Transform translation='0 1.75 0'> |
35 | <Shape> |
36 | <Appearance> |
37 | <Material emissiveColor='1 1 1'/> |
38 | </Appearance> |
39 | <Text maxExtent='2' string='"Whole Surface" "Default Mapping"'> |
40 | <FontStyle justify='"MIDDLE" "MIDDLE"' size='0.5'/> |
41 | </Text> |
42 | </Shape> |
43 | </Transform> |
44 | <Shape> |
45 | <Appearance> |
46 |
<!-- ImageTexture
TextSnapshot is a DEF node that has 3 USE nodes: USE_1, USE_2, USE_3 --> <ImageTexture DEF='TextSnapshot' url=' "XvlTextSnapshot.jpg " "https://www.web3d.org/x3d/content/examples/Basic/LatticeXvl/XvlTextSnapshot.jpg " '/> |
47 | </Appearance> |
48 | <XvlShell faceCoordIndex='3 7 6 2 -1 7 3 1 5 -1 6 4 0 2 -1 1 3 2 0 -1 5 1 0 4 -1 7 5 4 6 -1' shellType='LATTICE_MESH'> |
49 | |
50 | </XvlShell> |
51 | </Shape> |
52 | <Shape> |
53 | <Appearance> |
54 | <Material emissiveColor='1 1 1'/> |
55 | </Appearance> |
56 | <IndexedLineSet coordIndex='3 7 6 2 -1 7 3 1 5 -1 6 4 0 2 -1 1 3 2 0 -1 5 1 0 4 -1 7 5 4 6 -1'> |
57 | <Coordinate USE='MESH_COORD'/> |
58 | </IndexedLineSet> |
59 | </Shape> |
60 | </Transform> |
61 | <Transform translation='-1.5 -1 0'> |
62 | <Transform translation='0 1.75 0'> |
63 | <Shape> |
64 | <Appearance> |
65 | <Material emissiveColor='1 1 1'/> |
66 | </Appearance> |
67 | <Text maxExtent='2' string='"All Faces" "Texture Coordinates"'> |
68 | <FontStyle justify='"MIDDLE" "MIDDLE"' size='0.5'/> |
69 | </Text> |
70 | </Shape> |
71 | </Transform> |
72 | <Shape> |
73 | <Appearance> |
74 | <ImageTexture USE='TextSnapshot'/> |
75 | </Appearance> |
76 | <XvlShell faceCoordIndex='3 7 6 2 -1 7 3 1 5 -1 6 4 0 2 -1 1 3 2 0 -1 5 1 0 4 -1 7 5 4 6 -1' faceTexCoordIndex='0 2 3 1 -1 3 1 0 2 -1 1 0 2 3 -1 2 3 1 0 -1 3 1 0 2 -1 1 0 2 3 -1' shellType='LATTICE_MESH'> |
77 | <Coordinate USE='MESH_COORD'/> |
78 | <TextureCoordinate point='0 0 0 1 1 0 1 1'/> |
79 | </XvlShell> |
80 | </Shape> |
81 | <Shape> |
82 | <Appearance> |
83 | <Material emissiveColor='1 1 1'/> |
84 | </Appearance> |
85 | <IndexedLineSet coordIndex='3 7 6 2 -1 7 3 1 5 -1 6 4 0 2 -1 1 3 2 0 -1 5 1 0 4 -1 7 5 4 6 -1'> |
86 | <Coordinate USE='MESH_COORD'/> |
87 | </IndexedLineSet> |
88 | </Shape> |
89 | </Transform> |
90 | <Transform translation='1.5 -1 0'> |
91 | <Transform translation='0 1.75 0'> |
92 | <Shape> |
93 | <Appearance> |
94 | <Material emissiveColor='1 1 1'/> |
95 | </Appearance> |
96 | <Text maxExtent='2' string='"Front Face Only" "Default Mapping"'> |
97 | <FontStyle justify='"MIDDLE" "MIDDLE"' size='0.5'/> |
98 | </Text> |
99 | </Shape> |
100 | </Transform> |
101 | <Shape> |
102 | <Appearance> |
103 | <ImageTexture USE='TextSnapshot'/> |
104 | </Appearance> |
105 | <XvlShell faceCoordIndex='3 7 6 2 -1 7 3 1 5 -1 6 4 0 2 -1 1 3 2 0 -1 5 1 0 4 -1 7 5 4 6 -1' faceHidden='true false true true true true' shellType='LATTICE_MESH'> |
106 | <Coordinate USE='MESH_COORD'/> |
107 | </XvlShell> |
108 | </Shape> |
109 | <Shape> |
110 | <Appearance> |
111 | <Material diffuseColor='.5 1 1'/> |
112 | </Appearance> |
113 | <XvlShell faceCoordIndex='3 7 6 2 -1 7 3 1 5 -1 6 4 0 2 -1 1 3 2 0 -1 5 1 0 4 -1 7 5 4 6 -1' faceHidden='false true false false false false' shellType='LATTICE_MESH'> |
114 | <Coordinate USE='MESH_COORD'/> |
115 | </XvlShell> |
116 | </Shape> |
117 | <Shape> |
118 | <Appearance> |
119 | <Material emissiveColor='1 1 1'/> |
120 | </Appearance> |
121 | <IndexedLineSet coordIndex='3 7 6 2 -1 7 3 1 5 -1 6 4 0 2 -1 1 3 2 0 -1 5 1 0 4 -1 7 5 4 6 -1'> |
122 | <Coordinate USE='MESH_COORD'/> |
123 | </IndexedLineSet> |
124 | </Shape> |
125 | </Transform> |
126 | <Transform translation='4.5 -1 0'> |
127 | <Transform translation='0 1.75 0'> |
128 | <Shape> |
129 | <Appearance> |
130 | <Material emissiveColor='1 1 1'/> |
131 | </Appearance> |
132 | <Text maxExtent='2' string='"Front Face Only" "Texture Coordinates"'> |
133 | <FontStyle justify='"MIDDLE" "MIDDLE"' size='0.5'/> |
134 | </Text> |
135 | </Shape> |
136 | </Transform> |
137 | <Shape> |
138 | <Appearance> |
139 | <ImageTexture USE='TextSnapshot'/> |
140 | </Appearance> |
141 | <XvlShell faceCoordIndex='3 7 6 2 -1 7 3 1 5 -1 6 4 0 2 -1 1 3 2 0 -1 5 1 0 4 -1 7 5 4 6 -1' faceHidden='true false true true true true' faceTexCoordIndex='0 0 0 0 -1 3 1 0 2 -1 0 0 0 0 -1 0 0 0 0 -1 0 0 0 0 -1 0 0 0 0 -1' shellType='LATTICE_MESH'> |
142 | <Coordinate USE='MESH_COORD'/> |
143 | <TextureCoordinate point='0 0 0 1 1 0 1 1'/> |
144 | </XvlShell> |
145 | </Shape> |
146 | <Shape> |
147 | <Appearance> |
148 | <Material diffuseColor='.5 1 1'/> |
149 | </Appearance> |
150 | <XvlShell faceCoordIndex='3 7 6 2 -1 7 3 1 5 -1 6 4 0 2 -1 1 3 2 0 -1 5 1 0 4 -1 7 5 4 6 -1' faceHidden='false true false false false false' shellType='LATTICE_MESH'> |
151 | <Coordinate USE='MESH_COORD'/> |
152 | </XvlShell> |
153 | </Shape> |
154 | <Shape> |
155 | <Appearance> |
156 | <Material emissiveColor='1 1 1'/> |
157 | </Appearance> |
158 | <IndexedLineSet coordIndex='3 7 6 2 -1 7 3 1 5 -1 6 4 0 2 -1 1 3 2 0 -1 5 1 0 4 -1 7 5 4 6 -1'> |
159 | <Coordinate USE='MESH_COORD'/> |
160 | </IndexedLineSet> |
161 | </Shape> |
162 | </Transform> |
163 | </Scene> |
164 | </X3D> |
<!--
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. -->