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