Forum Kuliah UAD
Would you like to react to this message? Create an account in a few clicks or log in to continue.

sampel VRML

Go down

sampel VRML Empty sampel VRML

Post  Admin Tue Dec 24, 2013 3:08 pm

#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 }
}
]
}
Admin
Admin
Admin

Jumlah posting : 971
Join date : 20.09.12
Lokasi : Yogyakartun

http://blog.uad.ac.id/ttx

Kembali Ke Atas Go down

sampel VRML Empty sampel lain

Post  Admin Tue Dec 24, 2013 3:11 pm

#VRML V2.0 utf8
Shape {
geometry Text {
string [ "Text without fontStyle",
"in two lines" ]
}
}

Admin
Admin
Admin

Jumlah posting : 971
Join date : 20.09.12
Lokasi : Yogyakartun

http://blog.uad.ac.id/ttx

Kembali Ke Atas Go down

sampel VRML Empty sampel lagi

Post  Admin Tue Dec 24, 2013 3:13 pm

#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
}

}
}
]
}
Admin
Admin
Admin

Jumlah posting : 971
Join date : 20.09.12
Lokasi : Yogyakartun

http://blog.uad.ac.id/ttx

Kembali Ke Atas Go down

sampel VRML Empty more sample

Post  Admin Tue Dec 24, 2013 3:14 pm

#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
}
}
Admin
Admin
Admin

Jumlah posting : 971
Join date : 20.09.12
Lokasi : Yogyakartun

http://blog.uad.ac.id/ttx

Kembali Ke Atas Go down

sampel VRML Empty more 1

Post  Admin Tue Dec 24, 2013 3:17 pm

#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
}
}
Admin
Admin
Admin

Jumlah posting : 971
Join date : 20.09.12
Lokasi : Yogyakartun

http://blog.uad.ac.id/ttx

Kembali Ke Atas Go down

sampel VRML Empty more 2

Post  Admin Tue Dec 24, 2013 3:18 pm

#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
}
}
]
}
Admin
Admin
Admin

Jumlah posting : 971
Join date : 20.09.12
Lokasi : Yogyakartun

http://blog.uad.ac.id/ttx

Kembali Ke Atas Go down

sampel VRML Empty Re: sampel VRML

Post  Sponsored content


Sponsored content


Kembali Ke Atas Go down

Kembali Ke Atas

- Similar topics

 
Permissions in this forum:
Anda tidak dapat menjawab topik