Top Banner
24

Presentation

Feb 17, 2017

Download

Technology

Muhammad Azam
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Presentation
Page 2: Presentation

1. Introduction2. How To Use3. Applications4. Syntax5. Versions of VRML6. Classes 7. Benefits

Page 3: Presentation

VRML stands for Virtual Reality Modelling Language and is pronounced ‘vermil’.

It is a standard for delivering 3D picture on the net, just like HTML is a standard for web pages.

Page 4: Presentation

It has a way of describing geometry which creates objects and spaces in which you can move around, as well as light, texture and sound which can be approached and viewed from whatever angle.

The files are called ‘worlds’ and have ‘.wrl’ extension and .wrz (compression).

Page 5: Presentation

In order to see VRML worlds, we need to install a VRML browser (or player).

Internet Explorer comes with a default VRML browser, and almost all other internet browsers can install one.

Page 6: Presentation

Architecture Training Engineering and Design E-Commerce Entertainment Manufacturing

Page 7: Presentation

VRML is a scene description language. Though VRML is a computer language, it is not a programming language. VRML files are not compiled, but are simple ascii text files. If you have ever written HTML documents, then you know how convenient it is to be able to see the results of your work immediately on an HTML browser.

Page 8: Presentation

VRML file contains Nodes that describe the scene

A Node is defined with several Fields › Each line give the field,

the type of the field, the name and the default value.

Page 9: Presentation

In the beginning there was VRML 1.0.› It was the first attempt at an internet 3D language.

VRML 2.0 replaced VRML 1.0 and add many features (animation).

Version 2.0 was submitted to ISO for standardization, the outcome was VRML97 which is almost identical to VRML 2.0.

Page 10: Presentation

3D graphics defines 3D space with a system of three axes X, which is analogous to width,

Y, which is analogous to height and Z, which is analogous to depth.

Page 11: Presentation

VRML file structure

VRML files contain: The file header Comments - notes to yourself Nodes - nuggets of scene information Fields - node attributes you can change Values - attribute values

Page 12: Presentation

#VRML V2.0 utf8 #VRML: File contains VRML text V2.0 : Text conforms to version 2.0 syntax utf8 : Text uses UTF8 character set

Understanding UTF8utf8 is an international character set standard utf8 stands for: UCS (Universal Character Set) Transformation Format, 8-bit Encodes 24,000+ characters for many languages

Page 13: Presentation

• Node type names are case sensitive • Each word starts with an upper-case character • The rest of the word is lower-case

Some examples: 1. Appearance2. Cylinder3. Material4. Shape 5. FontStyle6. ImageTexture

Page 14: Presentation

1.Shapes› Geometry› Appearance

2.Transformations3.Lights4.Groups

Page 15: Presentation

Each Shape has a geometry field that contains a geometry node and an appearance field that contains an Appearance node.

Ex:-Shape {appearance <some

appearance>geometry <some

geometry> }

Page 16: Presentation

Basic types› Box› Sphere› Cylinder› Cone› Text

Box› defined by its size fieldBox {

size 2.0 2.0 2.0}

Sphere› defined by its radius

field

Sphere {radius 1.5

}

Page 17: Presentation

Cylinder› defined by its height and

radius fieldsCylinder {

height 2.0radius 1.0

}

Cone› defined by its height and

radius fieldsCone {

radius 1.3height 1.8

}

Text› defined by the

string and the font

geometry Text { string ["Hi!"] FontStyle { family "TYPEWRITER" style "ITALIC" } }

Page 18: Presentation

Defines the look of some piece of geometry› Material

combination of ambient colour, diffuse colour, emmisive colour, shinines, transparency, specular colour.

› Texture defines a picture to paste to the object

supports movies› TextureTransform

defines how the picture is applied to the object

Page 19: Presentation

Material› Shiny Material

ambientIntensity 0.3 diffuseColor 0.1 0.7 0.2 specularColor 0.6 0.8 0.6 shininess 0.6

Colour components defined in RGB (red, green, blue triplets)

Page 20: Presentation

Define the positions of objects in 3D space XY are the plane of the screen Z is towards the Viewer Transformation basically contains

› rotation› scale› translation

Rotations follow “right-hand” screw rule

X

Y

Z

Page 21: Presentation

Real animation must include some sort of programming.

VRML accepts two kinds of programs:› JAVA.› JavaScript.

The script node can receive and send events very easily.

Page 22: Presentation

1. Platform Independence - the viewer is still platform dependent, but the simulation will run on all types of platforms, since it is an ASCII language.

2. Extensibility - the first draft of the language runs in concurrence with HTML, not over it.

3. Low bandwidth requirements - it runs as fast as your machine will allow it.

Page 23: Presentation

9. Object-Oriented concepts - objects (nodes), fields, input/output interfaces (routes), abstraction and inheritence etc.

10.Other applied concepts - data structures (trees, stacks, etc), 3D math, linear algebra, etc.

11. Lots of resources - content components, examples, tutorials, and tools.

Page 24: Presentation

e.t.c.