🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sgi.graphics
Article #13

Setting Material Color

#13
From: Frederick R. Phelan Jr.
Date: Wed, 23 Dec 1992 20:44
27 lines
887 bytes
Suppose you have a material color:

float object_color[] = 
{
        DIFFUSE,    0.1, 1.0, 0.2,
        SPECULAR,   0.3, 0.9, 0.3,
        EMISSION,   1.0, 0.1, 1.0,
        SHININESS,  24.0,
        LMNULL 
};

which has been set with:

	lmdef(DEFMATERIAL, 1, 15, object_color);


First, are you allowed to change the EMISSION values (or really any
of object_color's properties) on the fly?  

Second, If you can change on the fly, do you need to do a new call to
lmdef every time for the changes to take effect or is the first call
sufficient?

Fred
---
Fred Phelan
fred@poly2.nist.gov
Technical Details
Message-ID: <7671@dove.nist.gov>
Path: arc1-ca.pugleaf.net!sparky!uunet!dove!poly2.nist.gov!fred

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!dove!poly2.nist.gov!fred
From: fred@poly2.nist.gov (Frederick R. Phelan Jr.)
Newsgroups: comp.sys.sgi.graphics
Subject: Setting Material Color
Message-ID: <7671@dove.nist.gov>
Date: 23 Dec 92 20:44:29 GMT
Sender: news@dove.nist.gov
Lines: 28