VRML1.pm
VRML::VRML1.pm - VRML methods with the VRML 1.0 standard
use VRML::VRML1;
Following methods are currently implemented. (Values in '...' must be strings!)
- begin()
. . .
- end('comment')
- at('type=value', 'type=value', ...)
For a description of all parameters see transform_begin
- back
see transform_end
- anchor_begin('Url','description','target=parameter')
- anchor_end('comment')
- collision_begin
- collision_end('comment')
- group_begin()
- group_end('comment')
- lod_begin('range','center')
- lod_end('comment')
- switch_begin(whichChild)
- switch_end('comment')
- transform_begin('type=value', 'type=value', ...)
Where type can be:
t = translation
r = rotation
c = center
s = scaleFactor
so = scaleOrientation
- transform_end
- background(skyColor => 'color', backUrl => 'Url')
- backgroundcolor('skyColor')
is the short version of background
. It specifies only the background color.
- backgroundimage('Url')
is the short version of background
, use only one image. It assigns the
given Url to the background plane.
- title('string')
- info('string')
- viewpoint_begin('whichCamera')
- viewpoint('name','positionXYZ','orientationXYZ',heightAngle)
- viewpoint_set('center','distance',heightAngle)
- viewpoint_auto_set
sets all parameters of viewpoint_set
automatically
- viewpoint_end
- directionallight('direction',intensity,ambientIntensity,'color',on)
The parameter ambientIntensity will be ignored in VRML 1.0.
- box('width [height [depth]]','appearance')
- cone('radius height','appearance')
- cube('length','appearance')
- cylinder('radius [height]','appearance',top,side,bottom)
- line('fromXYZ','toXYZ',radius,'appearance','[x][y][z]')
- sphere(radius,'appearance')
- text('string','appearance','size family style','align')
- billtext('string','appearance','size family style','align')
- appearance('type=value1,value2 ; ...')
Where type can be:
a = ambientColor (not available in VRML2)
d = diffuseColor
e = emissiveColor
s = specularColor
sh = shininess
tr = transparency
tex = texture filename,wrapS,wrapT
and color values see
VRML::Color
- def('name',[code])
- use('name')
.
VRML
VRML::VRML1::Standard
VRML::Base
http://www.gfz-potsdam.de/~palm/vrmlperl/ for a description of VRML-modules and how to obtain it.
Hartmut Palm <palm@gfz-potsdam.de>
Homepage http://www.gfz-potsdam.de/~palm/