VRML2.pm
VRML::VRML2.pm - implements VRML methods with the VRML 1.x standard
use VRML::VRML2;
Following methods are currently implemented.
- begin(['comment']);
. . .
- end(['comment']);
- group_begin(['comment']);
. . .
- group_end;
- anchor_begin('Url','description','parameter');
- anchor_end;
- backgroundcolor('groundcolor','skycolor');
- backgroundimage('backUrl','bottomUrl');
- title('string');
- info('string');
- cameras_begin('whichCameraNumber');
- camera_set('positionXYZ','orientationXYZ',fieldOfView); // persp. cameras
- camera('positionXYZ','orientationXYZ',fieldOfView); // persp. camera
- cameras_end(['comment']);
- box('width [height [depth]]','appearance');
- cone('radius height','appearance');
- cube('width','appearance');
- cylinder('radius [height]','appearance');
- line('fromXYZ','toXYZ',radius,'appearance','[x][y][z]');
- sphere('radius_x [radius_y radius_z]','appearance');
- text('string','appearance','size style family');
- transform_begin('type=value ; ...');
Where type can be:
t = translation
r = rotation
c = center
o = scaleOrientation
f = scaleFactor
- appearance('type=value1,value2 ; ...');
Where type can be:
a = ambientColor
d = diffuseColor
e = emissiveColor
s = specularColor
sh = shininess
tr = transparency
tex = texture filename[,wrapS[,wrapT]]
and color values see
VRML::Color
- transform_end;
.
VRML
VRML::VRML2::Standard
VRML::Basic
Hartmut Palm <palm@gfz-potsdam.de>