Professional Documents
Culture Documents
Listing Membuat Bola Dan Jarum Jam Menggunakan Bahasa VRML
Listing Membuat Bola Dan Jarum Jam Menggunakan Bahasa VRML
LISTING
PointLight {
location 0.0 0.0 1.0 #the light is 1 units left on the X axis
color 110
children Shape {
appearance Appearance {
}}
},
#Animation clock, one per planet
cycleInterval 6
loop TRUE
},
keyValue [ 0 0 1 0,
0 0 1 -1.57,
0 0 1 -3.14,
0 0 1 -1.57,
0010]
PROTO KotakPanjang [
]
#Pendefinisian Objek
{
Shape {
appearance Appearance {
material Material {
#menggunakan interface sebagai nilai
# field diffuseColor
}
texture ImageTexture {
url [ "blactex.jpg" ]}
}
geometry Box {
size 4 1 1
}
}
}
Viewpoint {
# position 0 5 5
# orientation 1 0 0 0.1
}
}
geometry Box {
size 1 1 1
}
}
Transform {
translation 2.5 0 0
children [
KotakPanjang {}
]
}
]
}
PROTO KotakPanjang1 []
#Pendefinisian Objek
{
Shape {
appearance Appearance {
material Material {
#menggunakan interface sebagai nilai
# field diffuseColor
}
texture ImageTexture {
url [ "merahtex.jpg" ]}
}
geometry Box {
size 3 1 1
}
}
}
Viewpoint {
# position 0 5 5
# orientation 1 0 0 0.1
}
}
geometry Box {
size 1 1 1
}
}
Transform {
translation 2 0 0
children [
KotakPanjang1 {}
]
}
]
}
Transform {
translation -0.5 5 1
children [
Shape {
appearance Appearance {
material Material { diffuseColor 0 1 1 }
}
geometry Text {
string ["12"]
fontStyle FontStyle {
family "serief"
style "BOLD"
size 1.5
justify " ????? "
} } }]},
Transform {
translation 5 -0.5 1
children [
Shape {
appearance Appearance {
material Material { diffuseColor 0 1 1 }
}
geometry Text {
string ["3"]
fontStyle FontStyle {
family "serief"
style "BOLD"
size 1.5
justify " ????? "
} } }]},
Transform {
translation -6 -0.5 1
children [
Shape {
appearance Appearance {
material Material { diffuseColor 0 1 1 }
}
geometry Text {
string ["9"]
fontStyle FontStyle {
family "serief"
style "BOLD"
size 1.5
justify " ????? "
} } }]},
Transform {
translation 0 -6 1
children [
Shape {
appearance Appearance {
material Material { diffuseColor 0 1 1 }
}
geometry Text {
string ["6"]
fontStyle FontStyle {
family "serief"
style "BOLD"
size 1.5
justify " ????? "
} } }]},