#X3D V3.3 utf8
# X3D-to-ClassicVRML XSL translation autogenerated by X3dToVrml97.xslt
# https://www.web3d.org/x3d/content/X3dToVrml97.xslt
# Generated using XSLT processor: Saxonica
PROFILE Immersive
# [X3D] version=3.3
# [X3D] noNamespaceSchemaLocation=https://www.web3d.org/specifications/x3d-3.3.xsd
# [head]
META "title" "TextureMapComparisonsRectangle.x3d"
META "description" "Compare ImageTexture mapping for a variety of geometry nodes. This is an excellent test scene for different X3D browsers."
META "creator" "Sungmin Kwon and Don Brutzman"
META "created" "15 December 2017"
META "modified" "20 October 2019"
META "reference" "TextureMapTesting.pdf"
META "Image" "TextureMapComparisonsRectangleX_ITE.png"
META "Image" "TextureMapComparisonsRectangleX3DOM.png"
META "Image" "TextureMapComparisonsRectangleBSContact.png"
META "Image" "TextureMapComparisonsRectangleFreeWrl.png"
META "Image" "TextureMapComparisonsRectangleH3DViewer.png"
META "Image" "TextureMapComparisonsRectangleInstantReality.png"
META "Image" "TextureMapComparisonsRectangleXj3D.png"
META "reference" "TextureMapComparisonsCylinder.x3d"
META "reference" "https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#Images"
META "specificationSection" "X3D Abstract Specification, 18.2.3 Texture coordinates"
META "specificationUrl" "https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-IS.proof/Part01/components/texturing.html#Texturecoordinates"
META "Image" "https://www.web3d.org/documents/specifications/19775-1/V3.3/Images/ImageTexture.gif"
META "identifier" "https://x3dgraphics.com/examples/X3dForAdvancedModeling/TextureMapping/TextureMapComparisonsRectangle.x3d"
META "generator" "X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit"
META "license" "../license.html"
# [Scene] ========== ========== ==========
NavigationInfo { type [ "EXAMINE" "ANY" ] } ### Default X3D NavigationInfo
WorldInfo {
title "TextureMapComparisonsRectangle.x3d"
}
DEF DefaultPosition Viewpoint {
description "Texture map examples overview"
position 0 0 16
}
# == === ==== 1st row
Transform {
translation -0.5 1 0
children [
# IFS : Indexed Face Set
Transform {
translation -9.6 0 0
children [
Shape {
appearance DEF TextureAppearance Appearance {
texture DEF SpecificationTexture ImageTexture {
url [ "ImageTextureSpecificationSquare.png" "https://x3dgraphics.com/examples/X3dForAdvancedModeling/TextureMapping/ImageTextureSpecificationSquare.png" ]
}
}
geometry IndexedFaceSet {
coordIndex [ 0 1 2 3 -1 ]
coord Coordinate {
point [ -0.5 0.5 0 -0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 ]
}
}
}
]
}
# ITS, TS : Triangle Set
Transform {
translation -8.4 0 0
children [
Shape {
appearance USE TextureAppearance
geometry IndexedTriangleSet {
ccw TRUE
colorPerVertex TRUE
index [ 0 1 2 0 2 3 ]
normalPerVertex TRUE
solid TRUE
coord Coordinate {
point [ -0.5 0.5 0 -0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 ]
}
}
}
]
}
Transform {
translation -7.2 0 0
children [
Shape {
appearance USE TextureAppearance
geometry TriangleSet {
ccw TRUE
colorPerVertex TRUE
normalPerVertex TRUE
solid TRUE
coord Coordinate {
point [ -0.5 0.5 0 -0.5 -0.5 0 0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 -0.5 0.5 0 ]
}
}
}
]
}
# ITSS, TSS : Triangle Strip Set
Transform {
translation -6.0 0 0
children [
Shape {
appearance USE TextureAppearance
geometry IndexedTriangleStripSet {
ccw TRUE
colorPerVertex TRUE
index [ 0 1 2 3 0 -1 ]
normalPerVertex TRUE
solid TRUE
coord Coordinate {
point [ -0.5 0.5 0 -0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 ]
}
}
}
]
}
Transform {
translation -4.8 0 0
children [
Shape {
appearance USE TextureAppearance
geometry TriangleStripSet {
ccw TRUE
colorPerVertex TRUE
normalPerVertex TRUE
solid TRUE
stripCount [ 5 ]
coord Coordinate {
point [ -0.5 0.5 0 -0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 -0.5 0.5 0 ]
}
}
}
]
}
# ITFS, TFS : Triangle Fan Set
Transform {
translation -3.6 0 0
children [
Shape {
appearance USE TextureAppearance
geometry IndexedTriangleFanSet {
ccw TRUE
colorPerVertex TRUE
index [ 0 1 2 3 -1 ]
normalPerVertex TRUE
solid TRUE
coord Coordinate {
point [ -0.5 0.5 0 -0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 ]
}
}
}
]
}
Transform {
translation -2.4 0 0
children [
Shape {
appearance USE TextureAppearance
geometry TriangleFanSet {
ccw TRUE
colorPerVertex TRUE
fanCount [ 4 ]
normalPerVertex TRUE
solid TRUE
coord Coordinate {
point [ -0.5 0.5 0 -0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 ]
}
}
}
]
}
# Box
Transform {
translation -1.2 0 -0.5
children [
Shape {
appearance USE TextureAppearance
geometry Box {
size 1 1 1
}
}
]
}
# IQS, QS : Quad Set
# R2D : Rectangle2D
Transform {
translation 2.4 0 0
children [
Shape {
appearance DEF TextureAppearance_2D Appearance {
texture USE SpecificationTexture
}
geometry Rectangle2D {
size 1.0 1.0
}
}
]
}
# TS2D : TriangleSet2D
Transform {
translation 3.6 0 0
children [
Shape {
appearance USE TextureAppearance_2D
geometry TriangleSet2D {
vertices [ -0.5 0.5 -0.5 -0.5 0.5 -0.5 0.5 -0.5 0.5 0.5 -0.5 0.5 ]
}
}
]
}
# EG : ElevationGrid
Transform {
translation 4.8 0 0
children [
Transform {
rotation 1 0 0 -1.5708
translation -0.5 -0.5 0.2
children [
Shape {
appearance USE TextureAppearance_2D
geometry ElevationGrid {
height [ 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 ]
solid FALSE
xDimension 6
xSpacing 0.2
zDimension 6
zSpacing 0.2
}
}
]
}
]
}
# == === ==== 2nd row
Transform {
translation 0 -1.2 0
children [
# IFS : Indexed Face Set
Transform {
translation -9.6 0 0
children [
Shape {
appearance DEF TextureRotate Appearance {
texture USE SpecificationTexture
textureTransform DEF TexTransRotation TextureTransform {
rotation 0.8
}
}
geometry IndexedFaceSet {
coordIndex [ 0 1 2 3 -1 ]
coord Coordinate {
point [ -0.5 0.5 0 -0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 ]
}
}
}
]
}
# ITS, TS : Triangle Set
Transform {
translation -8.4 0 0
children [
Shape {
appearance USE TextureRotate
geometry IndexedTriangleSet {
ccw TRUE
colorPerVertex TRUE
index [ 0 1 2 0 2 3 ]
normalPerVertex TRUE
solid TRUE
coord Coordinate {
point [ -0.5 0.5 0 -0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 ]
}
}
}
]
}
Transform {
translation -7.2 0 0
children [
Shape {
appearance USE TextureRotate
geometry TriangleSet {
ccw TRUE
colorPerVertex TRUE
normalPerVertex TRUE
solid TRUE
coord Coordinate {
point [ -0.5 0.5 0 -0.5 -0.5 0 0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 -0.5 0.5 0 ]
}
}
}
]
}
# ITSS, TSS : Triangle Strip Set
Transform {
translation -6.0 0 0
children [
Shape {
appearance USE TextureRotate
geometry IndexedTriangleStripSet {
ccw TRUE
colorPerVertex TRUE
index [ 0 1 2 3 0 -1 ]
normalPerVertex TRUE
solid TRUE
coord Coordinate {
point [ -0.5 0.5 0 -0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 ]
}
}
}
]
}
Transform {
translation -4.8 0 0
children [
Shape {
appearance USE TextureRotate
geometry TriangleStripSet {
ccw TRUE
colorPerVertex TRUE
normalPerVertex TRUE
solid TRUE
stripCount [ 5 ]
coord Coordinate {
point [ -0.5 0.5 0 -0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 -0.5 0.5 0 ]
}
}
}
]
}
# ITFS, TFS : Triangle Fan Set
Transform {
translation -3.6 0 0
children [
Shape {
appearance USE TextureRotate
geometry IndexedTriangleFanSet {
ccw TRUE
colorPerVertex TRUE
index [ 0 1 2 3 -1 ]
normalPerVertex TRUE
solid TRUE
coord Coordinate {
point [ -0.5 0.5 0 -0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 ]
}
}
}
]
}
Transform {
translation -2.4 0 0
children [
Shape {
appearance USE TextureRotate
geometry TriangleFanSet {
ccw TRUE
colorPerVertex TRUE
fanCount [ 4 ]
normalPerVertex TRUE
solid TRUE
coord Coordinate {
point [ -0.5 0.5 0 -0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 ]
}
}
}
]
}
# Box
Transform {
translation -1.2 0 -0.5
children [
Shape {
appearance USE TextureRotate
geometry Box {
size 1 1 1
}
}
]
}
# IQS, QS : Quad Set
Transform {
}
Transform {
translation 1.2 0 0
}
# R2D : Rectangle2D
Transform {
translation 2.4 0 0
children [
Shape {
appearance DEF TextureRotate_2D Appearance {
texture USE SpecificationTexture
textureTransform USE TexTransRotation
}
geometry Rectangle2D {
size 1 1
solid TRUE
}
}
]
}
# TS2D : TriangleSet2D
Transform {
translation 3.6 0 0
children [
Shape {
appearance USE TextureRotate_2D
geometry TriangleSet2D {
vertices [ -0.5 0.5 -0.5 -0.5 0.5 -0.5 0.5 -0.5 0.5 0.5 -0.5 0.5 ]
}
}
]
}
# EG : ElevationGrid
Transform {
translation 4.8 0 0
children [
Transform {
rotation 1 0 0 -1.5708
translation -0.5 -0.5 0.2
children [
Shape {
appearance USE TextureRotate_2D
geometry ElevationGrid {
height [ 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 ]
solid FALSE
xDimension 6
xSpacing 0.2
zDimension 6
zSpacing 0.2
}
}
]
}
]
}
]
}
# == === ==== 3rd row
Transform {
translation 0 -2.4 0
children [
# IFS : Indexed Face Set
Transform {
translation -9.6 0 0
children [
Shape {
appearance DEF TextureTrans Appearance {
texture USE SpecificationTexture
textureTransform DEF TexTransTranslation TextureTransform {
rotation 0.8
translation 0.2 -0.5
}
}
geometry IndexedFaceSet {
coordIndex [ 0 1 2 3 -1 ]
coord Coordinate {
point [ -0.5 0.5 0 -0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 ]
}
}
}
]
}
# ITS, TS : Triangle Set
Transform {
translation -8.4 0 0
children [
Shape {
appearance USE TextureTrans
geometry IndexedTriangleSet {
ccw TRUE
colorPerVertex TRUE
index [ 0 1 2 0 2 3 ]
normalPerVertex TRUE
solid TRUE
coord Coordinate {
point [ -0.5 0.5 0 -0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 ]
}
}
}
]
}
Transform {
translation -7.2 0 0
children [
Shape {
appearance USE TextureTrans
geometry TriangleSet {
ccw TRUE
colorPerVertex TRUE
normalPerVertex TRUE
solid TRUE
coord Coordinate {
point [ -0.5 0.5 0 -0.5 -0.5 0 0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 -0.5 0.5 0 ]
}
}
}
]
}
# ITSS, TSS : Triangle Strip Set
Transform {
translation -6.0 0 0
children [
Shape {
appearance USE TextureTrans
geometry IndexedTriangleStripSet {
ccw TRUE
colorPerVertex TRUE
index [ 0 1 2 3 0 -1 ]
normalPerVertex TRUE
solid TRUE
coord Coordinate {
point [ -0.5 0.5 0 -0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 ]
}
}
}
]
}
Transform {
translation -4.8 0 0
children [
Shape {
appearance USE TextureTrans
geometry TriangleStripSet {
ccw TRUE
colorPerVertex TRUE
normalPerVertex TRUE
solid TRUE
stripCount [ 5 ]
coord Coordinate {
point [ -0.5 0.5 0 -0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 -0.5 0.5 0 ]
}
}
}
]
}
# ITFS, TFS : Triangle Fan Set
Transform {
translation -3.6 0 0
children [
Shape {
appearance USE TextureTrans
geometry IndexedTriangleFanSet {
ccw TRUE
colorPerVertex TRUE
index [ 0 1 2 3 -1 ]
normalPerVertex TRUE
solid TRUE
coord Coordinate {
point [ -0.5 0.5 0 -0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 ]
}
}
}
]
}
Transform {
translation -2.4 0 0
children [
Shape {
appearance USE TextureTrans
geometry TriangleFanSet {
ccw TRUE
colorPerVertex TRUE
fanCount [ 4 ]
normalPerVertex TRUE
solid TRUE
coord Coordinate {
point [ -0.5 0.5 0 -0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 ]
}
}
}
]
}
# Box
Transform {
translation -1.2 0 -0.5
children [
Shape {
appearance USE TextureTrans
geometry Box {
size 1 1 1
}
}
]
}
# IQS, QS : Quad Set
Transform {
}
Transform {
translation 1.2 0 0
}
# R2D : Rectangle2D
Transform {
translation 2.4 0 0
children [
Shape {
appearance DEF TextureTrans_2D Appearance {
texture USE SpecificationTexture
textureTransform USE TexTransTranslation
}
geometry Rectangle2D {
size 1.0 1.0
}
}
]
}
# TS2D : TriangleSet2D
Transform {
translation 3.6 0 0
children [
Shape {
appearance USE TextureTrans_2D
geometry TriangleSet2D {
vertices [ -0.5 0.5 -0.5 -0.5 0.5 -0.5 0.5 -0.5 0.5 0.5 -0.5 0.5 ]
}
}
]
}
# EG : ElevationGrid
Transform {
translation 4.8 0 0
children [
Transform {
rotation 1 0 0 -1.5708
translation -0.5 -0.5 0.2
children [
Shape {
appearance USE TextureTrans_2D
geometry ElevationGrid {
height [ 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 ]
solid FALSE
xDimension 6
xSpacing 0.2
zDimension 6
zSpacing 0.2
}
}
]
}
]
}
]
}
# == === ==== 4th row
Transform {
translation 0 -3.6 0
children [
# IFS : Indexed Face Set
Transform {
translation -9.6 0 0
children [
Shape {
appearance DEF TextureScale Appearance {
texture USE SpecificationTexture
textureTransform DEF TexTransScale TextureTransform {
rotation 0.8
scale 2 2
translation 0.2 -0.5
}
}
geometry IndexedFaceSet {
coordIndex [ 0 1 2 3 -1 ]
coord Coordinate {
point [ -0.5 0.5 0 -0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 ]
}
}
}
]
}
# ITS, TS : Triangle Set
Transform {
translation -8.4 0 0
children [
Shape {
appearance USE TextureScale
geometry IndexedTriangleSet {
ccw TRUE
colorPerVertex TRUE
index [ 0 1 2 0 2 3 ]
normalPerVertex TRUE
solid TRUE
coord Coordinate {
point [ -0.5 0.5 0 -0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 ]
}
}
}
]
}
Transform {
translation -7.2 0 0
children [
Shape {
appearance USE TextureScale
geometry TriangleSet {
ccw TRUE
colorPerVertex TRUE
normalPerVertex TRUE
solid TRUE
coord Coordinate {
point [ -0.5 0.5 0 -0.5 -0.5 0 0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 -0.5 0.5 0 ]
}
}
}
]
}
# ITSS, TSS : Triangle Strip Set
Transform {
translation -6.0 0 0
children [
Shape {
appearance USE TextureScale
geometry IndexedTriangleStripSet {
ccw TRUE
colorPerVertex TRUE
index [ 0 1 2 3 0 -1 ]
normalPerVertex TRUE
solid TRUE
coord Coordinate {
point [ -0.5 0.5 0 -0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 ]
}
}
}
]
}
Transform {
translation -4.8 0 0
children [
Shape {
appearance USE TextureScale
geometry TriangleStripSet {
ccw TRUE
colorPerVertex TRUE
normalPerVertex TRUE
solid TRUE
stripCount [ 5 ]
coord Coordinate {
point [ -0.5 0.5 0 -0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 -0.5 0.5 0 ]
}
}
}
]
}
# ITFS, TFS : Triangle Fan Set
Transform {
translation -3.6 0 0
children [
Shape {
appearance USE TextureScale
geometry IndexedTriangleFanSet {
ccw TRUE
colorPerVertex TRUE
index [ 0 1 2 3 -1 ]
normalPerVertex TRUE
solid TRUE
coord Coordinate {
point [ -0.5 0.5 0 -0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 ]
}
}
}
]
}
Transform {
translation -2.4 0 0
children [
Shape {
appearance USE TextureScale
geometry TriangleFanSet {
ccw TRUE
colorPerVertex TRUE
fanCount [ 4 ]
normalPerVertex TRUE
solid TRUE
coord Coordinate {
point [ -0.5 0.5 0 -0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 ]
}
}
}
]
}
# Box
Transform {
translation -1.2 0 -0.5
children [
Shape {
appearance USE TextureScale
geometry Box {
size 1 1 1
}
}
]
}
# IQS, QS : Quad Set
Transform {
}
Transform {
translation 1.2 0 0
}
# R2D : Rectangle2D
Transform {
translation 2.4 0 0
children [
Shape {
appearance DEF TextureScale_2D Appearance {
texture USE SpecificationTexture
textureTransform USE TexTransScale
}
geometry Rectangle2D {
size 1.0 1.0
}
}
]
}
# TS2D : TriangleSet2D
Transform {
translation 3.6 0 0
children [
Shape {
appearance USE TextureScale_2D
geometry TriangleSet2D {
vertices [ -0.5 0.5 -0.5 -0.5 0.5 -0.5 0.5 -0.5 0.5 0.5 -0.5 0.5 ]
}
}
]
}
# EG : ElevationGrid
Transform {
translation 4.8 0 0
children [
Transform {
rotation 1 0 0 -1.5708
translation -0.5 -0.5 0.2
children [
Shape {
appearance USE TextureScale_2D
geometry ElevationGrid {
height [ 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 ]
solid FALSE
xDimension 6
xSpacing 0.2
zDimension 6
zSpacing 0.2
}
}
]
}
]
}
]
}
# == === ==== 5th row
Transform {
translation 0 -4.8 0
children [
# IFS : Indexed Face Set
Transform {
translation -9.6 0 0
children [
Shape {
appearance DEF AppearanceNoTexture Appearance {
material Material {
diffuseColor 0.6 1 1
}
}
geometry IndexedFaceSet {
coordIndex [ 0 1 2 3 -1 ]
coord Coordinate {
point [ -0.5 0.5 0 -0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 ]
}
}
}
]
}
# ITS, TS : Triangle Set
Transform {
translation -8.4 0 0
children [
Shape {
appearance USE AppearanceNoTexture
geometry IndexedTriangleSet {
ccw TRUE
colorPerVertex TRUE
index [ 0 1 2 0 2 3 ]
normalPerVertex TRUE
solid TRUE
coord Coordinate {
point [ -0.5 0.5 0 -0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 ]
}
}
}
]
}
Transform {
translation -7.2 0 0
children [
Shape {
appearance USE AppearanceNoTexture
geometry TriangleSet {
ccw TRUE
colorPerVertex TRUE
normalPerVertex TRUE
solid TRUE
coord Coordinate {
point [ -0.5 0.5 0 -0.5 -0.5 0 0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 -0.5 0.5 0 ]
}
}
}
]
}
# ITSS, TSS : Triangle Strip Set
Transform {
translation -6.0 0 0
children [
Shape {
appearance USE AppearanceNoTexture
geometry IndexedTriangleStripSet {
ccw TRUE
colorPerVertex TRUE
index [ 0 1 2 3 0 -1 ]
normalPerVertex TRUE
solid TRUE
coord Coordinate {
point [ -0.5 0.5 0 -0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 ]
}
}
}
]
}
Transform {
translation -4.8 0 0
children [
Shape {
appearance USE AppearanceNoTexture
geometry TriangleStripSet {
ccw TRUE
colorPerVertex TRUE
normalPerVertex TRUE
solid TRUE
stripCount [ 5 ]
coord Coordinate {
point [ -0.5 0.5 0 -0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 -0.5 0.5 0 ]
}
}
}
]
}
# ITFS, TFS : Triangle Fan Set
Transform {
translation -3.6 0 0
children [
Shape {
appearance USE AppearanceNoTexture
geometry IndexedTriangleFanSet {
ccw TRUE
colorPerVertex TRUE
index [ 0 1 2 3 -1 ]
normalPerVertex TRUE
solid TRUE
coord Coordinate {
point [ -0.5 0.5 0 -0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 ]
}
}
}
]
}
Transform {
translation -2.4 0 0
children [
Shape {
appearance USE AppearanceNoTexture
geometry TriangleFanSet {
ccw TRUE
colorPerVertex TRUE
fanCount [ 4 ]
normalPerVertex TRUE
solid TRUE
coord Coordinate {
point [ -0.5 0.5 0 -0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 ]
}
}
}
]
}
# Box
Transform {
translation -1.2 0 -0.5
children [
Shape {
appearance USE AppearanceNoTexture
geometry Box {
size 1 1 1
}
}
]
}
# IQS, QS : Quad Set
Transform {
}
Transform {
translation 1.2 0 0
}
# R2D : Rectangle2D
Transform {
translation 2.4 0 0
children [
Shape {
appearance USE AppearanceNoTexture
geometry Rectangle2D {
size 1.0 1.0
}
}
]
}
# TS2D : TriangleSet2D
Transform {
translation 3.6 0 0
children [
Shape {
appearance USE AppearanceNoTexture
geometry TriangleSet2D {
vertices [ -0.5 0.5 -0.5 -0.5 0.5 -0.5 0.5 -0.5 0.5 0.5 -0.5 0.5 ]
}
}
]
}
# EG : ElevationGrid
Transform {
translation 4.8 0 0
children [
Transform {
rotation 1 0 0 -1.5708
translation -0.5 -0.5 0.2
children [
Shape {
appearance USE AppearanceNoTexture
geometry ElevationGrid {
height [ 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 ]
solid FALSE
xDimension 6
xSpacing 0.2
zDimension 6
zSpacing 0.2
}
}
]
}
]
}
]
}
# == === ==== Text
# Title
Transform {
translation 0 3.5 0
children [
Shape {
geometry DEF Title Text {
string [ "Texture Map Comparisons for Rectangles!" ]
fontStyle FontStyle {
justify [ "MIDDLE" "FIRST" ]
}
}
appearance DEF DefaultAppearance Appearance {
material DEF DefaultMaterial Material {
}
}
}
]
}
# X axis : Geometry Index
Transform {
translation 0 1.2 0
children [
# IFS : Indexed Face Set
Transform {
translation -9.6 0 0
children [
Shape {
geometry Text {
string [ "IFS" ]
fontStyle DEF CenterFontStyle FontStyle {
justify [ "MIDDLE" "MIDDLE" ]
size 0.5
### style='BOLD'
}
}
}
]
}
# ITS, TS : Triangle Set
Transform {
translation -8.4 0 0
children [
Shape {
geometry Text {
string [ "ITS" ]
fontStyle USE CenterFontStyle
}
}
]
}
Transform {
translation -7.2 0 0
children [
Shape {
geometry Text {
string [ "TS" ]
fontStyle USE CenterFontStyle
}
}
]
}
# ITSS, TSS : Triangle Strip Set
Transform {
translation -6.0 0 0
children [
Shape {
geometry Text {
string [ "ITSS" ]
fontStyle USE CenterFontStyle
}
}
]
}
Transform {
translation -4.8 0 0
children [
Shape {
geometry Text {
string [ "TSS" ]
fontStyle USE CenterFontStyle
}
}
]
}
# ITFS, TFS : Triangle Fan Set
Transform {
translation -3.6 0 0
children [
Shape {
geometry Text {
string [ "ITFS" ]
fontStyle USE CenterFontStyle
}
}
]
}
Transform {
translation -2.4 0 0
children [
Shape {
geometry Text {
string [ "TFS" ]
fontStyle USE CenterFontStyle
}
}
]
}
# Box
Transform {
translation -1.2 0 0
children [
Shape {
geometry Text {
string [ "BOX" ]
fontStyle USE CenterFontStyle
}
}
]
}
# IQS, QS : Quad Set
Transform {
children [
Shape {
geometry Text {
string [ "IQS" ]
fontStyle USE CenterFontStyle
}
}
]
}
Transform {
translation 1.2 0 0
children [
Shape {
geometry Text {
string [ "QS" ]
fontStyle USE CenterFontStyle
}
}
]
}
# R2D : Rectangle2D
Transform {
translation 2.4 0 0
children [
Shape {
geometry Text {
string [ "R2D" ]
fontStyle USE CenterFontStyle
}
}
]
}
# TS2D : TriangleSet2D
Transform {
translation 3.6 0 0
children [
Shape {
geometry Text {
string [ "TS2D" ]
fontStyle USE CenterFontStyle
}
}
TouchSensor {
description "TriangleSet2D"
}
DEF TransparentTextSelection Shape {
geometry Box {
size 1.1 .4 .001
}
appearance Appearance {
material Material {
transparency 1
}
}
}
]
}
# EG : ElevationGrid
Transform {
translation 4.8 0 0
children [
Shape {
geometry Text {
string [ "EG" ]
fontStyle USE CenterFontStyle
}
}
TouchSensor {
description "ElevationGrid"
}
USE TransparentTextSelection
]
}
]
}
# Y axis : Texture Description
Transform {
translation 5.6 0.5 0
children [
Transform {
children [
Shape {
geometry Text {
string [ "Default Texture" ]
fontStyle DEF LeftFontStyle FontStyle {
justify [ "BEGIN" "BEGIN" ]
size 0.5
}
}
}
]
}
Transform {
translation 0 -1.2 0
children [
Shape {
geometry Text {
string [ "Rotate Texture" ]
fontStyle USE LeftFontStyle
}
}
]
}
Transform {
translation 0 -2.4 0
children [
Shape {
geometry Text {
string [ "Rotate, Translate Texture" ]
fontStyle USE LeftFontStyle
}
}
]
}
Transform {
translation 0 -3.6 0
children [
Shape {
geometry Text {
string [ "Rotate, Translate, Scale" ]
fontStyle USE LeftFontStyle
}
}
]
}
Transform {
translation 0 -4.8 0
children [
Shape {
geometry Text {
string [ "No Texture" ]
fontStyle USE LeftFontStyle
}
appearance USE AppearanceNoTexture
}
]
}
]
}
]
}