home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / sgi / 18359 < prev    next >
Encoding:
Text File  |  1992-12-29  |  1.4 KB  |  39 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!convex!darwin.sura.net!udel!rochester!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!gleicher
  3. From: gleicher@CS.CMU.EDU (Michael Gleicher)
  4. Subject: what happens to big color values?
  5. Message-ID: <C002M8.3D8.1@cs.cmu.edu>
  6. Originator: gleicher@HOSTESS.GRAPHICS.CS.CMU.EDU
  7. Sender: news@cs.cmu.edu (Usenet News System)
  8. Nntp-Posting-Host: hostess.graphics.cs.cmu.edu
  9. Organization: CMU Graphics Group
  10. Distribution: comp
  11. Date: Tue, 29 Dec 1992 02:51:43 GMT
  12. Lines: 25
  13.  
  14.  
  15. When lighting calculations are taking place, what happens when color values
  16. are > 1?
  17.  
  18. I'm computing the lighting "manually" in a program as well as displaying it on
  19. the screen. For points whose RGB value is computed > 1, I'm not seeing the
  20. expected results. For instance, what I compute as an RGB value of
  21. (1.5,1.4,.9), I'd expect to appear nearly white (since I expected the values >
  22. 1 to be truncated), but it appears yellow.
  23. The things which could be happening are:
  24.     1) truncation (this is what I expected, but doesn't seem to be the
  25.         case) 
  26.     2) normalization (eg: make the vector be unit magnitude)
  27.     3) divide by the largest element
  28.     4) something else
  29.  
  30. If someone could fill me in, I'd be most grateful.
  31.  
  32. Mike
  33.  
  34. 10 days before the siggraph deadline.... do you know where your pixels are?
  35. -- 
  36. Michael Lee Gleicher                gleicher@cs.cmu.edu
  37.         ski bum, graphics hacker, and SCS PhD student
  38. Carnegie Mellon University, Pittsburgh, PA 15213-3891    (412) 268-6243 (school)
  39.