home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!think.com!ames!sgi!fido!cashew.asd.sgi.com!kurt
- From: kurt@cashew.asd.sgi.com (Kurt Akeley)
- Newsgroups: comp.sys.sgi
- Subject: Re: what happens to big color values?
- Date: 29 Dec 1992 22:05:41 GMT
- Organization: Silicon Graphics, Inc.
- Lines: 25
- Distribution: comp
- Message-ID: <1hqi3lINNi51@fido.asd.sgi.com>
- References: <C002M8.3D8.1@cs.cmu.edu>
- NNTP-Posting-Host: cashew.asd.sgi.com
-
- --
-
- In article <C002M8.3D8.1@cs.cmu.edu>, gleicher@CS.CMU.EDU (Michael Gleicher) writes:
- |>
- |> 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.
-
- The color components should be independently clamped (not truncated)
- to 1.0, resulting in a color near white. What hardware are you running on?
-
- -- Kurt Akeley kurt@sgi.com (415) 390-3612 M/S 7U-550
-