[comp.sys.sgi] color map lighting

Dan Karron@UCBVAX.BERKELEY.EDU (04/21/91)

The gl prog guide says that color map lighting has some
inherent limitations.

What are they ?

Color map lighting  advanced features are not supported. Color map
recognizes a limited set of properties.

Why ?

Which is the better way to go: rgb or color map for lighting models in
the long run ?

Cheers!

dan.
| karron@nyu.edu (e-mail alias )         Dan Karron, Research Associate      |
| Phone: 212 263 5210 Fax: 212 263 7190  New York University Medical Center  |
| 560 First Avenue                       Digital Pager <1> (212) 397 9330    |
| New York, New York 10016               <2> 10896   <3> <your-number-here>  |

bennett@sgi.com (Jim Bennett) (04/22/91)

In article <9104201746.AA07556@karron.med.nyu.edu> karron@cmcl2.nyu.edu writes:
>
>The gl prog guide says that color map lighting has some
>inherent limitations.
>
>What are they ?

The main limitation is that you are limited in the number of colors
you can use.  For each color, you have to provide a color ramp that
that the lighting calculations can index into.

Another limitation is that the color ramp has to include the color
of the light as well as the color of the object.  So you can't
get a scene with two different colored light sources in color
index mode.

>Color map lighting  advanced features are not supported. Color map
>recognizes a limited set of properties.
>
>Why ?

Many of the properties don't apply in color index mode.  After all,
in color index mode, the lighting calculations have to come down to
a single index into a color ramp.

>Which is the better way to go: rgb or color map for lighting models in
>the long run ?

RGB is the way to go.

>Cheers!
>
>dan.
>| karron@nyu.edu (e-mail alias )         Dan Karron, Research Associate      |
>| Phone: 212 263 5210 Fax: 212 263 7190  New York University Medical Center  |
>| 560 First Avenue                       Digital Pager <1> (212) 397 9330    |
>| New York, New York 10016               <2> 10896   <3> <your-number-here>  |

Jim Bennett				(bennett@sgi.com)