Virtual Reality Modeling Language 1.0


You have to download the Netscape Navigator 3.0 alpha for Windows' 95 to try out these program snippets. Type in the programs in any dos editor and give the file extension as .wrl . The display should be 256 color.

a1.wrl

#VRML V1.0 ascii
AsciiText { string  "This is a cool demo world!"}
a2.wrl
#VRML V1.0 ascii
Cube {}
a3.wrl
#VRML V1.0 ascii
Sphere {}
a4.wrl
#VRML V1.0 ascii
Cylinder {}
a5.wrl
#VRML V1.0 ascii
Cone{}
a6.wrl
#VRML V1.0 ascii
Texture2 {
filename "a1.gif"
}
Sphere {}
a7.wrl
#VRML V1.0 ascii
Material {
diffuseColor 1 0 1
} 
AsciiText {
string "Hello how are you."
}
a8.wrl
#VRML V1.0 ascii
Material {
ambientColor 0 1 0
} 
AsciiText {
string "Hello how are you."
}
a9.wrl
#VRML V1.0 ascii
Material {
ambientColor 0 1 0
}
Cube {}
a10.wrl
#VRML V1.0 ascii
AsciiText { string "Hello World"}
AsciiText { string "VRML Simulation"}
a11.wrl
#VRML V1.0 ascii
AsciiText { string "Hello World"}
Transform { rotation 1 1 0 1 }
AsciiText { string "VRML Simulation"}
a12.wrl
#VRML V1.0 ascii
AsciiText { string "Hello World"}
Transform { rotation -1 0 0 1 }
AsciiText { string "VRML Simulation"}
a13.wrl
#VRML V1.0 ascii
AsciiText { string "Hello World"}
Transform { rotation 0 0 1 1 }
AsciiText { string "VRML Simulation"}
a14.wrl
#VRML V1.0 ascii
AsciiText { string "Hello World"}
Transform { rotation 1 1 1 1 }
AsciiText { string "VRML Simulation"}
a15.wrl
#VRML V1.0 ascii
AsciiText { string "Hello World"}
Transform { rotation 1 1 1 6.25 }
AsciiText { string "VRML Simulation"}
a16.wrl
#VRML V1.0 ascii
AsciiText { string "Hello World"}
Transform { translation 0  20 0 }
AsciiText { string "VRML Simulation"}
a17.wrl
#VRML V1.0 ascii
AsciiText { string "Hello World"}
Transform { translation 0  0 30 }
AsciiText { string "VRML Simulation"}
a18.wrl
#VRML V1.0 ascii
AsciiText { string "Hello World"}
Transform { scaleFactor 5 1 1 }
AsciiText { string "VRML Simulation"}
a19.wrl
#VRML V1.0 ascii
WWWAnchor{
name "http://www.vijaymukhi.com"
description "a link to dots"
Cube{}
}
a20.wrl
#VRML V1.0 ascii
Texture2Transform { translation  0 0.5 }
Texture2 { filename "a1.gif" }
Cube { }
a21.wrl
#VRML V1.0 ascii
Texture2Transform { rotation -0.2 }
Texture2 { filename "a1.gif" }
Cube { }
a22.wrl
#VRML V1.0 ascii
Texture2Transform { scaleFactor .2 .3 }
Texture2 { filename "a1.gif" }
Cube { }
a23.wrl
#VRML V1.0 ascii
Texture2 { filename "a1.gif" }
Texture2Transform { 
scaleFactor  0.5 0.5 
center 0 0.5
}
Cube { }
a24.wrl
#VRML V1.0 ascii
Texture2Transform { 
scaleFactor  2 3 
#center 0.5 0.5
}
Texture2 { 
filename "a1.gif" 
}
Cube { }
a25.wrl
#VRML V1.0 ascii
    Coordinate3 {
	point	[ -1.0 -1.0 0.0, 1.0 -1.0 0.0, 1.0 1.0 0.0, -1.0 1.0 0.0 ]
    }
    Material {
        emissiveColor   [ 1 0 0, 1 1 0, 0 1 0, 0 0 1 ]
    }
    IndexedFaceSet {
        coordIndex      [ 0, 1, 2, 3, -1 ]
    }


The tutorial on Microsoft's Active VRML 1.0 and VRML 2.0 (Moving Worlds) speaks more on Virtual Reality Modeling Language . Please feel free and send us your comments and suggestions on the tutorial.


Vijay Mukhi's Computer Institute
B-13, Everest Building, Tardeo, Bombay 400 034, India.
http://www.vijaymukhi.com
e-mail: vmukhi@giasbm01.vsnl.net.in