ParallelGraphics  
Home  »  Developer Zone  »  Products  »  Cortona3D Viewer  »  VRML Extensions  »  BumpMap
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: Tue, 09 Mar 2010
© 2000-2008 ParallelGraphics. All rights reserved.