ParallelGraphics
Home  »  Developer Zone  »  Products  »  Cortona VRML Client  »  VRML Extensions  »  Animated GIF
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!


Animated GIF Files as Source for MovieTexture
scene size: 1.2KB
resources size: 1.6KB
[enlarge window]
 
download zipped archive
(archive size: 2.1KB)


Use the MovieTexture node to place animated GIF files in your VRML scene.

#VRML V2.0 utf8
   
DEF ROTY Transform {children DEF ROTX Transform {children DEF ROTZ Transform 
  { children 
   Transform {rotation 0 0 1 0 children [
     Shape {appearance Appearance {
       texture MovieTexture {
              loop TRUE
         url "banner.gif"
       }
      }
            geometry Box {size 8.8 3.1 0.1}}
     DEF TS1 TouchSensor {}]
   }
  }}}



DEF ROTYInterpolator OrientationInterpolator {
 key [ 0 0.5 1 ]
 keyValue [0 1 0 0 0 1 0 -3.14 0 1 0 -6.28]
}

DEF ROTZInterpolator OrientationInterpolator {
 key [ 0 0.5 1 ]
 keyValue [0 0 1 0, 0 0 1 -0.8, 0 0 1 0]
}

DEF ROTXInterpolator OrientationInterpolator {
 key [ 0 0.5 1 ]
 keyValue [1 0 0 0, 1 0 0 0.8, 1 0 0 0]
}

DEF TIMER TimeSensor { enabled TRUE  
 loop FALSE cycleInterval 10}


ROUTE TS1.touchTime TO TIMER.startTime

ROUTE TIMER.fraction_changed TO ROTYInterpolator.set_fraction
ROUTE TIMER.fraction_changed TO ROTZInterpolator.set_fraction
ROUTE TIMER.fraction_changed TO ROTXInterpolator.set_fraction

ROUTE ROTYInterpolator.value_changed TO ROTY.rotation
ROUTE ROTZInterpolator.value_changed TO ROTZ.rotation
ROUTE ROTXInterpolator.value_changed TO ROTX.rotation




Last updated: Sun, 20 Jul 2008
© 2000-2008 ParallelGraphics. All rights reserved. Terms of use.