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='IkeaBench.x3d'/> |
6 | <meta name='description' content='X3D example Model of an Ikea Bench'/> |
7 | <meta name='created' content='3 March 2004'/> |
8 | <meta name='modified' content='20 October 2019'/> |
9 | <meta name='creator' content='Vaughn Pangelinan'/> |
10 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/IkeaBench.x3d'/> |
11 | <meta name='generator' content='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/> |
12 | <meta name='license' content='../license.html'/> |
13 | </head> |
14 | <Scene> |
15 | <WorldInfo title='IkeaBench.x3d'/> |
16 | <Transform> |
17 | <Group DEF='IkeaBench'> |
18 | <Shape> |
19 | <Box size='.7 .02 .3'/> |
20 | <Appearance DEF='Yellow'> |
21 | <Material diffuseColor='.8 .8 0'/> |
22 | </Appearance> |
23 | </Shape> |
24 | <Transform translation='.33 -.16 .13'> |
25 |
<!-- Shape
BenchFrontLeg is a DEF node that has 1 USE node: USE_1 -->
<Shape DEF='BenchFrontLeg'> |
26 | <Box size='.034 .3 .034'/> |
27 | |
28 | <Material diffuseColor='0.75 0 0'/> |
29 | </Appearance> |
30 | </Shape> |
31 | </Transform> |
32 | <Transform translation='-.33 -.16 .13'> |
33 | <Shape USE='BenchFrontLeg'/> |
34 | </Transform> |
35 | <Transform translation='-.325 .04 -.16'> |
36 |
<!-- Shape
BenchRearLeg is a DEF node that has 1 USE node: USE_1 -->
<Shape DEF='BenchRearLeg'> |
37 | <Box size='.05 .7 .02'/> |
38 | <Appearance USE='Red'/> |
39 | </Shape> |
40 | </Transform> |
41 | <Transform translation='.325 .04 -.16'> |
42 | <Shape USE='BenchRearLeg'/> |
43 | </Transform> |
44 | <Transform translation='0 -.038 .13'> |
45 | <Shape DEF='FrontBenchBeam'> |
46 | <Box size='.626 .056 .02'/> |
47 | <Appearance USE='Red'/> |
48 | </Shape> |
49 | </Transform> |
50 | <Transform translation='0 -.185 0'> |
51 | <Shape DEF='LowCenterBenchBeam'> |
52 | <Box size='.64 .05 .02'/> |
53 | <Appearance USE='Red'/> |
54 | </Shape> |
55 | </Transform> |
56 | <Transform translation='.33 -.038 -.01'> |
57 |
<!-- Shape
HighShortBenchBeam is a DEF node that has 1 USE node: USE_1 -->
<Shape DEF='HighShortBenchBeam'> |
58 | <Box size='.02 .056 .28'/> |
59 | <Appearance USE='Red'/> |
60 | </Shape> |
61 | </Transform> |
62 | <Transform translation='-.33 -.038 -.01'> |
63 | <Shape USE='HighShortBenchBeam'/> |
64 | </Transform> |
65 | <Transform translation='.33 -.185 -.01'> |
66 |
<!-- Shape
LowShortBenchBeam is a DEF node that has 1 USE node: USE_1 -->
<Shape DEF='LowShortBenchBeam'> |
67 | <Box size='.02 .05 .28'/> |
68 | <Appearance USE='Red'/> |
69 | </Shape> |
70 | </Transform> |
71 | <Transform translation='-.33 -.185 -.01'> |
72 | <Shape USE='LowShortBenchBeam'/> |
73 | </Transform> |
74 | <Transform DEF='LowerBenchBackBeamTranslation' translation='0 .13 -.16'> |
75 |
<!-- Shape
BenchBackBeam is a DEF node that has 1 USE node: USE_1 -->
<Shape DEF='BenchBackBeam'> |
76 | <Box size='.6 .05 .016'/> |
77 | <Appearance USE='Red'/> |
78 | </Shape> |
79 | </Transform> |
80 | <Transform translation='0 .36 -.16'> |
81 | <Shape USE='BenchBackBeam'/> |
82 | </Transform> |
83 | <Transform DEF='BenchBackUprightBeamTranslation' translation='0 .245 -.16'> |
84 |
<!-- Shape
BenchBackUprightBeam is a DEF node that has 2 USE nodes: USE_1, USE_2 -->
<Shape DEF='BenchBackUprightBeam'> |
85 | <Box size='.05 .18 .014'/> |
86 | <Appearance USE='Red'/> |
87 | </Shape> |
88 | </Transform> |
89 | <Transform translation='.25 .245 -.16'> |
90 | <Shape USE='BenchBackUprightBeam'/> |
91 | </Transform> |
92 | <Transform translation='-.25 .245 -.16'> |
93 | <Shape USE='BenchBackUprightBeam'/> |
94 | </Transform> |
95 | <Transform scale='.2 .18 1' translation='.125 .245 -.16'> |
96 | <Group DEF='DoggyBackPiece'> |
97 | <Shape> |
98 | <Appearance> |
99 | <ImageTexture url=' "DoggyTransparent.png " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/DoggyTransparent.png " '/> |
100 | </Appearance> |
101 | <IndexedFaceSet solid='false' coordIndex='0 1 2 3'> |
102 | <Coordinate point='-0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 -0.5 0.5 0'/> |
103 | </IndexedFaceSet> |
104 | </Shape> |
105 | </Group> |
106 | </Transform> |
107 | <Transform scale='.2 .18 1' translation='-.125 .245 -.16'> |
108 | <Group DEF='KittyBackPiece'> |
109 | <Shape> |
110 | <Appearance> |
111 | <ImageTexture url=' "KittyTransparent.png " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/KittyTransparent.png " '/> |
112 | </Appearance> |
113 | <IndexedFaceSet solid='false' coordIndex='0 1 2 3'> |
114 | <Coordinate point='-0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 -0.5 0.5 0'/> |
115 | </IndexedFaceSet> |
116 | </Shape> |
117 | </Group> |
118 | </Transform> |
119 | <Transform rotation='1 0 0 .45'> |
120 | <Viewpoint DEF='BenchView' description='From Bench' fieldOfView='1.4' orientation='0 1 0 3.14' position='0 .5 -.9'/> |
121 | </Transform> |
122 | </Group> |
123 | </Transform> |
124 | </Scene> |
125 | </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. -->