VISUAL REALITY AND VRML [Chapter 2 - BUILDING PRIMITIVE SHAPES]
Upcoming SlideShare
Loading in...5
×
 

VISUAL REALITY AND VRML [Chapter 2 - BUILDING PRIMITIVE SHAPES]

on

  • 697 views

Visual Reality and VRML student..

Visual Reality and VRML student..

Statistics

Views

Total Views
697
Views on SlideShare
697
Embed Views
0

Actions

Likes
0
Downloads
10
Comments
0

0 Embeds 0

No embeds

Accessibility

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

VISUAL REALITY AND VRML [Chapter 2 - BUILDING PRIMITIVE SHAPES] VISUAL REALITY AND VRML [Chapter 2 - BUILDING PRIMITIVE SHAPES] Presentation Transcript

  • PREPARED BY : NURAINI MOHD GHANI 1
  • Shapes are the building blocks of a VRML worldPrimitive Shapes are standard building blocks:•Box•Cone•Cylinder•Sphere•Text PREPARED BY : NURAINI MOHD GHANI 2
  • Syntax: ShapeA Shape node builds a shapeappearance - color and texturegeometry - form, or structureshape { appearance . . . geometry . . .} PREPARED BY : NURAINI MOHD GHANI 3
  • Specifying appearanceShape appearance is described by appearance nodesFor now, well use nodes to create a shaded white appearance:Shape { appearance Appearance { material Material { } } geometry . . .} PREPARED BY : NURAINI MOHD GHANI 4
  • Specifying geometry: Shape geometry is built with geometry nodes: Box {...} Cone { . . . } Cylinder { . . . } Sphere { . . . } Text { . . . }• Geometry node fields control dimensions• Dimensions usually in meters, but can be anything PREPARED BY : NURAINI MOHD GHANI 5
  • Syntax: BoxA Box geometry node builds a boxsize - width, height, depthShape { appearance Appearance { material Material { } } geometry Box { size 2.0 2.0 2.0 }} PREPARED BY : NURAINI MOHD GHANI 6
  • Syntax: Cone• A Cone geometry node builds an upright cone• height and bottomRadius - cylinder size• bottom and side - parts on or offShape { appearance Appearance { material Material { } } geometry Cone { height 2.0 bottomRadius 1.0 bottom TRUE side TRUE }} PREPARED BY : NURAINI MOHD GHANI 7
  • Syntax: Cylinder• A Cylinder geometry node builds an upright cylinder• height and radius - cylinder size• bottom, top, and side - parts on or offShape { appearance Appearance { material Material { } } geometry Cylinder { height 2.0 radius 1.0 bottom TRUE top TRUE side TRUE }} PREPARED BY : NURAINI MOHD GHANI 8
  • Syntax: Sphere• A Sphere geometry node builds a sphere• radius - sphere radiusShape { appearance Appearance { material Material { } } geometry Sphere { radius 1.0 }} PREPARED BY : NURAINI MOHD GHANI 9
  • Syntax: Text• A Text geometry node builds text• string - text to build• fontStyle - font controlShape { appearance Appearance { material Material { } } geometry Text { string [ "Text","Shape" ] fontStyle FontStyle { style "BOLD" } }} PREPARED BY : NURAINI MOHD GHANI 10
  • #VRML V2.0 utf8# A cylinderShape { appearance Appearance { material Material { } } geometry Cylinder { height 2.0 radius 1.5 } } PREPARED BY : NURAINI MOHD GHANI 11
  • • Shapes are built centered in the world• A VRML file can contain multiple shapes• Shapes overlap when built at the same location PREPARED BY : NURAINI MOHD GHANI 12
  •  Shapes are built using a Shape node Shape geometry is built using geometry nodes, such as Box, Cone, Cylinder, Sphere, and Text ·Text fonts are controlled using a FontStyle node PREPARED BY : NURAINI MOHD GHANI 13