Main Page   Modules   Alphabetical List   Data Structures   Data Fields  

RtNormMap
[Lighting]


Functions

RwImageRtNormMapCreateFromImage (RwImage *image, RwBool clamp, RwReal bumpiness)

Detailed Description

Normal Maps Toolkit for RenderWare.

RtNormMap Toolkit Overview

Requirements for rtnormmap library

Overview

This toolkit provides facilities for creating normal maps. Normal maps are textures that store a normal per pixel encoded as a color, converting the components of the normals from the range [-1..1] to [0..255].

Normal maps created using this toolkit could be used with the RpNormMap plugin to calculate per pixel lighting.

See also:
RpNormMap

Function Documentation

RwImage* RtNormMapCreateFromImage RwImage   image,
RwBool    clamp,
RwReal    bumpiness
 

RtNormMapCreateFromImage creates a RwImage containing a normal map generated from a regular image using average pixel color diferences.

Parameters:
image  pointer to the source RwImage
clamp  TRUE if the normal map needs to be clamped at the edges
bumpiness  level of bumpiness of the resulting normal map
Returns:
pointer to the resulting normal map image
See also:
RpNormMap


Criterion Software © 1993-2004 Criterion Software Limited. All rights reserved. Built Thu Feb 12 13:47:14 2004. Send Feedback