Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!gatech!prism!vsserv!loligo!pepke From: pepke@loligo (Eric Pepke) Newsgroups: comp.graphics Subject: Re: How to map 24-bit RGB to best EGA/VGA palette? Keywords: RGB EGA VGA color Message-ID: <144@vsserv.scri.fsu.edu> Date: 31 Aug 89 20:37:37 GMT References: <126@vsserv.scri.fsu.edu> <3129@cbnewsm.ATT.COM> <7743@cbmvax.UUCP> <13319@well.UUCP> <586@celit.com> <4862@eos.UUCP> <13381@well.UUCP> <9464@venera.isi.edu> Sender: news@vsserv.scri.fsu.edu Reply-To: pepke@gw.scri.fsu.edu (Eric Pepke) Distribution: na Organization: Supercomputer Computations Research Institute Lines: 21 In article <9464@venera.isi.edu> raveling@isi.edu (Paul Raveling) writes: > One thing this suggests is that using a polar-coordinate > representation of RGB space is likely to reduce quantization > error with typical algorithms. Does anyone have an existing > **VERY FAST** algorithm for transforming between polar and > rectangular coordinates in 3-space? I once did an approximation of R-P and P-R for a computer game on the Macintosh. It's pretty straightforward and obvious, and it requires nothing more onerous than an integer divide with precision double what the input and output precision is. I'll see if I can dig it up. Wanna collaborate on a a paper? Respond to the INTERNET address below. Eric Pepke INTERNET: pepke@gw.scri.fsu.edu Supercomputer Computations Research Institute MFENET: pepke@fsu Florida State University SPAN: scri::pepke Tallahassee, FL 32306-4052 BITNET: pepke@fsu Disclaimer: My employers seldom even LISTEN to my opinions. Meta-disclaimer: Any society that needs disclaimers has too many lawyers.