| 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='2' name='TextureProjection'/> |
| 6 | <meta name='title' content=' TextureProjectorComponentExample.x3d '/> |
| 7 | <meta name='description' content='Texture projector component example'/> |
| 8 | <meta name='creator' content='Kwan Hee Yoo, Dick Puk and Don Brutzman'/> |
| 9 | <meta name='created' content='1 January 2019'/> |
| 10 | <meta name='modified' content='7 December 2024'/> |
| 11 | <meta name='reference' content='https://www.web3d.org/member-only/mantis/view.php?id=1255'/> |
| 12 | <meta name='specificationSection' content='X3D encodings, ISO/IEC 19775-1, Part 1: Architecture and base components, Clause 42 Texture projector component, subclause 42.4.1 TextureProjector'/> |
| 13 | <meta name='specificationUrl' content='https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/textureProjector.html#TextureProjector'/> |
| 14 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/TextureProjectorComponentExample.x3d '/> |
| 15 | <meta name='generator' content='X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit'/> |
| 16 | <meta name='license' content='../license.html'/> |
| 17 | </head> |
| 18 | <Scene> |
| 19 | <TextureProjector description='Project a red delicious texture' direction='-1 0 -1' fieldOfView='0.26' location='3 3 3' upVector='0 1 0' ambientIntensity='0' color='1 1 1' intensity='0.7854'> |
| 20 |
<!-- ImageTexture
RedDelicious is a DEF node that has 1 USE node: USE_1 --> <ImageTexture DEF='RedDelicious' url=' "Red_Delicious.jpg
" "https://www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/Red_Delicious.jpg
" "https://upload.wikimedia.org/wikipedia/commons/f/fb/Red_Delicious.jpg
" '/>
|
| 21 | </TextureProjector> |
| 22 | <Shape> |
| 23 | <Appearance> |
| 24 | <Material diffuseColor='0.5 0.5 0.5'/> |
| 25 | </Appearance> |
| 26 | <IndexedFaceSet solid='false' coordIndex='3 2 1 0 -1 4 5 2 3 -1 5 6 1 2 -1'> |
| 27 | <Coordinate point='1 0 1 -1 0 1 -1 0 -1 1 0 -1 1 1 -1 -1 1 -1 -1 1 1'/> |
| 28 | </IndexedFaceSet> |
| 29 | </Shape> |
| 30 | <!-- add additional node example for validation testing --> |
| 31 | <TextureProjectorParallel description='Project a red delicious texture, parallel orthographic projection' direction='-1 0 -1' fieldOfView='-1.5 -1.5 1.5 1.5' location='3 3 3' ambientIntensity='0' color='1 1 1' intensity='0.7854' upVector='0 1 0'> |
| 32 | <ImageTexture USE='RedDelicious'/> |
| 33 | </TextureProjectorParallel> |
| 34 | </Scene> |
| 35 | </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.
-->