Re: Lighting and colors?

New Message Reply Date view Thread view Subject view Author view

Marcus Barnes (marcus++at++multigen.com)
Mon, 16 Nov 1998 15:49:39 -0800


On Nov 11, 2:19pm, Brabson, Scott wrote:
>I created a simple polygon in MultiGen. It has a face color of white and
>does not have any materials.
>
>I loaded the polygon in perfly and turned the lighting off. I expected
>to see a white polygon. It was white but in contained a gray hue. I
>loaded perfly in ogldebug to see the actual color values. The Color
>vector was 0.8,0.8,0.8,1.0. Should it be 1.0,1.0,1.0,1.0? Why is it?

The short answer is that the default material for MultiGen tools has
long been:

        ambient = { 0.3, 0.3, 0.3 }
        diffuse = { 0.7, 0.7, 0.7 }
        specular = { 0.2, 0.2, 0.2 }
        emission = { 0.0, 0.0, 0.0 }

        shininess = 0.0
        alpha = 1.0

OpenFlight materials are really "template materials" where the diffuse
component is modulated with the face colors to acheive the final result.

The loader always does this modulation for you. White modulated with the
default material produces grey. If you really want pure white then specify a
material with a diffuse component of {1.0, 1.0, 1.0}.

Regards.

--
+ Marcus Barnes, Technical Staff        mailto:marcus++at++multigen.com +
+ Multigen-Paradigm Inc.                http://www.multigen.com    +
+ 550 S. Winchester Blvd.               phoneto:1-408-367-2654     +
+ Suite 500 San Jose CA 95128           faxto:1-408-261-4103       +

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Nov 16 1998 - 15:49:33 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.