ParallelGraphics
Home  »  Developer Zone  »  Products  »  Cortona3D Viewer  »  VRML Extensions  »  BumpMap
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


BumpMap
The BumpMap node specifies bump-effect (illusion of bumps, or variations in surface depth on an otherwise flat surface) for a 3D object.

EXTERNPROTO BumpMap [
	exposedField SFNode  texture
	exposedField SFVec3f direction 0 0 –1  # (-inf,inf)
]
  "urn:inet:parallelgraphics.com:cortona:BumpMap"
  "http://www.parallelgraphics.com/vrml/proto/Cortona/extensions.wrl#BumpMap"
]

Fields and events
 
texture  Contains a texture bump map which can be given by the ImageTexture, PixelTexture, MovieTexture, CubeEnvironment, or MipMap nodes.

 
direction  Specifies the direction of a light source (analogous of the DirectionalLight node).

Each pixel of a resultant bump texture has grey color: red, green and blue components of its color are equal. The value of these components is calculated as follows:
  1. the direction vector is transformed to the global coordinates;
  2. the obtained vector is scalarly multiplied by the color of the corresponding pixel of the texture bump map, specified in the texture field.
If the BumpMap node is used as a value of the textures field of the AdvancedAppearance node, other fields of this node have the following default values:

backgroundFactor = FORE_COLOR
foregroundFactor = ZERO

or:

backgroundFactor = ZERO
foregroundFactor = BACK_COLOR

Important: This node is supported by GeForce and latest ATI Radeon video cards when the DirectX Renderer (Concorde DX7) is chosen, or at computers with the Pentium IV processor when the R98 Renderer (software renderer) is selected.

BumpMap example
[view]


scene size: 1.5KB, resources size: 170KB
download zipped archive
(archive size: 81KB)


BumpMap example 2
[view]


scene size: 221KB, resources size: 0.66MB
download zipped archive
(archive size: 0.85MB)



Last updated: Mon, 08 Feb 2010
© 2000-2010 ParallelGraphics. All rights reserved. Terms of use.