#VRML V2.0 utf8
Group {
children [
WorldInfo {
title "VRML Primitives"
info [ "David R. Nadeau" ]
},
DEF Entry Viewpoint {
position 5.0 1.6 8.0
orientation 0.0 1.0 0.0 0.52
description "Entry View"
},
NavigationInfo {
headlight FALSE
}
#
# Light Sources
#
PointLight {
ambientIntensity 0.2
color 0.7 0.7 0.7
location 0.0 8.0 10.0
},
#
# Primitives on pedestals
#
# Box
Transform {
translation -3.0 0.0 0.0
children [
# Pedestal
DEF Pedestal Inline {
url "pedestal.wrl"
},
# Box Primitive
Transform {
translation 0.0 2.5 0.0
scale 0.375 0.375 0.375
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1.0 0.2 0.2
}
}
geometry Box {
}
}
]
}
]
},
# Cone
Transform {
translation -1.0 0.0 0.0
children [
# Pedestal
USE Pedestal,
# Cone Primitive
Transform {
translation 0.0 2.5 0.0
scale 0.375 0.375 0.375
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 0.0 1.0 0.0
}
}
geometry Cone {
}
}
]
}
]
},
# Cylinder
Transform {
translation 1.0 0.0 0.0
children [
# Pedestal
USE Pedestal,
# Cylinder Primitive
Transform {
translation 0.0 2.5 0.0
scale 0.375 0.375 0.375
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 0.0 0.8 1.0
}
}
geometry Cylinder {
}
}
]
}
]
},
# Sphere
Transform {
translation 3.0 0.0 0.0
children [
# Pedestal
USE Pedestal,
# Sphere Primitive
Transform {
translation 0.0 2.5 0.0
scale 0.375 0.375 0.375
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1.0 1.0 0.0
}
}
geometry Sphere {
}
}
]
}
]
},
#
# Floor
#
Shape {
appearance Appearance {
material Material {
ambientIntensity 0.1
diffuseColor 0.8 0.8 0.8
}
texture ImageTexture {
url "stone2.jpg"
}
textureTransform TextureTransform {
scale 20.0 20.0
}
}
geometry IndexedFaceSet {
coord Coordinate {
point [
-10.0 0.0 10.0,
10.0 0.0 10.0,
10.0 0.0 -10.0,
-10.0 0.0 -10.0,
]
}
coordIndex [ 0, 1, 2, 3, -1, ]
solid FALSE
}
},
#
# Background
#
Transform {
translation 0.0 7.0 0.0
children [
Inline {
url "bluewall.wrl"
},
]
},
]
}
|