0% found this document useful (0 votes)
24 views9 pages

Lets ARVR Program

The Virtual Reality Modeling Language (VRML) is a file format used to describe 3D scenes, identified by the '.wrl' extension, and supports interaction and simulation of object behavior. It is designed for network use and can run on various computer systems, from desktops to high-end workstations. VRML files consist of Nodes that define the scene, with basic geometry types including Box, Sphere, Cylinder, Cone, and Text.

Uploaded by

Raj Gopal Mishra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views9 pages

Lets ARVR Program

The Virtual Reality Modeling Language (VRML) is a file format used to describe 3D scenes, identified by the '.wrl' extension, and supports interaction and simulation of object behavior. It is designed for network use and can run on various computer systems, from desktops to high-end workstations. VRML files consist of Nodes that define the scene, with basic geometry types including Box, Sphere, Cylinder, Cone, and Text.

Uploaded by

Raj Gopal Mishra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Virtual Reality Modeling Language

INTRODUCTION TO • A file format to describe 3D scenes


VRML – identified by “.wrl” extension

 Virtual Reality Modeling Language

• A file format to describe 3D scenes


– identified by “.wrl” extension
• Also a description of a run-time system for
animating worlds.

• Designed to be used in network situations.

• Supports interaction and simulation of behavior of objects.

• Designed to run on desktop PCs through to highend workstations

 VRML Basics

VRML file contains Nodes that describe the scene


A Node is defined with several Fields
Each line gives the field, the type of the field, the name and the default value.
INTRODUCTION TO VRML
 How to Start
• You need, let’s say 3 things to get started.
- A notepad document opens (start/execute/notepad)
- A VRML plugin installed for your browser:
www.parallelgraphics.com/products/cortona/

• Your browser open


Sample VRML File to create a sphere “example1.wrl
•#VRML V2.0 utf8
•Transform {
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 0.1 0.7 0.2
}
}

geometry Sphere {
radius 2
}
}
]
}
Class of Node
•1. Shapes

Geometry
Appearance
•2.Transformations
1. Lights
2. Groups
•3.Shapes
•Each Shape has a geometry field that contains geometry node and an appearance field that
contains an appearance node.
Shape {
appearance <some appearance>
geometry <some geometry>
}
Geometry Nodes
•Basic types
1. Box
2. Sphere
3. Cylinder
4. Cone
5. Text
Geometry Nodes…

•1.Box
defined by its size field
Box {
size 2.0 2.0 2.0
}
•2.Sphere
defined by its radius field
Sphere {
radius 1.5
}
Geometry Nodes…

1.Cylinder: defined by its height and radius fields


Cylinder {
height 2.0
radius 1.0
}
2.Cone: defined by its height and radius fields
Cone {
radius 1.3
height 1.8
}
3.Text:• defined by the string and the font
geometry Text {
string ["Hi!"]
fontStyle FontStyle {
family "TYPEWRITER"
style "ITALIC"
Program1 – Write a program in VRML to draw a box with desired size and
colour.
#VRML V2.0 utf8
Transform {
children [
Shape {
appearance Appearance
{
material Material
{
diffuseColor 0.0 0.5 0.5
}
}
geometry Box
{ size 2 2 2
}
}
]
}

You might also like