RE: LANG - soli questions about....

Syndesis Corporation ([email protected])
Fri, 30 Jun 1995 10:16:35 -0500


>>> > How can one convert between an RGB triplet
>>> > representation and a single index as VRML requires ?
>>>
>>> You would have to do a weighted sum. I forget what the formula is,
>>> but it's solithing like aR + bG + cB where a, b, and c sum to 1.00
>>> and their ratio reflects the relative "importance" of each color.

You mean solithing like (snip):

Given an RGB value, return its NTSC luminance, calc'd as:

0.3 * red + 0.59 * green + 0.11 * blue