ParallelGraphics
Home  »  Developer Zone  »  Products  »  Cortona VRML Client  »  VRML Extensions  »  SFVec2f Interpolator
Up to VRML Extensions

AdvancedAppearance 

Animated GIF 

BumpMap 

Collision Detection 

CortonaExtrusion 

CubeEnvironment 

DirectX 9.0 Shaders 

Drag & Drop 

EventUtilities 

Flash animations 

FlashMovie 

FontStyle 

Inline Extension 

Interpolator Nodes 

Keyboard Input 

Layers and 2D Nodes 

MipMap 

NavigationInfo 

NURBS 

OrderedGroup 

Panel and HTMLText 

QuickTime 

SFVec2f Interpolator 

SphereEnvironment 

Splines 

Three-Dimensional Text 

TextureTransform3 

TransformSensor 

ZGroup 


Subscribe to Newsletter
 


Google Searchsite search:

 

%(domain)s %(domain)s
Install Cortona VRML Client!

Outline 3D

Try RobinZone!


SFVec2f Interpolator
Position2Interpolator

Scene size: 3.0KB
The Position2Interpolator node linearly interpolates among a list of 2D vectors. This node allows a dynamic transformation that is applied to texture coordinates without implementation of the Script node.

Node description
Position2Interpolator { 
 eventIn		SFFloat set_fraction
 exposedField	MFFloat key		[]
 exposedField	MFVec2f keyValue		[]
 eventOut		SFVec2f value_changed
}

All definitions of the fields are similar to the VRML97 definitions of the PositionInterpolator node.



Example
#VRML V2.0 utf8
NavigationInfo {
 type "EXAMINE"
}
Transform {
 rotation 1 1 1 1
 children [
  Shape {
   geometry Box {}
   appearance Appearance {
    texture ImageTexture {
     url "sky01.gif"
    }
    textureTransform
     DEF TT TextureTransform {}
   }
  }
 ]
}
DEF TIS TimeSensor {
 loop TRUE
 cycleInterval 5
}
DEF PI2 Position2Interpolator {
 key [0 1]
 keyValue [0 0, 1 1]
}
ROUTE TIS.fraction_changed
TO PI2.set_fraction
ROUTE PI2.value_changed
TO TT.translation

You can see this example in Cortona at top left corner of this page.




Last updated: Tue, 19 Aug 2008
© 2000-2008 ParallelGraphics. All rights reserved. Terms of use.