1 / 6

VRML Syntax and Grammar

VRML Syntax and Grammar. Learning Objectives. Understand the formal grammar definition for VRML found here: http://www.vrml.org/technicalinfo/specifications/vrml97/part1/grammar.html Understand how grammar rules work Understand how a VRML file is parsed and understood by a software program.

ramya
Download Presentation

VRML Syntax and Grammar

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. VRML Syntax and Grammar

  2. Learning Objectives • Understand the formal grammar definition for VRML found here: http://www.vrml.org/technicalinfo/specifications/vrml97/part1/grammar.html • Understand how grammar rules work • Understand how a VRML file is parsed and understood by a software program.

  3. Structure of a VRML File • Header • Scene graph • Prototypes • Event routing

  4. VRML Header • #VRML V2.0 <encoding type>[optional comment]<line terminator> • Encoding type is usually “utf8”, but other encoding schemes are possible.

  5. VRML Scene Graph • Describes the scene graphs • Defines the connections among events • Identifies positions in the scene graph for reference by events

  6. Prototypes • PROTO Cube [ ] { Box { } } • Declares a new type, Cube, that has one shape node inside, Box. • You can also declare user-defined variables within the prototype.

More Related