1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd">
|
3 | <X3D profile='Immersive' version='3.0' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.0.xsd'> |
4 | <head> |
5 | <meta name='title' content='CodedCompressedPrototypes.x3d'/> |
6 | <meta name='description' content='Prototypes for CodedIndexedFaceSet decoding and CompressedIndexedFaceSet decompression, with links to example scenes.'/> |
7 | <meta name='creator' content='Martin Isenburg'/> |
8 | <meta name='translator' content='X3D-Edit VRML importer'/> |
9 | <meta name='translator' content='Don Brutzman'/> |
10 | <meta name='created' content='26 September 2002'/> |
11 | <meta name='translated' content='28 April 2003'/> |
12 | <meta name='modified' content='20 October 2019'/> |
13 | <meta name='reference' content='http://www.cs.unc.edu/~isenburg/ac/models'/> |
14 | <meta name='reference' content='http://www.cs.unc.edu/~isenburg/research/asciicoder'/> |
15 | <meta name='reference' content='http://www.cs.unc.edu/~isenburg/research/asciicoder/coder'/> |
16 | <meta name='reference' content="Martin Isenburg, Jack Snoeyink Binary Compression Rates for ASCII Formats, accepted for Web3D'03, March 2003"/> |
17 | <meta name='reference' content='isenburg/is-bcraf-03.pdf'/> |
18 | <meta name='reference' content='http://www.cs.unc.edu/~isenburg/research/papers/is-bcraf-03.pdf'/> |
19 | <meta name='reference' content="Martin Isenburg, Jack Snoeyink, Coding with ASCII: compact, yet text-based 3D content, Proceedings of the 1st International Symposium on 3D Data Processing, Visualization and Transmission'02 (Invited Paper), pages 609 - 616, June 2002."/> |
20 | <meta name='reference' content='isenburg/is-cwa-02.pdf'/> |
21 | <meta name='reference' content='http://www.cs.unc.edu/~isenburg/papers/is-cwa-02.pdf'/> |
22 | <meta name='reference' content="Martin Isenburg, Jack Snoeyink Coding Polygon Meshes as Compressable ASCII, Proceedings of Web3D Symposium'02 (Best Paper), pages 1 - 10, February 2002"/> |
23 | <meta name='reference' content='isenburg/is-cpmca-02.pdf'/> |
24 | <meta name='reference' content='http://www.cs.unc.edu/~isenburg/papers/is-cpmca-02.pdf'/> |
25 | <meta name='subject' content='X3D VRML binary compression'/> |
26 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/Basic/ExperimentalBinaryCompression/CodedCompressedPrototypes.x3d'/> |
27 | <meta name='generator' content='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/> |
28 | <meta name='generator' content='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html'/> |
29 | <meta name='license' content='../license.html'/> |
30 | </head> |
31 | <Scene> |
32 | <!-- ==================== --> |
33 | <WorldInfo title='CodedCompressedPrototypes.x3d'/> |
34 | <ProtoDeclare name='CodedIndexedFaceSet' appinfo='An ASCII-coded IndexedFaceSet'> |
35 | <ProtoInterface> |
36 |
<field name='code' type='MFInt32' value='0' accessType='initializeOnly'
appinfo='ASCII-coded coordIndex and texCoordIndex values'/> |
37 |
<field name='pos' type='SFFloat' value='0.0' accessType='initializeOnly'
appinfo='dequantization multiplier for Coordinate values'/> |
38 |
<field name='tex' type='SFFloat' value='0.0' accessType='initializeOnly'
appinfo='dequantization multiplier for TextureCoordinate values'/> |
39 |
<field name='coord' type='SFNode' accessType='initializeOnly'
appinfo='Coordinate node'> |
40 | <!-- not initialized by default --> |
41 | </field> |
42 |
<field name='texCoord' type='SFNode' accessType='initializeOnly'
appinfo='TextureCoordinate node'> |
43 | <!-- not initialized by default --> |
44 | </field> |
45 | </ProtoInterface> |
46 | <ProtoBody> |
47 |
<!-- IndexedFaceSet
DecodedIFS is a DEF node that has 1 USE node: USE_1 -->
<IndexedFaceSet DEF='DecodedIFS'> |
48 | <IS> |
49 | <connect nodeField='coord' protoField='coord'/> |
50 | <connect nodeField='texCoord' protoField='texCoord'/> |
51 | </IS> |
52 | </IndexedFaceSet> |
53 | <!-- Warning: VRML97-style scripting, not X3D Scene Authoring Interface (SAI) --> |
54 | <Script DEF='DecoderScript' directOutput='true' url=' "isenburg/Vrml97Scripts/CodedIndexedFaceSet.class" "https://www.web3d.org/x3d/content/examples/Basic/ExperimentalBinaryCompression/isenburg/Vrml97Scripts/CodedIndexedFaceSet.class" '> |
55 | <field name='code' type='MFInt32' accessType='initializeOnly'/> |
56 | <field name='pos' type='SFFloat' accessType='initializeOnly'/> |
57 | <field name='tex' type='SFFloat' accessType='initializeOnly'/> |
58 | <field name='IFS' type='SFNode' accessType='initializeOnly'> |
59 | <IndexedFaceSet USE='DecodedIFS'/> |
60 | </field> |
61 | <IS> |
62 | <connect nodeField='code' protoField='code'/> |
63 | <connect nodeField='pos' protoField='pos'/> |
64 | <connect nodeField='tex' protoField='tex'/> |
65 | </IS> |
66 | </Script> |
67 | </ProtoBody> |
68 | </ProtoDeclare> |
69 | <!-- ==================== --> |
70 | <ProtoDeclare name='CompressedIndexedFaceSet' appinfo='An ASCII-compressed IndexedFaceSet'> |
71 | <ProtoInterface> |
72 |
<field name='code' type='SFString' accessType='initializeOnly'
appinfo='ASCII-compressed coordIndex and texCoordIndex values'/> |
73 |
<field name='box_tex' type='MFFloat' value='0 0 1 1' accessType='initializeOnly'
appinfo='bounding box of texture coordinates (always 4 values minU minV maxU maxV)'/> |
74 |
<field name='bits_tex' type='SFInt32' value='0' accessType='initializeOnly'
appinfo='number of quantization bits for texture coordinates'/> |
75 |
<field name='box' type='MFFloat' value='0 0 0 1 1 1' accessType='initializeOnly'
appinfo='bounding box of coordinates (always 6 values minX minY minZ maxX maxY maxZ)'/> |
76 |
<field name='bits' type='SFInt32' value='0' accessType='initializeOnly'
appinfo='number of quantization bits for coordinates'/> |
77 | </ProtoInterface> |
78 | <ProtoBody> |
79 |
<!-- IndexedFaceSet
DecompressedIFS is a DEF node that has 1 USE node: USE_1 --> <IndexedFaceSet DEF='DecompressedIFS'/> |
80 | <!-- Warning: VRML97-style scripting, not X3D Scene Authoring Interface (SAI) --> |
81 | <Script DEF='DecompressionScript' directOutput='true' url=' "isenburg/Vrml97Scripts/CompressedIndexedFaceSet.class" "https://www.web3d.org/x3d/content/examples/Basic/ExperimentalBinaryCompression/isenburg/Vrml97Scripts/CompressedIndexedFaceSet.class" '> |
82 | <field name='code' type='SFString' accessType='initializeOnly'/> |
83 | <field name='box_tex' type='MFFloat' accessType='initializeOnly'/> |
84 | <field name='bits_tex' type='SFInt32' accessType='initializeOnly'/> |
85 | <field name='box' type='MFFloat' accessType='initializeOnly'/> |
86 | <field name='bits' type='SFInt32' accessType='initializeOnly'/> |
87 | <field name='IFS' type='SFNode' accessType='initializeOnly'> |
88 | <IndexedFaceSet USE='DecompressedIFS'/> |
89 | </field> |
90 | <IS> |
91 | <connect nodeField='code' protoField='code'/> |
92 | <connect nodeField='box_tex' protoField='box_tex'/> |
93 | <connect nodeField='bits_tex' protoField='bits_tex'/> |
94 | <connect nodeField='box' protoField='box'/> |
95 | <connect nodeField='bits' protoField='bits'/> |
96 | </IS> |
97 | </Script> |
98 | </ProtoBody> |
99 | </ProtoDeclare> |
100 | <!-- ==================== --> |
101 | <Viewpoint description='Select an example scene' position='0 0 12'/> |
102 | <Background groundColor='0.05 0.1 0.3' skyColor='0.05 0.1 0.3'/> |
103 | <Transform translation='7 0 0'> |
104 | <Transform translation='0 3 0'> |
105 | <Anchor description='Click for IndexedFaceSet example' url=' "Fish.x3d" "https://www.web3d.org/x3d/content/examples/Basic/ExperimentalBinaryCompression/Fish.x3d" "Fish.wrl" "https://www.web3d.org/x3d/content/examples/Basic/ExperimentalBinaryCompression/Fish.wrl" '> |
106 | <Shape> |
107 | <Appearance> |
108 | <Material diffuseColor='0.6 0.6 0.2'/> |
109 | </Appearance> |
110 | <Text length='0' string='"Fish IndexedFaceSet 442 KB"'> |
111 | |
112 | </Text> |
113 | </Shape> |
114 | </Anchor> |
115 | </Transform> |
116 | <Transform> |
117 | <Anchor description='Click for CodedIndexedFaceSet example' url=' "FishCoded.x3d" "https://www.web3d.org/x3d/content/examples/Basic/ExperimentalBinaryCompression/FishCoded.x3d" "FishCoded.wrl" "https://www.web3d.org/x3d/content/examples/Basic/ExperimentalBinaryCompression/FishCoded.wrl" '> |
118 | <Shape> |
119 | <Appearance> |
120 | <Material diffuseColor='0.6 0.6 0.2'/> |
121 | </Appearance> |
122 | <Text length='0' string='"FishCoded 96 KB"'> |
123 | <FontStyle USE='TextFont'/> |
124 | </Text> |
125 | </Shape> |
126 | </Anchor> |
127 | </Transform> |
128 | <Transform translation='0 -3 0'> |
129 | <Anchor description='Click for CompressedIndexedFaceSet example' url=' "FishCompressed.x3d" "https://www.web3d.org/x3d/content/examples/Basic/ExperimentalBinaryCompression/FishCompressed.x3d" "FishCompressed.wrl" "https://www.web3d.org/x3d/content/examples/Basic/ExperimentalBinaryCompression/FishCompressed.wrl" '> |
130 | <Shape> |
131 | <Appearance> |
132 | <Material diffuseColor='0.6 0.6 0.2'/> |
133 | </Appearance> |
134 | <Text length='0' string='"FishCompressed 22 KB"'> |
135 | <FontStyle USE='TextFont'/> |
136 | </Text> |
137 | </Shape> |
138 | </Anchor> |
139 | </Transform> |
140 | </Transform> |
141 | </Scene> |
142 | </X3D> |
Event Graph ROUTE Table with 0 ROUTE connections total, showing X3D event-model relationships for this scene.
Each row shows an event cascade that may occur during a single timestamp interval between frame renderings, as part of the X3D execution model.
Anchor |
description='Click for IndexedFaceSet example' User-interaction hint for this node. |
Anchor |
description='Click for CodedIndexedFaceSet example' User-interaction hint for this node. |
Anchor |
description='Click for CompressedIndexedFaceSet example' User-interaction hint for this node. |
<!--
Color 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)
<ProtoDeclare
name='ProtoName'>
<field
name='fieldName'/> </ProtoDeclare>
-->
<!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->