Standard.pm


NAME

VRML::VRML2::Standard.pm - implements nodes the VRML 2.0 standard


SYNOPSIS

use VRML::VRML2::Standard;


DESCRIPTION

Following nodes are currently implemented.

[ Grouping Nodes ] [ Special Groups ] [ Common Nodes ]

[ Geometry ] [ Geometric Properties ] [ Appearance ]

[ Sensors ] [ Bindable Nodes ]

Grouping Nodes

These nodes NEED End !

Anchor
Anchor($url, $description, $parameter, $bboxSize, $bboxCenter)

$parameter works only with some browsers

Group
Group($comment)

Transform
Transform($translation, $rotation, $scale, $scaleOrientation, $center)

$translation is a SFVec3f

$rotation is a SFRotation

$scale is a SFVec3f

$scaleOrientation is a SFRotation

$center is a SFVec3f

.

Special Groups

Inline
Inline($url, $bboxSize, $bboxCenter)

LOD
LOD($range, $center)

$range is a string with comma separated values

$center = SFVec3f

example: LOD('1, 2, 5', '0 0 0')

Switch
Switch($whichChoice, $comment)

.

Common Nodes

DirectionalLight
DirectionalLight($direction, $intensity, $ambientIntensity, $color, $on)

PointLight
PointLight($location, $intensity, $color, $on)

SpotLight
SpotLight($location, $direction, $intensity, $color, $on)

Sound
Sound($source, $location, $direction, $intensity, $maxFront, $maxBack, $minFront, $minBack, $priority, $spatialize)

AudioClip
AudioClip($url, $description, $loop, $pitch, $startTime, $stopTime)

WorldInfo
WorldInfo($title, $info)

Shape
Shape($comment)

.

Geometry

Box
Box($width, $height, $depth)

Cone
Cone($radius, $height, $side, $bottom)

Cylinder
Cylinder($radius, $height, $top, $side, $bottom)

IndexedFaceSet
IndexedFaceSet($coordIndex_ref, $colorIndex_ref, $normalIndex_ref, $texCoordIndex_ref)

$coordIndex_ref is a reference of a list of point index strings like '0 1 3 2', '2 3 5 4', ...

$colorIndex_ref is a reference of a list of materials

$normalIndex_ref is a reference of a list of normals

$texCoordIndex_ref is a reference of a list of textures

IndexedLineSet
IndexedLineSet($coordIndex_ref, $colorIndex_ref, $normalIndex_ref, $texCoordIndex_ref)

$coordIndex_ref is a reference of a list of point index strings like '0 1 3 2', '2 3 5 4', ...

$colorIndex_ref is a reference of a list of materials

$normalIndex_ref is a reference of a list of normals

$texCoordIndex_ref is a reference of a list of textures

PointSet
PointSet($numPoints, $startIndex)

Sphere
Sphere($radius)

$radius have to be > 0

Text
Text($string, $fontStyle, $length, $maxExtent)

.

Geometric Properties

Coordinate
Coordinate(@point)

@point is a list of points with strings like '1.0 0.0 0.0', '-1 2 0'

Color
Color(@color)

@color is a list of colors with strings like '1.0 0.0 0.0', '-1 2 0'

Normal
Normal(@vector)

@vector is a list of vectors with strings like '1.0 0.0 0.0', '-1 2 0'

.

Appearance

Appearance
Appearance

Fontstyle
FontStyle($size, $style, $family) defines the current font style for all subsequent Text Nodes

$style can be 'NONE','BOLD','ITALIC'

$familiy can be 'SERIF','SANS','TYPEWRITER'

Material
Material(%materials)

ImageTexture
ImageTexture($url)

MovieTexture
MovieTexture($url)

.

Sensors

CylinderSensor
CylinderSensor($enabled, $maxAngle, $minAngle)

PlaneSensor
PlaneSensor($enabled, $maxPosition, $minPosition, $offset, $autoOffset)

SphereSensor
SphereSensor($enabled, $offset, $autoOffset)

TimeSensor
TimeSensor($cycleInterval, $loop, $enabled)

TouchSensor
TouchSensor($eneabled)

.

Bindable Nodes

Background
Background($backUrl, $bottomUrl, $topUrl, $leftUrl, $rightUrl, $frontUrl, $groundColor, $skyColor, $groundAngle, $skyAngle)

NavigationInfo
NavigationInfo($headlight, $type, $speed, $visibilityLimit, $avatarSize)

Viewpoint
Viewpoint($description, $position, $orientation, $fieldOfView, $jump)

.

other

ROUTE
ROUTE($from, $to)

End
End($comment)

$comment is optional

.


AUTHOR

Hartmut Palm <palm@gfz-potsdam.de>