VRML2.pm


NAME

VRML::VRML2.pm - VRML methods with the VRML 2.0 standard


SYNOPSIS

use VRML::VRML2; $vrml = new VRML::VRML2; $vrml->browser('CosmoPlayer 1.0','Netscape'); $vrml->at('-15 0 20'); $vrml->box('5 3 1','yellow'); $vrml->back; $vrml->print; $vrml->save; OR with the same result use VRML::VRML2; VRML::VRML2->new ->browser('CosmoPlayer 1.0','Netscape') ->at('-15 0 20')->box('5 3 1','yellow')->back ->print->save;


DESCRIPTION

The methods of this module are easier to use than the VRML::*::Standard methods because the methods are on a higher level. For example you can use X11 color names and it's simple to apply textures to an object. All angles could be assigned in degrees.

If a method does the same like its VRML pedant then it has the same name but in lowercase (e.g. box). The open part of a group method ends with a _begin (e.g. anchor_begin). The closing part ends with an _end (e.g. anchor_end). For a detailed description how the generated node works, take a look at the VRML 2.0 specification on VAG.

Following methods are currently implemented. (Values in '...' must be strings!)

.


SEE ALSO

VRML

VRML::VRML2::Standard

VRML::Base

http://www.gfz-potsdam.de/~palm/vrmlperl/ for a description of VRML-modules and how to obtain it.


AUTHOR

Hartmut Palm <palm@gfz-potsdam.de>

Homepage http://www.gfz-potsdam.de/~palm/