sampel VRML
Halaman 1 dari 1
sampel VRML
#VRML V2.0 utf8
#the 4 primitive shapes
Transform {
translation -3.0 0.0 0.0 #the translation in X Y Z directions
children[
Shape{
appearance Appearance{
material Material { }
}
geometry Box{
#### X Y Z
size 1.0 1.5 2.0 #the X,Y,Z dimensions of the box in units
}
}
]
}
Transform {
translation -1.0 0.0 0.0 #the translation in X Y Z directions
children[
Shape{
appearance Appearance{
material Material { }
}
geometry Cone{
bottomRadius 1 #bottomradius in units
height 1 #height in units
side TRUE #TRUE or FALSE determines the existence of the sides
bottom TRUE #TRUE or FALSE determines the existence of the bottom-cap
}
}
]
}
Transform {
translation 1.0 0.0 0.0 #the translation in X Y Z directions
children[
Shape{
appearance Appearance{
material Material { }
}
geometry Cylinder {
bottom TRUE #TRUE or FALSE determines the existence of the bottom-cap
height 1.0 #height in units
radius 1.0 #radius in units
side TRUE #TRUE or FALSE determines the existence of the sides
top TRUE #TRUE or FALSE determines the existence of the top-cap }
}
}
]
}
Transform {
translation 3.0 0.0 0.0 #the translation in X Y Z directions
children[
Shape{
appearance Appearance{
material Material { }
}
geometry Sphere {
radius 1 #radius in units }
}
]
}
#the 4 primitive shapes
Transform {
translation -3.0 0.0 0.0 #the translation in X Y Z directions
children[
Shape{
appearance Appearance{
material Material { }
}
geometry Box{
#### X Y Z
size 1.0 1.5 2.0 #the X,Y,Z dimensions of the box in units
}
}
]
}
Transform {
translation -1.0 0.0 0.0 #the translation in X Y Z directions
children[
Shape{
appearance Appearance{
material Material { }
}
geometry Cone{
bottomRadius 1 #bottomradius in units
height 1 #height in units
side TRUE #TRUE or FALSE determines the existence of the sides
bottom TRUE #TRUE or FALSE determines the existence of the bottom-cap
}
}
]
}
Transform {
translation 1.0 0.0 0.0 #the translation in X Y Z directions
children[
Shape{
appearance Appearance{
material Material { }
}
geometry Cylinder {
bottom TRUE #TRUE or FALSE determines the existence of the bottom-cap
height 1.0 #height in units
radius 1.0 #radius in units
side TRUE #TRUE or FALSE determines the existence of the sides
top TRUE #TRUE or FALSE determines the existence of the top-cap }
}
}
]
}
Transform {
translation 3.0 0.0 0.0 #the translation in X Y Z directions
children[
Shape{
appearance Appearance{
material Material { }
}
geometry Sphere {
radius 1 #radius in units }
}
]
}
sampel lain
#VRML V2.0 utf8
Shape {
geometry Text {
string [ "Text without fontStyle",
"in two lines" ]
}
}
Shape {
geometry Text {
string [ "Text without fontStyle",
"in two lines" ]
}
}
sampel lagi
#VRML V2.0 utf8
#2 primitive shapes with text
Transform {
translation -2.0 0.5 0.0 #the translation in X Y Z directions
children[
Shape{
appearance Appearance{
material Material { }
}
geometry Cone{
bottomRadius 1 #bottomradius in units
height 1 #height in units
side TRUE #TRUE or FALSE determines the existence of the sides
bottom TRUE #TRUE or FALSE determines the existence of the bottom-cap
}
}
]
}
Transform {
translation 2.0 0.5 0.0 #the translation in X Y Z directions
children[
Shape{
appearance Appearance{
material Material { }
}
geometry Cylinder {
bottom TRUE #TRUE or FALSE determines the existence of the bottom-cap
height 1.0 #height in units
radius 1.0 #radius in units
side TRUE #TRUE or FALSE determines the existence of the sides
top TRUE #TRUE or FALSE determines the existence of the top-cap }
}
}
]
}
Transform {
translation -2.0 -1.2 0.0 #the translation in X Y Z directions
children[
Shape{
appearance Appearance{
material Material { }
}
geometry Text {
string ["Cone"]
fontStyle FontStyle {
size 1.5 #the height of the text is 1.5 units
family ["SANS"] #the font is SANS = TIMES
justify "MIDDLE" #justification is middle
style "BOLD" #style is bold
}
}
}
]
}
Transform {
translation 2.0 -1.2 0.0 #the translation in X Y Z directions
children[
Shape{
appearance Appearance{
material Material { }
}
geometry Text {
string ["Cylinder"]
fontStyle FontStyle {
size 1.5 #the height of the text is 1.5 units
family ["SANS"] #the font is SANS = TIMES
justify "MIDDLE" #justification is middle
style "BOLD" #style is bold
}
}
}
]
}
#2 primitive shapes with text
Transform {
translation -2.0 0.5 0.0 #the translation in X Y Z directions
children[
Shape{
appearance Appearance{
material Material { }
}
geometry Cone{
bottomRadius 1 #bottomradius in units
height 1 #height in units
side TRUE #TRUE or FALSE determines the existence of the sides
bottom TRUE #TRUE or FALSE determines the existence of the bottom-cap
}
}
]
}
Transform {
translation 2.0 0.5 0.0 #the translation in X Y Z directions
children[
Shape{
appearance Appearance{
material Material { }
}
geometry Cylinder {
bottom TRUE #TRUE or FALSE determines the existence of the bottom-cap
height 1.0 #height in units
radius 1.0 #radius in units
side TRUE #TRUE or FALSE determines the existence of the sides
top TRUE #TRUE or FALSE determines the existence of the top-cap }
}
}
]
}
Transform {
translation -2.0 -1.2 0.0 #the translation in X Y Z directions
children[
Shape{
appearance Appearance{
material Material { }
}
geometry Text {
string ["Cone"]
fontStyle FontStyle {
size 1.5 #the height of the text is 1.5 units
family ["SANS"] #the font is SANS = TIMES
justify "MIDDLE" #justification is middle
style "BOLD" #style is bold
}
}
}
]
}
Transform {
translation 2.0 -1.2 0.0 #the translation in X Y Z directions
children[
Shape{
appearance Appearance{
material Material { }
}
geometry Text {
string ["Cylinder"]
fontStyle FontStyle {
size 1.5 #the height of the text is 1.5 units
family ["SANS"] #the font is SANS = TIMES
justify "MIDDLE" #justification is middle
style "BOLD" #style is bold
}
}
}
]
}
more sample
#VRML V2.0 utf8
# A Cylinder
Viewpoint {
#this is the "front" view,
position 0 0 10 #the camera positioned to X=0, Y=0 and Z=10
orientation 0 0 1 0 #"default" orientation
description "front" #the name of the view,
#the browser will present the views by their names
}
Viewpoint {
position 0 0 -10 #the camera positioned to X=0, Y=0 and Z=-10
orientation 0 1 0 3.14 #the camera is rotated around the Y axis 180 degrees
#so the orientation is from negative Z to positive Z
description "back"
}
Viewpoint {
position 10 0 0 #the camera positioned to X=10, Y=0, Z=0
orientation 0 1 0 1.57 #the camera is rotated around the Y axis 90 degrees
#the orientation is from positive X to negative X
description "right"
}
Viewpoint {
position -10 0 0 #the camera positioned to X=-10, Y=0, Z=0
orientation 0 1 0 -1.57 #the camera is rotated around the Y axis -90 degrees
#the orientation is from negative X to positive X
description "left"
}
Viewpoint {
position 0 10 0 #the camera positioned to X=0, Y=10, Z=0
orientation 1 0 0 -1.57 #the camera is rotated around the X axis -90 degrees
#the orientation is from positive Y to negative Y
description "top"
}
Viewpoint {
position 0 -10 0 #the camera positioned to X=0, Y=-10, Z=0
orientation 1 0 0 1.57 #the camera is rotated around the X axis 90 degrees
#the orientation is from negative Y to positive Y
description "bottom"
}
Inline { #the coordinate axes are "inlined"
url "coords.wrl" #from a separate file called "coords.wrl"
} #see the description of the inline node later
Shape {
appearance Appearance {
material Material { }
}
geometry Cylinder {
height 2.0
radius 1.5
}
}
# A Cylinder
Viewpoint {
#this is the "front" view,
position 0 0 10 #the camera positioned to X=0, Y=0 and Z=10
orientation 0 0 1 0 #"default" orientation
description "front" #the name of the view,
#the browser will present the views by their names
}
Viewpoint {
position 0 0 -10 #the camera positioned to X=0, Y=0 and Z=-10
orientation 0 1 0 3.14 #the camera is rotated around the Y axis 180 degrees
#so the orientation is from negative Z to positive Z
description "back"
}
Viewpoint {
position 10 0 0 #the camera positioned to X=10, Y=0, Z=0
orientation 0 1 0 1.57 #the camera is rotated around the Y axis 90 degrees
#the orientation is from positive X to negative X
description "right"
}
Viewpoint {
position -10 0 0 #the camera positioned to X=-10, Y=0, Z=0
orientation 0 1 0 -1.57 #the camera is rotated around the Y axis -90 degrees
#the orientation is from negative X to positive X
description "left"
}
Viewpoint {
position 0 10 0 #the camera positioned to X=0, Y=10, Z=0
orientation 1 0 0 -1.57 #the camera is rotated around the X axis -90 degrees
#the orientation is from positive Y to negative Y
description "top"
}
Viewpoint {
position 0 -10 0 #the camera positioned to X=0, Y=-10, Z=0
orientation 1 0 0 1.57 #the camera is rotated around the X axis 90 degrees
#the orientation is from negative Y to positive Y
description "bottom"
}
Inline { #the coordinate axes are "inlined"
url "coords.wrl" #from a separate file called "coords.wrl"
} #see the description of the inline node later
Shape {
appearance Appearance {
material Material { }
}
geometry Cylinder {
height 2.0
radius 1.5
}
}
more 1
#VRML V2.0 utf8
#Example VRML 2.0 file for teaching basic concepts of
#color and 3D primitive shapes.
#Created by Theresa-Marie Rhyne
# A Cylinder
Shape {
appearance Appearance {
material Material {
diffuseColor 0.75 0.5 1.0
specularColor 0.7 0.7 0.8
shininess 0.1
}
}
geometry Cylinder {
height 0.2
radius 3.
}
}
# A Sphere
Shape {
appearance Appearance {
material Material {
diffuseColor 0.2 0.5 0.75
transparency 0.0
}
}
geometry Sphere {
radius 1.0
}
}
#Example VRML 2.0 file for teaching basic concepts of
#color and 3D primitive shapes.
#Created by Theresa-Marie Rhyne
# A Cylinder
Shape {
appearance Appearance {
material Material {
diffuseColor 0.75 0.5 1.0
specularColor 0.7 0.7 0.8
shininess 0.1
}
}
geometry Cylinder {
height 0.2
radius 3.
}
}
# A Sphere
Shape {
appearance Appearance {
material Material {
diffuseColor 0.2 0.5 0.75
transparency 0.0
}
}
geometry Sphere {
radius 1.0
}
}
more 2
#VRML V2.0 utf8
#-----------------------------------------------------------------------------
# yellowcone.wrl
#
# A really simple VRML world consisting of a yellow cone lit from above.
#-----------------------------------------------------------------------------
# A directional light source, shining down from above.
DirectionalLight {
direction 0 -1 0
}
# A yellow cone rotated about 57 degrees from vertical.
Transform {
rotation 0 0 -1 1
children [
Shape {
appearance Appearance {
material Material {diffuseColor 1 1 0}
}
geometry Cone {
bottomRadius 2
height 8.1
}
}
]
}
#-----------------------------------------------------------------------------
# yellowcone.wrl
#
# A really simple VRML world consisting of a yellow cone lit from above.
#-----------------------------------------------------------------------------
# A directional light source, shining down from above.
DirectionalLight {
direction 0 -1 0
}
# A yellow cone rotated about 57 degrees from vertical.
Transform {
rotation 0 0 -1 1
children [
Shape {
appearance Appearance {
material Material {diffuseColor 1 1 0}
}
geometry Cone {
bottomRadius 2
height 8.1
}
}
]
}
Similar topics
» Tugas perkuliahan
» Trid topik MPEG-4
» Thread utk hasil review sampel CAI
» Thread untuk review sampel Pustekkom
» Trid topik MPEG-4
» Thread utk hasil review sampel CAI
» Thread untuk review sampel Pustekkom
Halaman 1 dari 1
Permissions in this forum:
Anda tidak dapat menjawab topik
|
|
Thu Jul 24, 2014 6:05 am by Bamban
» Aktivitas ketiga (terakhir)
Thu Jul 24, 2014 12:03 am by Rian SI_08
» Aktivitas ketiga (terakhir)
Wed Jul 23, 2014 8:26 pm by luqman noviantoro
» Aktivitas ketiga (terakhir)
Wed Jul 23, 2014 12:36 am by Admin
» Aktivitas kedua
Tue Jul 22, 2014 12:35 am by Bamban
» Aktivitas kedua
Mon Jul 21, 2014 10:29 pm by Rian SI_08
» Aktivitas kedua
Mon Jul 21, 2014 2:26 pm by Admin
» Aktivitas kedua
Mon Jul 21, 2014 12:16 am by Admin
» Aktivitas pertama
Tue Jul 15, 2014 11:16 am by Admin