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='TreeWall.x3d'/> |
6 | <meta name='description' content='A set of trees in front of a wall. This world illustrates the use of textures with a transparency channel (alpha channel). Such textures include pixel-by-pixel info about what parts of the image are transparent. A tree texture, for instance, should be opaque where there are leaves, branches, or the trun, and transparent everywhere else. To illustrate this use of transparency channel textures, this world places three trees side-by-side in front of a wall. The left tree polygon has no texture on it. The middle polygon has a tree texture without the transparency channel. The right polygon has a tree texture with a transparency texture. All three trees are in Billboard nodes so that they always turn to face the viewer.'/> |
7 | <meta name='creator' content='David R. Nadeau, John L. Moreland, Michael M. Heck'/> |
8 | <meta name='translator' content='Don Brutzman'/> |
9 | <meta name='created' content='1 July 1998'/> |
10 | <meta name='translated' content='2 February 2014'/> |
11 | <meta name='modified' content='20 October 2019'/> |
12 | <meta name='reference' content='originals/treewall.wrl'/> |
13 | <meta name='reference' content='http://www.siggraph.org/s98'/> |
14 | <meta name='reference' content='http://www.siggraph.org/s98/conference/courses/18.html'/> |
15 | <meta name='reference' content='http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/slides/mt0273.htm'/> |
16 | <meta name='reference' content='http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/slides/mt0274.htm'/> |
17 | <meta name='reference' content='http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/vrml97.htm'/> |
18 | <meta name='reference' content='https://www.web3d.org/x3d/content/examples/X3dResources.html'/> |
19 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/TreeWall.x3d'/> |
20 | <meta name='generator' content='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html'/> |
21 | <meta name='generator' content='X3D-Edit, https://savage.nps.edu/X3D-Edit'/> |
22 | <meta name='license' content='../license.html'/> |
23 | </head> |
24 | <Scene> |
25 | <WorldInfo info='"Copyright (c) 1997, David R. Nadeau"' title='Trees in front of a wall'/> |
26 | <Viewpoint description='Entry view' position='0.0 1.5 10.0'/> |
27 | <NavigationInfo speed='2.0'/> |
28 | <Shape> |
29 | |
30 | <Material/> |
31 | </Appearance> |
32 | <IndexedFaceSet solid='false' coordIndex='0 1 2 3 -1 3 2 4 5 -1 5 4 6 7 -1 7 6 8 9 -1 9 8 10 11 -1'> |
33 | <Coordinate point='-5.0 0.0 5.0 5.0 0.0 5.0 5.0 0.0 1.0 -5.0 0.0 1.0 5.0 0.05 1.0 -5.0 0.05 1.0 5.0 0.05 -2.0 -5.0 0.05 -2.0 5.0 0.25 -2.0 -5.0 0.25 -2.0 5.0 0.25 -2.05 -5.0 0.25 -2.05'/> |
34 | </IndexedFaceSet> |
35 | </Shape> |
36 | <Shape> |
37 | <Appearance DEF='Brick'> |
38 | <TextureTransform scale='15.0 15.0'/> |
39 | <Material/> |
40 |
<ImageTexture
url=' "brick.jpg![]() ![]() |
41 | </Appearance> |
42 | <IndexedFaceSet solid='false' coordIndex='0 1 2 3' texCoordIndex='0 1 2 3'> |
43 | <TextureCoordinate point='0.0 0.0 1.0 0.0 1.0 1.0 0.0 1.0'/> |
44 | <Coordinate point='-5.0 0.25 -2.05 5.0 0.25 -2.05 5.0 5.0 -2.05 -5.0 5.0 -2.05'/> |
45 | </IndexedFaceSet> |
46 | </Shape> |
47 | |
48 | <Shape> |
49 | <Appearance USE='Concrete'/> |
50 | <IndexedFaceSet coordIndex='0 1 5 4 -1 1 2 6 5 -1 2 3 7 6 -1 3 0 4 7 -1 0 8 9 1 -1 9 10 2 1 -1 10 11 3 2 -1 11 8 0 3 -1 15 14 6 7 -1 14 13 5 6 -1 13 12 4 5 -1 12 15 7 4 -1'> |
51 |
<!-- Coordinate
PlanterCoordinates is a DEF node that has 1 USE node: USE_1 --> <Coordinate DEF='PlanterCoordinates' point='-1.0 0.5 1.0 1.0 0.5 1.0 1.0 0.5 -1.0 -1.0 0.5 -1.0 -0.8 0.5 0.9 0.8 0.5 0.9 0.8 0.5 -0.9 -0.8 0.5 -0.9 -1.0 0.0 1.0 1.0 0.0 1.0 1.0 0.0 -1.0 -1.0 0.0 -1.0 -0.8 0.3 0.9 0.8 0.3 0.9 0.8 0.3 -0.9 -0.8 0.3 -0.9'/> |
52 | </IndexedFaceSet> |
53 | </Shape> |
54 | <Shape> |
55 | <Appearance> |
56 | <Material diffuseColor='0.0 0.5 0.0'/> |
57 | </Appearance> |
58 | <IndexedFaceSet coordIndex='12 13 14 15'> |
59 | <Coordinate USE='PlanterCoordinates'/> |
60 | </IndexedFaceSet> |
61 | </Shape> |
62 | </Transform> |
63 | <Transform translation='3.5 0.0 0.0'> |
64 | <Transform USE='Planter'/> |
65 | <Billboard> |
66 | <Shape> |
67 | <Appearance> |
68 |
<ImageTexture
url=' "tree1.png![]() ![]() |
69 | </Appearance> |
70 | |
71 | <TextureCoordinate point='0.0 0.0 1.0 0.0 1.0 1.0 0.0 1.0'/> |
72 | <Coordinate point='-1.51 0.05 0.0 1.51 0.05 0.0 1.51 3.05 0.0 -1.51 3.05 0.0'/> |
73 | </IndexedFaceSet> |
74 | </Shape> |
75 | </Billboard> |
76 | </Transform> |
77 | <Transform> |
78 | <Billboard DEF='Tree'> |
79 | <Shape> |
80 | <Appearance> |
81 |
<ImageTexture
url=' "tree1.jpg![]() ![]() |
82 | </Appearance> |
83 | <IndexedFaceSet USE='TreeFace'/> |
84 | </Shape> |
85 | </Billboard> |
86 | </Transform> |
87 | <Transform translation='-3.5 0.0 0.0'> |
88 | <Transform USE='Planter'/> |
89 | <Billboard> |
90 | <Shape> |
91 | <Appearance> |
92 | <Material/> |
93 | </Appearance> |
94 | <IndexedFaceSet USE='TreeFace'/> |
95 | </Shape> |
96 | </Billboard> |
97 | </Transform> |
98 | </Scene> |
99 | </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.
-->