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='MultiTextureDesignPattern.x3d'/> |
6 | <meta name='description' content='Design pattern for MultiTexture, MultiTextureCoordinate, MultiTextureTransform node correspondences'/> |
7 | <meta name='creator' content='Don Brutzman'/> |
8 | <meta name='created' content='5 March 2011'/> |
9 | <meta name='modified' content='29 October 2023'/> |
10 | <meta name=' TODO ' content=' X3D schematron rules for quality assurance '/> |
11 | <meta name='Image' content='MultiTextureDesignPatternSceneGraph.png'/> |
12 | <meta name='subject' content='MultiTexture, MultiTextureCoordinate, MultiTextureTransform'/> |
13 | <meta name='reference' content='https://www.web3d.org/files/specifications/19775-1/V3.2/Part01/components/texturing.html#MultiTexture'/> |
14 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/TextureMapping/MultiTextureDesignPattern.x3d'/> |
15 | <meta name='reference' content='https://www.web3d.org/x3d/content/examples/X3dResources.html'/> |
16 | <meta name='generator' content='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/> |
17 | <meta name='license' content='../license.html'/> |
18 | </head> |
19 | <Scene> |
20 | <!-- ================================ --> |
21 | <WorldInfo title='MultiTextureDesignPattern.x3d'/> |
22 | <Background skyColor='0.72549 1 0.721569'/> |
23 | <Viewpoint description='MultiTexture design pattern'/> |
24 | <Shape> |
25 | <Text string='"Source shows design pattern for" "MultiTexture, MultiTextureCoordinate," " and MultiTextureTransform nodes"'> |
26 | <FontStyle justify='"MIDDLE" "MIDDLE"' size='0.6'/> |
27 | </Text> |
28 | <Appearance> |
29 | <Material diffuseColor='0.2 0.4 0.8'/> |
30 | </Appearance> |
31 | </Shape> |
32 | <!-- ================================ --> |
33 | <Shape> |
34 | <!-- add a single geometry node here --> |
35 | <IndexedFaceSet> |
36 | <MultiTextureCoordinate containerField='texCoord'> |
37 | <!-- add multiple TextureCoordinate nodes here, match corresponding MultiTexture child texture nodes --> |
38 | <TextureCoordinate point='0 0 1 0 1 1 0 1'/> |
39 | <TextureCoordinate point='0 0 1 0 1 1 0 1'/> |
40 | <TextureCoordinate point='0 0 1 0 1 1 0 1'/> |
41 | </MultiTextureCoordinate> |
42 | </IndexedFaceSet> |
43 | <Appearance> |
44 | <Material/> |
45 | <MultiTexture alpha='0.8' color='0.9 1 0.2' function='"COMPLEMENT" "ALPHAREPLICATE"' mode='"MODULATE" "REPLACE" "BLENDDIFFUSEALPHA"' source='"DIFFUSE" "SPECULAR" "FACTOR"'> |
46 | <!-- add multiple texture nodes here --> |
47 | <ImageTexture/> |
48 | <MovieTexture/> |
49 | <PixelTexture/> |
50 | </MultiTexture> |
51 | <MultiTextureTransform containerField='textureTransform'> |
52 | <!-- add multiple TextureTransform nodes here, match corresponding MultiTexture child texture nodes --> |
53 | <TextureTransform/> |
54 | <TextureTransform/> |
55 | <TextureTransform/> |
56 | </MultiTextureTransform> |
57 | </Appearance> |
58 | </Shape> |
59 | </Scene> |
60 | </X3D> |
<!--
Color legend: X3D terminology
<X3dNode
field='value'/>
matches XML terminology
<XmlElement
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. -->