Lighthouse3d.com

Send me bugs and suggestions, please
VRML Script Tutorial
Full list

VRML Interactive Tutorial

Introduction
VRML File Structure
Drawing: Shape node
Geometry Nodes:
Box
Sphere
Cone
Cylinder
PointSet
IndexedLineSet
IndexedFaceSet
Extrusion
ElevationGrid
Example: Chessboard
Text
FontStyle
Appearance
Material
Textures
Image Texture
Movie Texture
Pixel Texture
Texture Coordinate
Texture Transform
Let there be Light
Directional Light
Point Light
Spot Light
Materials with Colored Lights
Hierarchical Node Structures
Group
Transform
Collision
Anchor
Billboard
Switch
Inlining Files
Defining and Instancing Nodes
Defining Levels of Detail
Events in VRML
Creating Paths between events: ROUTE
Generating Events based on Timers or User Actions
Timers
Touch Sensor
Visibility Sensor
Dragging Sensors
Plane Sensor
Sphere Sensor
Cylinder Sensor
Proximity Sensors
Example: Proximity sensor
Interpolators
Color
Coordinate
Normal
Orientation
Position
Scalar
Example
Let the Music Play
Sound
AudioClip
Bindable Nodes
Who Am I: NavigationInfo
Where Am I: ViewPoint
Adding Realism to the world
Background
Fog
Information about your world
WorldInfo
Definition for Auxiliary Nodes
Coordinate
Color
Normal

NormalInterpolator


The NormalInterpolator node is an interpolator which takes a list of 3D vectors in the field keyValue. The NormalInterpolator allows you to control each of the normals defined in a Normal node (the Normal node appears inside of a IndexedFaceSet or ElevationGrid).

For a list of the events of this node see interpolator.

Syntax:
NormalInterpolator {
key [ ]
keyValue [ ]
}


The eventOut fraction_changed of this node can be routed to the eventIn set_normal of a Normal node.

The number of keyValue entries must be equal to the number of keys provided times the number of normals specified in the field normal, i.e. for each key specified there must be as many values as vectors in the normal field to which the fraction_changed eventOut is routed to. Note that by value it is meant a 3D vector.

This interpolator can be used to vary the lighting effect in a shape.

Normals are outside the scope of this tutorial in the present version. This node is included in here only for completeness. Future versions of the tutorial may deal with normals.