normal map

CI Normal Map_gtII (Composition by gtoledo3)

Author: gtoledo3
License: (unknown)
Date: 2011.01.24
Compatibility: 10.4, 10.5, 10.6
Categories:
Required plugins:
(none)

This is a companion to the other normal map filter, that samples from more pixels than CINormalMap_gt to make it's normal map from heightfield.

Included is another composition that makes a normal map on the fly using this filter.

CINormalMap_gt (Composition by gtoledo3)

Author: gtoledo3
License: (unknown)
Date: 2011.01.18
Compatibility: 10.4, 10.5, 10.6
Categories:
Required plugins:
(none)

This is a core image filter that takes a greyscale heightfield (bump map) image, and outputs a normal map, in the style of nVidia Normal Map Filter plugin for photoshop, or NMG.

This allows one to create greyscale imagery in Quartz Composer, run image through this filter, and generate normals that can be rendered in the GLSL shader. This example uses Christopher Wright's Normal Map 1.qtz as a rendering destination, to show how it works.

Normal mapping is used to fake the appearance of a higher poly mesh than is actually being used when using GL Lighting.

http://en.wikipedia.org/wiki/Normal_mapping