| 1 |
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
|
| 3 | <X3D profile='Interchange' version='3.3' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.3.xsd'> |
| 4 | <head> |
| 5 | <meta name='title' content='Table5_18PixelTexture'/> |
| 6 | <meta name='description' content='PixelTexture example for Table 5.18'/> |
| 7 | <meta name='creator' content='Leonard Daly and Don Brutzman'/> |
| 8 | <meta name='created' content='18 December 2006'/> |
| 9 | <meta name='modified' content='20 October 2019'/> |
| 10 | <meta name='reference' content='https://X3dGraphics.com'/> |
| 11 | <meta name='reference' content=' https://www.web3d.org/x3d/content/examples/X3dResources.html '/> |
| 12 | <meta name='rights' content='Copyright 2006, Daly Realism and Don Brutzman'/> |
| 13 | <meta name='subject' content='X3D, PixelTexture'/> |
| 14 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter05AppearanceMaterialTextures/Table5_18PixelTexture'/> |
| 15 | <meta name='generator' content='X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit'/> |
| 16 | <meta name='license' content='../license.html'/> |
| 17 | </head> |
| 18 | <Scene> |
| 19 | <WorldInfo title='Table5_18PixelTexture'/> |
| 20 | <Background skyColor='0 0 1'/> |
| 21 | <Transform DEF='Checkerboard' translation='0 0 -10'> |
| 22 | <Shape> |
| 23 | <Appearance> |
| 24 | <TextureTransform scale='500 500'/> |
| 25 | <PixelTexture image='2 2 3 0xE6B5FD 0xFFDBB7 0xFFDBB7 0xE6B5FD'/> |
| 26 | </Appearance> |
| 27 | <Box size='1000 1000 .01'/> |
| 28 | </Shape> |
| 29 | </Transform> |
| 30 | <Viewpoint description='View All' position='0 0 20'/> |
| 31 | <Viewpoint description='Empty Image' position='0 5 5'/> |
| 32 | <Transform DEF='EmptyImage' rotation='1 1 0 1' translation='0 5 0'> |
| 33 | <Shape> |
| 34 | <Appearance> |
| 35 | <PixelTexture/> |
| 36 | </Appearance> |
| 37 |
<!-- Box
StandardBox is a DEF node that has 4 USE nodes: USE_1, USE_2, USE_3, USE_4 --> <Box DEF='StandardBox'/> |
| 38 | </Shape> |
| 39 | </Transform> |
| 40 | <Viewpoint description='Black and white PixelTexture' position='-5 0 5'/> |
| 41 | <Transform DEF='BW' rotation='1 1 0 1' translation='-5 0 0'> |
| 42 | <Shape> |
| 43 | <Appearance> |
| 44 | <PixelTexture image='1 2 1 0xFF 0x00'/> |
| 45 | </Appearance> |
| 46 | <Box USE='StandardBox'/> |
| 47 | </Shape> |
| 48 | </Transform> |
| 49 | <Viewpoint description='Black and white with Alpha PixelTexture' position='5 0 5'/> |
| 50 | <Transform DEF='AlphaBW' rotation='1 1 0 1' translation='5 0 0'> |
| 51 | <Shape> |
| 52 | <Appearance> |
| 53 | <PixelTexture image='2 1 2 0xCCFF 0x2277'/> |
| 54 | </Appearance> |
| 55 | <Box USE='StandardBox'/> |
| 56 | </Shape> |
| 57 | </Transform> |
| 58 | <Viewpoint description='RGB PixelTexture' position='-5 -5 5'/> |
| 59 | <Transform DEF='RGB' rotation='1 1 0 1' translation='-5 -5 0'> |
| 60 | <Shape> |
| 61 | <Appearance> |
| 62 | <PixelTexture image='2 4 3 0xFF0000 0x00FF00 0 0 0 0 0xFFFFFF 0xFFFF00'/> |
| 63 | </Appearance> |
| 64 | <Box USE='StandardBox'/> |
| 65 | </Shape> |
| 66 | </Transform> |
| 67 | <Viewpoint description='RGB with Alpha PixelTexture' position='5 -5 5'/> |
| 68 | <Transform DEF='AlphaRGB' rotation='1 1 0 1' translation='5 -5 0'> |
| 69 | <Shape> |
| 70 | <Appearance> |
| 71 | <PixelTexture image='3 2 4 0xFF0000FF 0x00FF00FF 0x0000FFFF 0xFF00007F 0x00FF007F 0x0000FF7F'/> |
| 72 | </Appearance> |
| 73 | <Box USE='StandardBox'/> |
| 74 | </Shape> |
| 75 | </Transform> |
| 76 | </Scene> |
| 77 | </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.
-->