[Radiance-general] Rendering of normal map
Claus B. Madsen
cbm at imi.aau.dk
Mon Mar 9 02:11:19 PDT 2009
Dear Radiance community,
I wish to use Radiance to render a normal map of a scene. By normal map
I mean a floating point RGB image, where the RGB values of each pixel
correspond to the xyz coordinates of the surface normal in scene
coordinates. More precisely, for example for the red channel:
R = (Nx + 1)/2
where Nx is the surface normal (in scene coordinates, not camera
coordinates) of the primary ray intersection point for a given ray. With
the expression given above the resulting pixel values should be in the
range from 0 to 1.
I have been working with making my own normal.cal function, since Nx,
Ny, and Nz are available in rayinit.cal, so it should be dead easy, I
just can't figure out how to return the offset/scaled N values as RGB
values directly, so as to completely bypass any lighting computations.
Best,
Claus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cbm.vcf
Type: text/x-vcard
Size: 354 bytes
Desc: not available
Url : http://radiance-online.org/pipermail/radiance-general/attachments/20090309/b777f1ed/cbm.vcf
More information about the Radiance-general
mailing list