Presentation is loading. Please wait.

Presentation is loading. Please wait.

Virtual Reality Modeling Language 97. What’s VRML? Virtual Reality Modeling Language 2D/3D graphics Audio:.wav,.mid Video: MPEG-1 Interactivity: time-

Similar presentations


Presentation on theme: "Virtual Reality Modeling Language 97. What’s VRML? Virtual Reality Modeling Language 2D/3D graphics Audio:.wav,.mid Video: MPEG-1 Interactivity: time-"— Presentation transcript:

1 Virtual Reality Modeling Language 97

2 What’s VRML? Virtual Reality Modeling Language 2D/3D graphics Audio:.wav,.mid Video: MPEG-1 Interactivity: time- and action-based Hyperlinks Java VRML97 International Standard (IS) ISO/IEC 14772-1:1997

3 Basic Concepts VRML File Structure Prototypes Scene Graph Event Routing A VRML browser

4 VRML File Structure A VRML file contains #VRML V2.0 utf8 # A sample VRML 97 file Prototypes Scene graph Event routing

5 Prototypes Provides a capability to extend VRML node types Can reuse defined nodes –e.g., defines different chairs, tables, etc.

6 Scene Graph A hierarchical structures for nodes Good for transformations Good for event generation and routing

7 Event Routing For interactivity User, time, or script triggered Routing path defined by authors –e.g., collide --> alarm --> crash -->...

8 A VRML Browser Parser prototypesbuilt-in nodes World routing pathscene graph Audio/Visual Presentation VRML file user input user

9 Node Reference (1) Group Nodes (2) Coordinates (3) Anchor (4) Sound (5) Sensor (6) Interpolator (7) Script

10 Group Nodes Transformations, events, etc. occur within a group Includes: Group: all children Transform: all children, new coordinate Switch: one child Group { children [ Shape { … }... ] }

11 Coordinates Transform { # X Y Z translation 2.0 0.0 0.0 children [ Shape Cylinder { radius 1.0 height 1.0 }, ] }

12 Anchor A group node Select any child in the group jumps to a new VRML file Anchor { url "stairway.wrl" } description "Floating Stairs" children [... ] }

13 Sound AudioClip: signal source Sound: place to play Sound { source AudioClip { url "bach.wav" description ”music" loop TRUE startTime 1 stopTime 0 }, location 0 0 0 minFront 10 minBack 10 maxFront 40 maxBack 40 spatialize TRUE },

14 Sensor Generated from depressed buttons, collision, timer, etc. Define a route path to trigger other nodes Each node has eventIn and eventOut interfaces AB out in

15 Interpolator PositionInterpolator { key [ 0.0, 0.5, 1.0 ] keyValue [ 0.0 0.0 0.0, 3.0 0.0 0.0, 0.0 0.0 0.0 ] } Given a fraction [0..1], interpolate a new value –e.g., given 0.3 --> key = 0.3 --> keyValue = (0.0+3.0)/0.5*0.3 = 1.8, i.e., (1.8, 0.0, 0.0)

16 Script { field … eventIn …set_zzz eventOut … xxx_changed url "circle.class" or... url "circle.js" or... url "javascript:..." } Script Extend VRML’s capabilities to more complex objects/behaviors

17 References Official site: www.vrml.org VRML repository: www.sdsc.edu/vrml Industry: –vrml.sgi.com –www.intervista.com –www.microsoft.com/vrml


Download ppt "Virtual Reality Modeling Language 97. What’s VRML? Virtual Reality Modeling Language 2D/3D graphics Audio:.wav,.mid Video: MPEG-1 Interactivity: time-"

Similar presentations


Ads by Google