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='Interchange' 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='Figure17_12bWoodTextures.x3d'/> |
6 | <meta name='creator' content='Figure 17.12b, The VRML 2.0 Sourcebook, Copyright [1997] By Andrea L. Ames, David R. Nadeau, and John L. Moreland'/> |
7 | <meta name='reference' content='http://www.wiley.com/legacy/compbooks/vrml2sbk/ch17/17fig12b.htm'/> |
8 | <meta name='translator' content='Don Brutzman'/> |
9 | <meta name='created' content='28 August 2000'/> |
10 | <meta name='modified' content='20 October 2019'/> |
11 | <meta name='description' content='Six different wood types created by coloring a grayscale wood texture.'/> |
12 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter17Textures/Figure17_12bWoodTextures.x3d'/> |
13 | <meta name='generator' content='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/> |
14 | <meta name='license' content='../../license.html'/> |
15 | </head> |
16 | <Scene> |
17 | <WorldInfo title='Figure17_12bWoodTextures.x3d'/> |
18 | <Viewpoint description='Wood greyscale texture with different colors' position='1.75 0 5'/> |
19 | <Group> |
20 | <Shape> |
21 | <Appearance> |
22 | <Material diffuseColor='1 0.35 0.23'/> |
23 |
<!-- ImageTexture
WOOD is a DEF node that has 5 USE nodes: USE_1, USE_2, USE_3, USE_4, USE_5 --> <ImageTexture DEF='WOOD' url=' "wood_g.jpg " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter17Textures/wood_g.jpg " '/> |
24 | </Appearance> |
25 | |
26 | <Coordinate point='0 1 0 0 0 0 1.1 0 0 1.1 1 0'/> |
27 | </IndexedFaceSet> |
28 | </Shape> |
29 | <Transform translation='1.25 0 0'> |
30 | <Shape> |
31 | <Appearance> |
32 | <Material diffuseColor='1 0.45 0.23'/> |
33 | <ImageTexture USE='WOOD'/> |
34 | </Appearance> |
35 | <IndexedFaceSet USE='SQUARE'/> |
36 | </Shape> |
37 | </Transform> |
38 | <Transform translation='2.5 0 0'> |
39 | <Shape> |
40 | <Appearance> |
41 | <Material diffuseColor='1 0.55 0.23'/> |
42 | <ImageTexture USE='WOOD'/> |
43 | </Appearance> |
44 | <IndexedFaceSet USE='SQUARE'/> |
45 | </Shape> |
46 | </Transform> |
47 | <Transform translation='0 -1.25 0'> |
48 | <Shape> |
49 | <Appearance> |
50 | <Material diffuseColor='1 0.65 0.53'/> |
51 | <ImageTexture USE='WOOD'/> |
52 | </Appearance> |
53 | <IndexedFaceSet USE='SQUARE'/> |
54 | </Shape> |
55 | </Transform> |
56 | <Transform translation='1.25 -1.25 0'> |
57 | <Shape> |
58 | <Appearance> |
59 | <Material diffuseColor='1 0.55 0.43'/> |
60 | <ImageTexture USE='WOOD'/> |
61 | </Appearance> |
62 | <IndexedFaceSet USE='SQUARE'/> |
63 | </Shape> |
64 | </Transform> |
65 | <Transform translation='2.5 -1.25 0'> |
66 | <Shape> |
67 | <Appearance> |
68 | <Material diffuseColor='1 0.55 0.53'/> |
69 | <ImageTexture USE='WOOD'/> |
70 | </Appearance> |
71 | <IndexedFaceSet USE='SQUARE'/> |
72 | </Shape> |
73 | </Transform> |
74 | </Group> |
75 | </Scene> |
76 | </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. -->