VIRTUAL REALITY AND VIRTUAL IN ACADEMIC VIRTUAL REALITY AND VIRTUAL IN ACADEMIC.
VRML virtual reality modeling language. what is it? standardised (sort of) notation for virtual...
-
Upload
anissa-thornton -
Category
Documents
-
view
221 -
download
1
Transcript of VRML virtual reality modeling language. what is it? standardised (sort of) notation for virtual...
![Page 1: VRML virtual reality modeling language. what is it? standardised (sort of) notation for virtual reality over the web text file (use normal text editor)](https://reader036.fdocuments.net/reader036/viewer/2022062517/56649f265503460f94c3c97e/html5/thumbnails/1.jpg)
VRML
virtual reality modeling language
![Page 2: VRML virtual reality modeling language. what is it? standardised (sort of) notation for virtual reality over the web text file (use normal text editor)](https://reader036.fdocuments.net/reader036/viewer/2022062517/56649f265503460f94c3c97e/html5/thumbnails/2.jpg)
what is it?
• standardised (sort of) notation for virtual reality over the web
• text file (use normal text editor)
• bit like a programming language
• also special world building software
![Page 3: VRML virtual reality modeling language. what is it? standardised (sort of) notation for virtual reality over the web text file (use normal text editor)](https://reader036.fdocuments.net/reader036/viewer/2022062517/56649f265503460f94c3c97e/html5/thumbnails/3.jpg)
how do you use it?
• you need a VRML viewer– Netscape/IE plug-in– stand alone VRML viewer
• and a world– find one on the net– write your own!
![Page 4: VRML virtual reality modeling language. what is it? standardised (sort of) notation for virtual reality over the web text file (use normal text editor)](https://reader036.fdocuments.net/reader036/viewer/2022062517/56649f265503460f94c3c97e/html5/thumbnails/4.jpg)
interactivity over the web???
• 'world' is downloaded
• interaction is local– moving within the world
• links to the web?– can be linked to from web pages– active objects link back
![Page 5: VRML virtual reality modeling language. what is it? standardised (sort of) notation for virtual reality over the web text file (use normal text editor)](https://reader036.fdocuments.net/reader036/viewer/2022062517/56649f265503460f94c3c97e/html5/thumbnails/5.jpg)
versions
• VRML 1.0 first version 'static' worlds - only viewpoint changes
• VRML 2.0 animated objects in world tidying up etc.
N.B. VRML browsers highly inconsistent
![Page 6: VRML virtual reality modeling language. what is it? standardised (sort of) notation for virtual reality over the web text file (use normal text editor)](https://reader036.fdocuments.net/reader036/viewer/2022062517/56649f265503460f94c3c97e/html5/thumbnails/6.jpg)
VRML file format
• filename (URL) ends ".wrl”– c.f. .html, .gif, .jpg etc.
• VRML 1.0 first line: #vrml 1.0 ascii
• VRML 2.0 first line: #vrml 2.0 utf8
• can have binary versions too
![Page 7: VRML virtual reality modeling language. what is it? standardised (sort of) notation for virtual reality over the web text file (use normal text editor)](https://reader036.fdocuments.net/reader036/viewer/2022062517/56649f265503460f94c3c97e/html5/thumbnails/7.jpg)
contents of VRML file
• one or more nodes– general format
DEF object objecttype { fieldname value . . . }
– or simply: objecttype { fieldname value . . . }
![Page 8: VRML virtual reality modeling language. what is it? standardised (sort of) notation for virtual reality over the web text file (use normal text editor)](https://reader036.fdocuments.net/reader036/viewer/2022062517/56649f265503460f94c3c97e/html5/thumbnails/8.jpg)
types of nodes
• objects that appear in the world– e.g. sphere, cone, cube etc.
• nodes that alter subsequent objects– e.g. texture, color, transformations
• nodes that group other nodes– also limit the effect of transformations etc.
![Page 9: VRML virtual reality modeling language. what is it? standardised (sort of) notation for virtual reality over the web text file (use normal text editor)](https://reader036.fdocuments.net/reader036/viewer/2022062517/56649f265503460f94c3c97e/html5/thumbnails/9.jpg)
Examples
When you are looking at a virtual world in Netscape you can use:
View Menu - Page Source
and similar commands in other browsers.
![Page 10: VRML virtual reality modeling language. what is it? standardised (sort of) notation for virtual reality over the web text file (use normal text editor)](https://reader036.fdocuments.net/reader036/viewer/2022062517/56649f265503460f94c3c97e/html5/thumbnails/10.jpg)
sphere
#VRML V1.0 ascii
Sphere { radius 1}
![Page 11: VRML virtual reality modeling language. what is it? standardised (sort of) notation for virtual reality over the web text file (use normal text editor)](https://reader036.fdocuments.net/reader036/viewer/2022062517/56649f265503460f94c3c97e/html5/thumbnails/11.jpg)
add colour
#VRML V1.0 ascii
Separator { # groups things together Material { diffuseColor 1.0 0 0 # red green blue } Sphere { radius 1 }}
![Page 12: VRML virtual reality modeling language. what is it? standardised (sort of) notation for virtual reality over the web text file (use normal text editor)](https://reader036.fdocuments.net/reader036/viewer/2022062517/56649f265503460f94c3c97e/html5/thumbnails/12.jpg)
or texture map an image
#VRML V1.0 ascii
Separator { Texture2 { filename "big_alan.jpg" } Sphere { radius 1 }}
![Page 13: VRML virtual reality modeling language. what is it? standardised (sort of) notation for virtual reality over the web text file (use normal text editor)](https://reader036.fdocuments.net/reader036/viewer/2022062517/56649f265503460f94c3c97e/html5/thumbnails/13.jpg)
a cone
#VRML V1.0 ascii
Separator { Material { diffuseColor 0 0 1 # bright blue } Cone { height 3 }}
![Page 14: VRML virtual reality modeling language. what is it? standardised (sort of) notation for virtual reality over the web text file (use normal text editor)](https://reader036.fdocuments.net/reader036/viewer/2022062517/56649f265503460f94c3c97e/html5/thumbnails/14.jpg)
put them together ...#VRML V1.0 ascii
Separator { Separator { # for sphere Texture2 { filename "big_alan.jpg" } Sphere { radius 1 } } Separator { # for cone Material { diffuseColor 0 0 1 # bright blue } Cone { height 3 } }}
![Page 15: VRML virtual reality modeling language. what is it? standardised (sort of) notation for virtual reality over the web text file (use normal text editor)](https://reader036.fdocuments.net/reader036/viewer/2022062517/56649f265503460f94c3c97e/html5/thumbnails/15.jpg)
transform ...
… Sphere { radius 1 } ... Transform { translation 4 2 0 # 4 to the right and 2 up }…Cone { height 3 }…
![Page 16: VRML virtual reality modeling language. what is it? standardised (sort of) notation for virtual reality over the web text file (use normal text editor)](https://reader036.fdocuments.net/reader036/viewer/2022062517/56649f265503460f94c3c97e/html5/thumbnails/16.jpg)
putting bits together
simply several cuboidstexture mapped with wood grainand with a photo.
![Page 17: VRML virtual reality modeling language. what is it? standardised (sort of) notation for virtual reality over the web text file (use normal text editor)](https://reader036.fdocuments.net/reader036/viewer/2022062517/56649f265503460f94c3c97e/html5/thumbnails/17.jpg)
again and again
WWWAnchor { name "http://www.hiraeth.com/alan/" description "Alan's home page" WWWInline { name "alan.wrl” } }
• include other VRML files
• add hyperlinks