home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / sgi / graphics / 58 < prev    next >
Encoding:
Internet Message Format  |  1992-12-23  |  852 b 

  1. Path: sparky!uunet!dove!poly2.nist.gov!fred
  2. From: fred@poly2.nist.gov (Frederick R. Phelan Jr.)
  3. Newsgroups: comp.sys.sgi.graphics
  4. Subject: Setting Material Color
  5. Message-ID: <7671@dove.nist.gov>
  6. Date: 23 Dec 92 20:44:29 GMT
  7. Sender: news@dove.nist.gov
  8. Lines: 28
  9.  
  10. Suppose you have a material color:
  11.  
  12. float object_color[] = 
  13. {
  14.         DIFFUSE,    0.1, 1.0, 0.2,
  15.         SPECULAR,   0.3, 0.9, 0.3,
  16.         EMISSION,   1.0, 0.1, 1.0,
  17.         SHININESS,  24.0,
  18.         LMNULL 
  19. };
  20.  
  21. which has been set with:
  22.  
  23.     lmdef(DEFMATERIAL, 1, 15, object_color);
  24.  
  25.  
  26. First, are you allowed to change the EMISSION values (or really any
  27. of object_color's properties) on the fly?  
  28.  
  29. Second, If you can change on the fly, do you need to do a new call to
  30. lmdef every time for the changes to take effect or is the first call
  31. sufficient?
  32.  
  33. Fred
  34. ---
  35. Fred Phelan
  36. fred@poly2.nist.gov
  37.  
  38.