| 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='2' name='Shape'/> |
| 6 | <meta name='title' content=' PhysicalMaterialNormalMap.x3d '/> |
| 7 | <meta name='reference' content='PhysicalMaterialNormalMap.blend'/> |
| 8 | <meta name='description' content='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='creator' content='Vincent Marchetti'/> |
| 10 | <meta name='created' content='13 December 2025'/> |
| 11 | <meta name='modified' content='20 December 2025'/> |
| 12 | <meta name='generator' content='Blender 4.2 https://www.blender.org'/> |
| 13 | <meta name='generator' content='castle-model-viewer, https://castle-engine.io/castle-model-viewer'/> |
| 14 | <meta name='generator' content='X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit'/> |
| 15 | <meta name='source' content='PhysicalMaterialNormalMap.glb'/> |
| 16 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/Conversions/PhysicalMaterialNormalMap.x3d '/> |
| 17 | <meta name='license' content=' https://www.web3d.org/x3d/content/examples/license.html '/> |
| 18 | </head> |
| 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_Primitive0' bboxSize='16 9 0'> |
| 24 | <Appearance DEF='dimpled_brass' alphaMode='OPAQUE'> |
| 25 | <PhysicalMaterial baseColor='0.7529 0.5332 0.1559' metallic='0.80179' normalTextureMapping='TEXCOORD_0' roughness='0.1491'> |
| 26 |
<ImageTexture DEF='normal_map_dimples' containerField='normalTexture'
url=' "normal_map_dimples.png
" "http://www.example.com/normal_map_dimples.png
" '>
|
| 27 | <TextureProperties generateMipMaps='true' magnificationFilter='AVG_PIXEL' minificationFilter='AVG_PIXEL_AVG_MIPMAP' containerField='textureProperties'/> |
| 28 | </ImageTexture> |
| 29 | </PhysicalMaterial> |
| 30 | </Appearance> |
| 31 | <IndexedTriangleSet index='0 1 3 0 3 2' solid='false' ccw='true' colorPerVertex='true' normalPerVertex='true' containerField='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_0' point='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> |
<!--
Color-coding 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.
-->