VRML::VRML1::Standard.pm - implements the VRML 1.x standard nodes
use VRML::VRML1::Standard;
Following nodes are currently implemented.
[Group Nodes] [Geometry Nodes] [Property Nodes]
Group Nodes
Geometry Nodes
Property Nodes
[Appearance Nodes] [Transform Nodes] [Common Nodes]
Appearance Nodes
Transform Nodes
Common Nodes
These nodes NEED End !
End
Group()
Separator()
Switch($whichChild)
WWWAnchor($url, $description, $target)
$target works only with some browsers
LOD($range, $center)
$range = MFFloat
$center = SFVec3f
example: LOD([1, 2, 5], '0 0 0')
LOD([1, 2, 5], '0 0 0')
SpinGroup($rotation, $local) is supported only by some browsers
SpinGroup($rotation, $local)
AsciiText($string, $width, $justification, $spacing)
$justification is a string ('LEFT','CENTER','RIGHT')
Cone($radius, $height, @parts)
@parts is an array of strings ('SIDES', 'BOTTOM', 'ALL')
Cube($width, $height, $depth)
Cylinder($radius, $height, @parts)
@parts is a list of strings ('SIDES', 'TOP', 'BOTTOM', 'ALL')
IndexedFaceSet($coordIndex_ref, $materialIndex_ref, $normalIndex_ref, $textureCoordIndex_ref)
$coordIndex_ref is a reference of a list of point index strings like ['0 1 3 2', '2 3 5 4', ...]
['0 1 3 2', '2 3 5 4', ...]
$materialIndex_ref is a reference of a list of materials
$normalIndex_ref is a reference of a list of normals
$textureCoordIndex_ref is a reference of a list of textures
IndexedLineSet($coordIndex_ref, $materialIndex_ref, $normalIndex_ref, $textureCoordIndex_ref)
PointSet($numPoints, $startIndex)
Sphere($radius)
$radius must be > 0
Coordinate3(@points)
@points is a list of points with strings like '1.0 0.0 0.0', '-1 2 0'
'1.0 0.0 0.0', '-1 2 0'
FontStyle($size, $family, $style) defines the current font style for all subsequent AsciiText Nodes
FontStyle($size, $family, $style)
AsciiText
$familiy can be 'SERIF','SANS','TYPEWRITER'
$style can be 'NONE','BOLD','ITALIC'
Material(%materials)
MaterialBinding($value)
$value can be
DEFAULT Use default bindng OVERALL Whole object has same material PER_PART One material for each part of object PER_PART_INDEXED One material for each part, indexed PER_FACE One material for each face of object PER_FACE_INDEXED One material for each face, indexed PER_VERTEX One material for each vertex of object PER_VERTEX_INDEXED One material for each vertex, indexed
Normal(@vector)
@vector is a list of vectors with strings like '1.0 0.0 0.0', '.5 .2 0'
'1.0 0.0 0.0', '.5 .2 0'
NormalBinding($value)
$value is the same as MaterialBinding
MaterialBinding
Texture2($value)
Transform($translation, $rotation, $scaleFactor, $scaleOrientation, $center)
$translation is a string like "0 1 -2"
$rotation is a string like "0 0 1 1.57"
$scaleFactor is a string like "1 1 1"
$scaleOrientation is a string like "0 0 1 0"
$center is a string like "0 0 0"
Rotation($rotation)
This node is not supported under VRML 2.0. Use Transform
Scale($scaleFactor)
Translation($translation)
PerspectiveCamera($position, $orientation, $heightAngle, $focalDistance, $nearDistance, $farDistance)
OrthographicCamera($position, $orientation, $height, $focalDistance, $nearDistance, $farDistance)
DirectionalLight($direction, $intensity, $color, $on)
PointLight($location, $intensity, $color, $on)
SpotLight($location, $direction, $intensity, $color, $on)
DirectedSound($name, $description, $location, $direction, $intensity, $maxFrontRange, $maxBackRange, $minFrontRange, $minBackRange, $loop, $pause)
WWWInline($name, $bboxSize, $bboxCenter)
Info($string)
NavigationInfo($type, $speed, $headlight)
Works only with Live3D and WebFX
USE($name)
DEF($name)
VRML::VRML1::Standard
VRML::Base
http://www.gfz-potsdam.de/~palm/vrmlperl/ for a description of VRML-modules and how to obtain it.
IndexedFaceSet and IndexedLineSet work currently only with references
IndexedFaceSet
IndexedLineSet
Hartmut Palm <palm@gfz-potsdam.de>
Homepage http://www.gfz-potsdam.de/~palm/
To install VRML, copy and paste the appropriate command in to your terminal.
cpanm
cpanm VRML
CPAN shell
perl -MCPAN -e shell install VRML
For more information on module installation, please visit the detailed CPAN module installation guide.