X3D Model Documentation: X3D4PhysicallyBasedRenderingTests.x3d

  1  <?xml version="1.0" encoding="UTF-8"?>
  2  <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 4.0//EN" "https://www.web3d.org/specifications/x3d-4.0.dtd">
  3  <X3D profile='Immersive' version='4.0 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-4.0.xsd'>
  4       <head>
  5            <component level='3name='EnvironmentalEffects'/>
  6            <component level='3name='Shape'/>
  7            <meta name='titlecontent=' X3D4PhysicallyBasedRenderingTests.x3d '/>
  8            <meta name='descriptioncontent='Test X3D version 4 nodes supporting Physically Based Rendering.'/>
  9            <meta name='createdcontent='3 September 2025'/>
 10            <meta name='modifiedcontent='4 September 2025'/>
 11            <meta name='creatorcontent='Don Brutzman'/>
 12            <meta name=' TODO content=' This model is under development and will be used to support X3D-Edit testing. '/>
 13            <meta name='specificationSectioncontent='X3D 4.1 Architecture, ISO/IEC 19775-1:202x draft, clause 12 Shape Component'/>
 14            <meta name='specificationUrlcontent=' https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4.1-CD/Part01/components/shape.html '/>
 15            <meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/TextureMapping/X3D4PhysicallyBasedRenderingTests.x3d '/>
 16            <meta name='generatorcontent='X3D-Edit 4.0, https://savage.nps.edu/X3D-Edit'/>
 17            <meta name='licensecontent=' https://www.web3d.org/x3d/content/examples/license.html '/>
 18       </head>
<!--

<!-- -->
<!-- to top DEF nodes index: BackMaterial, ConsistentFont, EarthTexture, FrontMaterialDefaultContainerField, MaterialText, PhysicalMaterialText, TestImage, TwoSidedMaterialText, UnlitMaterialText, WelcomeView

Index for Viewpoint node: WelcomeView
-->
 19       <Scene>
 20            <!-- Example scene to illustrate X3D nodes and fields (XML elements and attributes) -->
 21            <WorldInfo title='X3D4PhysicallyBasedRenderingTests.x3d'/>
 22            <NavigationInfo/>
 23            <Viewpoint DEF='WelcomeViewdescription='Test model for nodes, containerField relationshipsposition='0 0 8'/>
 24            <TextureBackground>
 25 
               <!-- ImageTexture TestImage is a DEF node that has 5 USE nodes: USE_1, USE_2, USE_3, USE_4, USE_5 -->
               <ImageTexture DEF='TestImagecontainerField='backTexturedescription='test texture'   url=' "images/imageSmallSolidGreyBackground.png " "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/TextureMapping/images/imageSmallSolidGreyBackground.png " '/>
 26                 <ImageTexture USE='TestImagecontainerField='frontTexture'/>
 27                 <ImageTexture USE='TestImagecontainerField='leftTexture'/>
 28                 <ImageTexture USE='TestImagecontainerField='rightTexture'/>
 29                 <ImageTexture USE='TestImagecontainerField='topTexture'/>
 30                 <ImageTexture USE='TestImagecontainerField='bottomTexture'/>
 31            </TextureBackground>
 32            <Transform translation='-3 0 0'>
 33                 <Shape>
 34                      <Text DEF='MaterialTextstring='"Material"'>
 35 
                         <!-- FontStyle ConsistentFont is a DEF node that has 3 USE nodes: USE_1, USE_2, USE_3 -->
                         <FontStyle DEF='ConsistentFontjustify='"MIDDLE" "MIDDLE"size='0.4'/>
 36                      </Text>
 37                      <Appearance>
 38                           <!-- default containerField='material' -->
 39                           <Material DEF='FrontMaterialDefaultContainerField'/>
 40                           <Material DEF='BackMaterialcontainerField='backMaterial'/>
 41 
                         <!-- ImageTexture EarthTexture is a DEF node that has 7 USE nodes: USE_1, USE_2, USE_3, USE_4, USE_5, USE_6, USE_7 -->
                         <ImageTexture DEF='EarthTexturedescription='unclouded earth'   url=' "images/earth-topo.png " "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/TextureMapping/images/earth-topo.png " '/>
 42                      </Appearance>
 43                 </Shape>
 44            </Transform>
 45            <Transform>
 46                 <Shape>
 47                      <Text DEF='PhysicalMaterialTextstring='"Physical" "Material"'>
 48                           <FontStyle USE='ConsistentFont'/>
 49                      </Text>
 50                      <Appearance>
 51                           <!-- default containerField='material' -->
 52                           <PhysicalMaterial>
 53                                <ImageTexture USE='EarthTexturecontainerField='baseTexture'/>
 54                                <ImageTexture USE='EarthTexturecontainerField='emissiveTexture'/>
 55                                <ImageTexture USE='EarthTexturecontainerField='metallicRoughnessTexture'/>
 56                                <ImageTexture USE='EarthTexturecontainerField='normalTexture'/>
 57                                <ImageTexture USE='EarthTexturecontainerField='occlusionTexture'/>
 58                           </PhysicalMaterial>
 59                           <PhysicalMaterial containerField='backMaterial'/>
 60                      </Appearance>
 61                 </Shape>
 62            </Transform>
 63            <Transform translation='3 0 0'>
 64                 <Shape>
 65                      <Text DEF='UnlitMaterialTextstring='"Unlit" "Material"'>
 66                           <FontStyle USE='ConsistentFont'/>
 67                      </Text>
 68                      <Appearance>
 69                           <!-- default containerField='material' -->
 70                           <UnlitMaterial emissiveColor='1 1 1normalScale='0containerField='material'>
 71                                <ImageTexture USE='EarthTexturecontainerField='emissiveTexture'/>
 72                                <ImageTexture USE='EarthTexturecontainerField='normalTexture'/>
 73                           </UnlitMaterial>
 74                           <UnlitMaterial containerField='backMaterialemissiveColor='1 1 1normalScale='0'/>
 75                      </Appearance>
 76                 </Shape>
 77            </Transform>
 78            <Transform translation='0 -2 0'>
 79                 <Shape>
 80                      <Text DEF='TwoSidedMaterialTextstring='"TwoSidedMaterial" "(deprecated)"'>
 81                           <FontStyle USE='ConsistentFont'/>
 82                      </Text>
 83                      <Appearance>
 84                           <TwoSidedMaterial/>
 85                      </Appearance>
 86                 </Shape>
 87            </Transform>
 88       </Scene>
 89  </X3D>
<!--

<!-- -->
<!-- to top DEF nodes index: BackMaterial, ConsistentFont, EarthTexture, FrontMaterialDefaultContainerField, MaterialText, PhysicalMaterialText, TestImage, TwoSidedMaterialText, UnlitMaterialText, WelcomeView

Index for Viewpoint node: WelcomeView
-->
X3D Tooltips element index: Appearance, component, FontStyle, head, ImageTexture, Material, meta, NavigationInfo, PhysicalMaterial, Scene, Shape, Text, TextureBackground, Transform, TwoSidedMaterial, UnlitMaterial, Viewpoint, WorldInfo, X3D, plus documentation for accessType definitions, type definitions, XML data types, and field types

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/TextureMapping/X3D4PhysicallyBasedRenderingTestsIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/TextureMapping/X3D4PhysicallyBasedRenderingTests.x3d -->

<!-- Color-coding legend: X3D terminology <X3dNode  DEF='idNamefield='value'/> matches XML terminology <XmlElement  DEF='idNameattribute='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. -->