Article View: rec.games.programmer
Article #623Re: JOSH'S SCALE UNIT
From: sl8nl
Date: Mon, 07 Sep 1992 23:46
Date: Mon, 07 Sep 1992 23:46
32 lines
1965 bytes
1965 bytes
Die skum who are going to flame me for this! In article <1532.880.uupcb@bville.gts.org>, lanny.cobain@bville.gts.org (Lanny Cobain) writes: > What needs to be e done to Josh's Scale/Perspective Unit to make it work > in Mode X instead of Mode 13h? Just for a test I tried to scale a 16x16 > bitmap that had been seperated into 4 planes for a quick "PutImage". > Scaling it up to another multiple of 4 such as 48x48 did not return the > desired results. I don't understand why it can't go to another multiple > of 4 without modifications. My "PutImage" expects the planes seperated > by the way, but if the original image already has it done that way I > don't see why I would have to seperate again on a multiple of 4. > Anyone???? > The Perspective routine can be easily modified to work in ModeX (as it was originally written to do that). Bear in mind that it does a column at a time, so instead of plotting to a buffer, set the bitplane to the correct one and write the pixel to the VGA screen. The scaler wasn't. If you don't need to scale in real-time, you can write a routine that will convert the bitmap to your format (right now, it is linear, just like mode 13h). If you do, you'll have to have a modified putimage that sets the plane, [1] writes the pixel, adds four to the source offset, and repeats to [1]. If you need me to post the code for these three things, just post a note in this newsgroup. Joshua Jensen sl8nl@cc.usu.edu P.S. Why, yes, wReam, this group is dead.
Technical Details
Message-ID:
<1992Sep7.174612.58699@cc.usu.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!agate!dog.ee.lbl.gov!hellgate.utah.edu!cc.usu.edu!sl8nlReferences:
<1532.880.uupcb@bville.gts.org>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!agate!dog.ee.lbl.gov!hellgate.utah.edu!cc.usu.edu!sl8nl From: sl8nl@cc.usu.edu Newsgroups: rec.games.programmer Subject: Re: JOSH'S SCALE UNIT Message-ID: <1992Sep7.174612.58699@cc.usu.edu> Date: 7 Sep 92 17:46:12 MDT References: <1532.880.uupcb@bville.gts.org> Distribution: world Organization: Utah State University Lines: 33