ParallelGraphics
Home  »  Developer Zone  »  Products  »  Cortona3D Viewer  »  VRML Extensions  »  GradientBackground
Up to VRML Extensions

AdvancedAppearance 

Animated GIF 

BumpMap 

Collision Detection 

CompositeTexture 

CortonaExtrusion 

CubeEnvironment 

DirectX 9.0 Shaders 

Drag & Drop 

EventUtilities 

Flash animations 

FlashMovie 

FontStyle 

Inline Extension 

Interpolator Nodes 

GradientBackground 

Keyboard Input 

Layers and 2D Nodes 

MipMap 

NavigationInfo 

NURBS 

OrderedGroup 

Panel and HTMLText 

QuickTime 

SFVec2f Interpolator 

SphereEnvironment 

Splines 

Three-Dimensional Text 

TextureTransform3 

TransformSensor 

ViewportSensor 

ZGroup 


Subscribe to Newsletter
 


Google Searchsite search:

 

%(domain)s %(domain)s
Install Cortona3D Viewer

Outline3D


GradientBackground

The GradientBackground allows for creating horizontal or vertical gradient background that is static relatively to the camera movements.

EXTERNPROTO GradientBackground [ 
  eventIn		SFBool		set_bind
  exposedField		MFColor		color		0,0,0
  exposedField		MFFloat		colorPosition	0
  exposedField		SFString	type		"LINEAR-VERTICAL"   
  eventOut		SFBool		isBound
]
[
  "urn:inet:parallelgraphics.com:cortona:GradientBackground"
  "http://www.parallelgraphics.com/vrml/proto/Cortona/extensions.wrl
  #GradientBackground"
]

The set_bind field works in the same way as the set_bind field of the Background node.
The color field specifies two or more colors of the gradient.
The colorPosition field specifies the positions of colors listed in the color field. If only two colors are used to create the gradient, the colorPosition field is not necessary. If the value of the colorPosition field is not specified, the colors are arranged uniformly.
The type field specifies whether the gradient is horizontal or vertical. The possible values are "LINEAR-VERTICAL" (default) and "LINEAR-HORIZONTAL".
The isBound field works in the same way as the isBound field of the Background node.


Example

scene size: 777bytes
archive size: 917bytes
view online download



Last updated: Sun, 12 Feb 2012
© 2000-2011 ParallelGraphics. All rights reserved. Terms of use.