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='GeometryPrimitiveNodesImageTexture.x3d'/> |
6 | <meta name='description' content='Geometry Primitive Nodes: Shape, Box, Cone, Cylinder, Sphere, Text, FontStyle, with ImageTexture applied'/> |
7 | <meta name='creator' content='Don Brutzman'/> |
8 | <meta name='created' content='25 March 2005'/> |
9 | <meta name='modified' content='20 October 2019'/> |
10 | <meta name='rights' content='Copyright (c) Don Brutzman and Leonard Daly, 2005'/> |
11 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter05AppearanceMaterialTextures/GeometryPrimitiveNodesImageTexture.x3d'/> |
12 | <meta name='reference' content='https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter02GeometryPrimitives/GeometryPrimitiveNodes-White.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='GeometryPrimitiveNodesImageTexture.x3d'/> |
18 | <Background skyColor='1 1 1'/> |
19 | <Transform translation='-5 0 0'> |
20 | <Shape DEF='DefaultShape'> |
21 | <Box DEF='DefaultBox'/> |
22 | <Appearance DEF='DefaultAppearance'> |
23 | <Material diffuseColor='1 0.2 0.2'/> |
24 |
<!-- ImageTexture
earth-topo is a DEF node that has 3 USE nodes: USE_1, USE_2, USE_3 --> <ImageTexture DEF='earth-topo' url=' "../Chapter01TechnicalOverview/earth-topo.png " "../Chapter01TechnicalOverview/earth-topo.jpg " "../Chapter01TechnicalOverview/earth-topo-small.gif " "https://www.web3d.org/x3d/content/examples/Basic/earth-topo.png " "https://www.web3d.org/x3d/content/examples/Basic/earth-topo.jpg " "https://www.web3d.org/x3d/content/examples/Basic/earth-topo-small.gif " '/> |
25 | </Appearance> |
26 | </Shape> |
27 | </Transform> |
28 | <Transform translation='-2.5 0 0'> |
29 | <Shape> |
30 | <Cone DEF='DefaultCone'/> |
31 | <Appearance> |
32 | <Material diffuseColor='0.2 1 0.2'/> |
33 | <ImageTexture USE='earth-topo'/> |
34 | </Appearance> |
35 | </Shape> |
36 | </Transform> |
37 | <Transform> |
38 | <Shape> |
39 | <Cylinder DEF='DefaultCylinder'/> |
40 | <Appearance> |
41 | <Material diffuseColor='0.2 0.2 1'/> |
42 | <ImageTexture USE='earth-topo'/> |
43 | </Appearance> |
44 | </Shape> |
45 | </Transform> |
46 | <!-- let's uh, rotate the earth to see North America --> |
47 | <Transform rotation='0 1 0 -1.57' translation='2.5 0 0'> |
48 | <Shape> |
49 | <Sphere DEF='DefaultSphere'/> |
50 | <Appearance> |
51 | <Material diffuseColor='1 1 0.2'/> |
52 | <ImageTexture USE='earth-topo'/> |
53 | </Appearance> |
54 | </Shape> |
55 | </Transform> |
56 | <Transform translation='5 0 0'> |
57 | <Shape> |
58 | <Text DEF='DefaultText' length='0' string='"Learn" "X3D!"'> |
59 | <FontStyle DEF='DefaultFontStyle' justify='"MIDDLE" "MIDDLE"'/> |
60 | </Text> |
61 | <Appearance> |
62 | <Material DEF='DefaultMaterial' ambientIntensity='0.33' diffuseColor='0.237059 0.096273 0.215625' shininess='0.13' specularColor='0.311358 0.387879 0.387879'/> |
63 | </Appearance> |
64 | </Shape> |
65 | </Transform> |
66 | </Scene> |
67 | </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. -->