Standard.pm


NAME

VRML::VRML1::Standard.pm - implements nodes the VRML 1.x standard


SYNOPSIS

use VRML::VRML1::Standard;


DESCRIPTION

Following nodes are currently implemented.

[ Group Nodes ] [ Geometry Nodes ] [ Property Nodes ]

[ Appearance Nodes ] [ Transform Nodes ] [ Common Nodes ]

Group Nodes

These nodes NEED End !

Group
Group($comment)

Separator
Separator($comment)

Switch
Switch($whichChild, $comment)

WWWAnchor
WWWAnchor($url, $description, $target)

$target works only with some browsers

LOD
LOD($range, $center)

$range is a string with comma separated values

$center = SFVec3f

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

SpinGroup
SpinGroup($rotation, $local) is supported only by some browsers

.

Geometry Nodes

AsciiText
AsciiText($string, $width, $justification, $spacing)

$justification is a string ('LEFT','CENTER','RIGHT')

Cone
Cone($radius, $height, @parts)

@parts is a list of strings ('SIDES', 'BOTTOM', 'ALL')

Cube
Cube($width, $height, $depth)

Cylinder
Cylinder($radius, $height, @parts)

@parts is a list of strings ('SIDES', 'TOP', 'BOTTOM', 'ALL')

IndexedFaceSet
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', ...

$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
IndexedLineSet($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', ...

$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

PointSet
PointSet($numPoints, $startIndex)

Sphere
Sphere($radius)

$radius have to be > 0

.

Property Nodes

Coordinate3
Coordinate3(@points)

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

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

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

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

.

Appearance Nodes

Material
Material(%materials)

MaterialBinding
MaterialBinding($value)

$value can be

Normal
Normal(@vector)

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

NormalBinding
NormalBinding($value)

$value is the same as MaterialBinding

Texture2
Texture2($value)

.

Transform Nodes

Transform
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($rotation)

$rotation is a string like ``0 0 1 1.57''

This node is not supported under VRML 2.0. Use Transform

Scale
Scale($scaleFactor)

$scaleFactor is a string like ``1 1 1''

This node is not supported under VRML 2.0. Use Transform

Translation
Translation($translation)

$translation is a string like ``0 1 -2''

This node is not supported under VRML 2.0. Use Transform

.

Common Nodes

PerspectiveCamera
PerspectiveCamera($position, $orientation, $heightAngle, $focalDistance, $nearDistance, $farDistance)

OrthographicCamera
OrthographicCamera($position, $orientation, $height, $focalDistance, $nearDistance, $farDistance)

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

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

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

DirectedSound
DirectedSound($name, $description, $location, $direction, $intensity, $maxFrontRange, $maxBackRange, $minFrontRange, $minBackRange, $loop, $pause)

.

other

WWWInline
WWWInline($name, $bboxSize, $bboxCenter)

Info
Info($string, $comment)

$comment is optional

NavigationInfo
NavigationInfo($headlight, $type)

Works only with Live3D and WebFX

.


AUTHOR

Hartmut Palm <palm@gfz-potsdam.de>