RenderMan Repository   
Home Index Search FAQ Offsite Shaders Examples Pubs Utils Twiki

_RC_ Chapter 12 Surface Mapping

Errata

../ch11/listing12_1.tiff
listing12_1
../ch12/listing12_2.tiff
listing12_2
../ch12/evnr12_3.tiff
envr12_3
../ch12/listing12_5.tiff
listing12_5

This chapter requires more user changes than most of the others. All of the listings can be grabbed at once via: ch12.tar.gz . Some of the examples also require listings from some of the other chapters. See that example section from more details.

Listings 12_1 and 12_2 use a shader mytexture.sl and a texture map. The shader only uses the first channel value from the texture map. If you wish to use a color texture map then use mytexture_c.sl . NOTE: that this shader will produce a slo mytexture.slo and not mytexture_c.slo. Also the Makefile doesn't know about this shader and so it will build and use mytexture.sl. The color version will need will need to be recompiled manually before the Makefile is used.

p. 253 listing12_1.c -- Generates Figure 12.4. Example of TextureCoordinates. This listing also requires: listing12_1.h , main.c to compile. To run it needs: mytexture.sl and grid.tiff . (NOTE: if using prman will need to convert the TIFF image to an prman texture-map. Also, be aware that GRID_TEXTURE should be changed to the name of the texture-map to use) (Errata )

p. 254 listing12_2.c -- Generates Figure 12.5. another example of TextureCoordinates. This listing also requires: listing12_2.h , hcontour.h main.c to compile. To run it needs: mytexture.sl and grid.tiff . (NOTE: if using prman will need to convert the TIFF image to an prman texture-map. Also, be aware that GRID_TEXTURE should be changed to the name of the texture-map to use) (Errata )

p. 266, 267 listings 12_3 and 12_4 have been combined to envr12.c -- Generates and uses environment maps. This listing also requires: misc package . To run it needs shader shiny.sl .

p. 270 listing12_5.c -- Function for creating and using a shadow map for a light source. This listing also requires: listing12_1.h , listing2_3.c , listing2_7.c , and main.c to compile. To run it uses the shader shadowspot.sl (Errata )

The Makefile .


Any comments or suggestions? Send them to: tal AT renderman DOT org


Go Up (Parent):
[rcTop]
See Also (Siblings):
[rcCh4] [misc] [errataRev1] [rcCh5] [rcCh13]

rcCh12 was converted on Sat Jun 07 23:31:24 PDT 1997 by the eText Engine, version 5, release 0.95

The RMR is Copyright © 1995-2005 Tal L. Lancaster all rights reserved