Article View: rec.games.programmer
Article #725Re: Bitmaps
From: Christopher Phillips
Date: Fri, 14 Aug 1992 07:17
Date: Fri, 14 Aug 1992 07:17
22 lines
1375 bytes
1375 bytes
galt%peruvian.utah.edu@cs.utah.edu (Greg Alt) writes: >It sounds like you are claiming that it is possible to do real-time >sprite rotations without multiplies. >I don't believe that is possible on a PC (even a 386), but I would love >to be proven wrong. processor is irrelevant for this kind of issue. Principles apply to any TM equivalent. No multiplies needed at all. What you do, is maintain position in source image as you step through the destination pixels, by adding dx and dy to your position in the source image. Hence, only two fixed point additions and one array access per pixel. win awards! -- Christopher Jam __________________________________________________ 'Another day, another try. But remember, SHOOT OR DIE!' -turrican phillips@swanee.ee.uwa.oz.au c64 forever!!!! ------------------------------------------------------------------
Technical Details
Message-ID:
<phillips.713776633@infs2>Path:
arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!uniwa!swanee.ee.uwa.oz.au!phillipsReferences:
<1992Aug11.002459.18167@mnemosyne.cs.du.edu> <1992Aug10.194049.58044@cc.usu.edu> <1992Aug12.022753.19340@hellgate.utah.edu>Show Full Headers
Complete Article Headers
Newsgroups: rec.games.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!uniwa!swanee.ee.uwa.oz.au!phillips From: phillips@swanee.ee.uwa.oz.au (Christopher Phillips) Subject: Re: Bitmaps Message-ID: <phillips.713776633@infs2> Sender: news@swanee.ee.uwa.oz.au Organization: Elec Eng, Univ of Western Australia References: <1992Aug11.002459.18167@mnemosyne.cs.du.edu> <1992Aug10.194049.58044@cc.usu.edu> <1992Aug12.022753.19340@hellgate.utah.edu> Date: 14 Aug 92 07:17:13 GMT Lines: 22