home *** CD-ROM | disk | FTP | other *** search
- Path: 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
-
- 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
-
-