X3D Model Documentation: MultiTextureDesignPattern.x3d

  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='titlecontent='MultiTextureDesignPattern.x3d'/>
  6            <meta name='descriptioncontent='Design pattern for MultiTexture, MultiTextureCoordinate, MultiTextureTransform node correspondences'/>
  7            <meta name='creatorcontent='Don Brutzman'/>
  8            <meta name='createdcontent='5 March 2011'/>
  9            <meta name='modifiedcontent='29 October 2023'/>
 10            <meta name=' TODO content=' X3D schematron rules for quality assurance '/>
 11            <meta name='Imagecontent='MultiTextureDesignPatternSceneGraph.png'/>
 12            <meta name='subjectcontent='MultiTexture, MultiTextureCoordinate, MultiTextureTransform'/>
 13            <meta name='referencecontent='https://www.web3d.org/files/specifications/19775-1/V3.2/Part01/components/texturing.html#MultiTexture'/>
 14            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/TextureMapping/MultiTextureDesignPattern.x3d'/>
 15            <meta name='referencecontent='https://www.web3d.org/x3d/content/examples/X3dResources.html'/>
 16            <meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
 17            <meta name='licensecontent='../license.html'/>
 18       </head>
<!--

<!-- to top Index for DEF node: Index for Viewpoint node: Viewpoint_1
-->
 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.8color='0.9 1 0.2function='"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>
<!--

<!-- to top Index for DEF node: Index for Viewpoint node: Viewpoint_1
-->
X3D Tooltips element index: Appearance, Background, FontStyle, head, ImageTexture, IndexedFaceSet, Material, meta, MovieTexture, MultiTexture, MultiTextureCoordinate, MultiTextureTransform, PixelTexture, Scene, Shape, Text, TextureCoordinate, TextureTransform, Viewpoint, WorldInfo, X3D, accessType and type, XML data types, field types

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/TextureMapping/MultiTextureDesignPatternIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/TextureMapping/MultiTextureDesignPattern.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)
-->

to top <!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->