home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Assembler / dse-src3.dms / in.adf / Source / Vectors / Shading.lha / shading.txt / text0000.txt < prev   
Encoding:
Text File  |  1993-01-06  |  2.4 KB  |  68 lines

  1. >From atc@ut-sally.UUCP Tue Feb  2 01:03:33 1988
  2. Path: leah!uwmcsd1!ig!agate!ucbvax!husc6!ut-sally!atc
  3. From: atc@ut-sally.UUCP (Alvin T. Campbell III)
  4. Newsgroups: comp.graphics
  5. Subject: Re: silver color
  6. Message-ID: <10287@ut-sally.UUCP>
  7. Date: 2 Feb 88 06:03:33 GMT
  8. References: <2679@bloom-beacon.MIT.EDU>
  9. Reply-To: atc@ut-sally.UUCP (Alvin T. Campbell III)
  10. Organization: U. Texas CS Dept., Austin, Texas
  11. Lines: 55
  12.  
  13. In article <2679@bloom-beacon.MIT.EDU> tada@athena.mit.edu (Ivan Tadayoff) 
  14. writes:
  15. >
  16. >Does anyone know what values of RGB to use to make a nice looking silver?
  17. >(as in a metallic object?)  I've tried a variety of combinations and none 
  18. >of them seem very pleasing.
  19. >
  20. >While on the subject, does anyone know a good book on how to color ray-
  21. >tracing views?  For example, how much does a light ray change when it
  22. >reflects off a metallic sphere?  
  23. >
  24. >Thanks in advance for any help.
  25.  
  26.     You are attempting to do something very difficult.  Metallic
  27. reflection can not be done very accurately using only an RGB triple 
  28. to model reflective properties.    
  29.  
  30.     The most common shading model in graphics, developed at the
  31. University of Utah, assumes that the diffuse color is dependent on the
  32. light source color and the object color, but the specular color
  33. is dependent only upon the light color.  This is a reasonable
  34. approximation for plastic, but not for metal.  Most of the perceived
  35. color of metal is from a specular component dependent on the light
  36. and the surface properties.
  37.  
  38.     A reference which gives a starting point on how to do metallic
  39. shading is the following:
  40.  
  41.     Cook, Robert L., and Kenneth E. Torrance, "A Reflectance Model
  42.     for Computer Graphics", Computer Graphics (Proceedings of
  43.     SIGGRAPH '81) v. 15, no. 3, (August 1981), pp.307-316.
  44.  
  45.     After digesting the material in the above reference, which will
  46. probably take a while, you can get reflectance spectra from 
  47.  
  48.     Purdue University, Thermophysical Properties of Matter,
  49.     v. 7: Thermal Radiative Properties of Metals, 1970.
  50.  
  51.     If all of this seems like too much work, and you just want to
  52. settle for an RGB triple for silver, the best you can do is probably
  53. the following:
  54.  
  55.     R = .95   G = .95   B = .95 
  56.     Diffuse Coefficient = .25
  57.     Specular Coefficient = .75
  58.     Specular Power = 6.0
  59.  
  60.     I hope this helps.
  61.  
  62.                 --A. T. Campbell--
  63.                 Computer Graphics Lab
  64.                 Department of Computer Sciences
  65.                 University of Texas
  66.                    Austin, Texas
  67.                 atc@sally.CS.UTEXAS.EDU
  68.