X3D Model Documentation: PhysicalMaterialNormalMap.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='Interchange' 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='2name='Shape'/>
  6            <meta name='titlecontent=' PhysicalMaterialNormalMap.x3d '/>
  7            <meta name='referencecontent='PhysicalMaterialNormalMap.blend'/>
  8            <meta name='descriptioncontent='Example of PhysicalMaterial node to give appearance of brass metal, converted from Blender source. This example material uses normal map defined by ImageTexture to show indentations. This file was generated from a Blender scene exported to glTF, then converted to X3D by Castle Model Viewer. Additional editing by X3D-Edit to achieve conformance with X3D V4'/>
  9            <meta name='creatorcontent='Vincent Marchetti'/>
 10            <meta name='createdcontent='13 December 2025'/>
 11            <meta name='modifiedcontent='20 December 2025'/>
 12            <meta name='generatorcontent='Blender 4.2 https://www.blender.org'/>
 13            <meta name='generatorcontent='castle-model-viewer, https://castle-engine.io/castle-model-viewer'/>
 14            <meta name='generatorcontent='X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit'/>
 15            <meta name='sourcecontent='PhysicalMaterialNormalMap.glb'/>
 16            <meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/Conversions/PhysicalMaterialNormalMap.x3d '/>
 17            <meta name='licensecontent=' https://www.web3d.org/x3d/content/examples/license.html '/>
 18       </head>
<!--

<!-- -->
<!-- to top DEF nodes index: CastleEncoded_Shape_IndexedFaceSet46001, CastleEncoded_Shape_IndexedFaceSet46001_2, CastleEncoded_Shape_IndexedFaceSet46001_Primitive0, dimpled_brass, normal_map_dimples
-->
 19       <Scene>
 20            <Transform DEF='CastleEncoded_Shape_IndexedFaceSet46001'>
 21                 <Group DEF='CastleEncoded_Shape_IndexedFaceSet46001_2'>
 22                      <Transform scale='0.4 0.4 0.4'>
 23                           <Shape DEF='CastleEncoded_Shape_IndexedFaceSet46001_Primitive0bboxSize='16 9 0'>
 24                                <Appearance DEF='dimpled_brassalphaMode='OPAQUE'>
 25                                     <PhysicalMaterial baseColor='0.7529 0.5332 0.1559metallic='0.80179normalTextureMapping='TEXCOORD_0roughness='0.1491'>
 26                                          <ImageTexture DEF='normal_map_dimplescontainerField='normalTexture'   url=' "normal_map_dimples.png " "http://www.example.com/normal_map_dimples.png " '>
 27                                               <TextureProperties generateMipMaps='truemagnificationFilter='AVG_PIXELminificationFilter='AVG_PIXEL_AVG_MIPMAPcontainerField='textureProperties'/>
 28                                          </ImageTexture>
 29                                     </PhysicalMaterial>
 30                                </Appearance>
 31                                <IndexedTriangleSet index='0 1 3 0 3 2solid='falseccw='truecolorPerVertex='truenormalPerVertex='truecontainerField='geometry'>
 32                                     <Coordinate point='-8 -4.5 0 8 -4.5 0 -8 4.5 0 8 4.5 0'/>
 33                                     <MultiTextureCoordinate containerField='texCoord'>
 34                                          <TextureCoordinate mapping='TEXCOORD_0point='4 1 0 1 4 -1.25 0 -1.25'/>
 35                                     </MultiTextureCoordinate>
 36                                </IndexedTriangleSet>
 37                           </Shape>
 38                      </Transform>
 39                 </Group>
 40            </Transform>
 41       </Scene>
 42  </X3D>
<!--

<!-- -->
<!-- to top DEF nodes index: CastleEncoded_Shape_IndexedFaceSet46001, CastleEncoded_Shape_IndexedFaceSet46001_2, CastleEncoded_Shape_IndexedFaceSet46001_Primitive0, dimpled_brass, normal_map_dimples
-->
X3D Tooltips element index: Appearance, component, Coordinate, Group, head, ImageTexture, IndexedTriangleSet, meta, MultiTextureCoordinate, PhysicalMaterial, Scene, Shape, TextureCoordinate, TextureProperties, Transform, X3D, plus documentation for accessType definitions, type definitions, XML data types, and field types

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