bangun ruang menggunakan VRML

membuat bentuk kerucut yang berwarna Biru muda
#VRML V2.0 utf8
Shape {
appearance Appearance {
material  Material {
diffuseColor 0 1 1   # biru muda
emissiveColor 0.3 0.3 0.3
}
}
geometry  Cone {}
}

Hasil yang ditampilkan:

 

 

 

 

 

CONTOH BERIKUTNYA :

Berikut contoh objek kotak dengan ukuran X=1 Y=1 Z=1  berwarna merah dan dirubah skala terhadap sumbu   z menjadi 10% lebih kecil
#VRML V2.0 utf8

Transform {
scale    1 0.1 0.1
children [
Shape {
appearance Appearance {
material Material { diffuseColor 1 0 0 }
}
geometry  Box {size 1 1 1 }
}
]
}

Hasil yang ditampilkan:

This entry was published on March 9, 2011 at 7:03 pm and is filed under Uncategorized. Bookmark the permalink. Follow any comments here with the RSS feed for this post.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: