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='3' name='EnvironmentalEffects'/> |
6 | <component level='3' name='Shape'/> |
7 | <meta name='title' content=' X3D4PhysicallyBasedRenderingTests.x3d '/> |
8 | <meta name='description' content='Test X3D version 4 nodes supporting Physically Based Rendering.'/> |
9 | <meta name='created' content='3 September 2025'/> |
10 | <meta name='modified' content='4 September 2025'/> |
11 | <meta name='creator' content='Don Brutzman'/> |
12 | <meta name=' TODO ' content=' This model is under development and will be used to support X3D-Edit testing. '/> |
13 | <meta name='specificationSection' content='X3D 4.1 Architecture, ISO/IEC 19775-1:202x draft, clause 12 Shape Component'/> |
14 | <meta name='specificationUrl' content=' https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4.1-CD/Part01/components/shape.html '/> |
15 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/TextureMapping/X3D4PhysicallyBasedRenderingTests.x3d '/> |
16 | <meta name='generator' content='X3D-Edit 4.0, https://savage.nps.edu/X3D-Edit'/> |
17 | <meta name='license' content=' https://www.web3d.org/x3d/content/examples/license.html '/> |
18 | </head> |
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='WelcomeView' description='Test model for nodes, containerField relationships' position='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='TestImage' containerField='backTexture' description='test texture' url=' "images/imageSmallSolidGreyBackground.png ![]() ![]() |
26 | <ImageTexture USE='TestImage' containerField='frontTexture'/> |
27 | <ImageTexture USE='TestImage' containerField='leftTexture'/> |
28 | <ImageTexture USE='TestImage' containerField='rightTexture'/> |
29 | <ImageTexture USE='TestImage' containerField='topTexture'/> |
30 | <ImageTexture USE='TestImage' containerField='bottomTexture'/> |
31 | </TextureBackground> |
32 | <Transform translation='-3 0 0'> |
33 | <Shape> |
34 | <Text DEF='MaterialText' string='"Material"'> |
35 |
<!-- FontStyle
ConsistentFont is a DEF node that has 3 USE nodes: USE_1, USE_2, USE_3 --> <FontStyle DEF='ConsistentFont' justify='"MIDDLE" "MIDDLE"' size='0.4'/> |
36 | </Text> |
37 | <Appearance> |
38 | <!-- default containerField='material' --> |
39 | <Material DEF='FrontMaterialDefaultContainerField'/> |
40 | <Material DEF='BackMaterial' containerField='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='EarthTexture' description='unclouded earth' url=' "images/earth-topo.png ![]() ![]() |
42 | </Appearance> |
43 | </Shape> |
44 | </Transform> |
45 | <Transform> |
46 | <Shape> |
47 | <Text DEF='PhysicalMaterialText' string='"Physical" "Material"'> |
48 | <FontStyle USE='ConsistentFont'/> |
49 | </Text> |
50 | <Appearance> |
51 | <!-- default containerField='material' --> |
52 | <PhysicalMaterial> |
53 | <ImageTexture USE='EarthTexture' containerField='baseTexture'/> |
54 | <ImageTexture USE='EarthTexture' containerField='emissiveTexture'/> |
55 | <ImageTexture USE='EarthTexture' containerField='metallicRoughnessTexture'/> |
56 | <ImageTexture USE='EarthTexture' containerField='normalTexture'/> |
57 | <ImageTexture USE='EarthTexture' containerField='occlusionTexture'/> |
58 | </PhysicalMaterial> |
59 | <PhysicalMaterial containerField='backMaterial'/> |
60 | </Appearance> |
61 | </Shape> |
62 | </Transform> |
63 | <Transform translation='3 0 0'> |
64 | <Shape> |
65 | <Text DEF='UnlitMaterialText' string='"Unlit" "Material"'> |
66 | <FontStyle USE='ConsistentFont'/> |
67 | </Text> |
68 | <Appearance> |
69 | <!-- default containerField='material' --> |
70 | <UnlitMaterial emissiveColor='1 1 1' normalScale='0' containerField='material'> |
71 | <ImageTexture USE='EarthTexture' containerField='emissiveTexture'/> |
72 | <ImageTexture USE='EarthTexture' containerField='normalTexture'/> |
73 | </UnlitMaterial> |
74 | <UnlitMaterial containerField='backMaterial' emissiveColor='1 1 1' normalScale='0'/> |
75 | </Appearance> |
76 | </Shape> |
77 | </Transform> |
78 | <Transform translation='0 -2 0'> |
79 | <Shape> |
80 | <Text DEF='TwoSidedMaterialText' string='"TwoSidedMaterial" "(deprecated)"'> |
81 | <FontStyle USE='ConsistentFont'/> |
82 | </Text> |
83 | <Appearance> |
84 | <TwoSidedMaterial/> |
85 | </Appearance> |
86 | </Shape> |
87 | </Transform> |
88 | </Scene> |
89 | </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.
-->