PDA

View Full Version : VGA bitmap driver with large pixels of any color



DogP
05-16-2010, 04:04 PM
Hey,

I'm trying to generate a low resolution image on a VGA monitor with arbitrary colors per "pixel". I know there's not enough memory to allow a full screen bitmap, but I'm looking for something like an 80x60 bitmap with arbitrary colors for each "pixel" of the image (block of pixels to fill the screen). My thought was to make a bitmap out of one of the VGA Text drivers, but I don't see any of them that do individual colors per character. I don't need the character, and would gladly trade the character data for color data. It looks like I could do something like this with the VGA_512x384_Bitmap_Demo, and use the colors array for the pixels and ignore the pixels array, but that's a little bit too low resolution (16x12) and even more of a waste by not using the pixels.

Any ideas? I tried searching, but I'm not even really sure of the search terms I'm looking for.

Thanks,
Pat

pullmoll
05-16-2010, 05:17 PM
Take a look at this thread (http://forums.parallax.com/showthread.php?p=905162).

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Pullmoll's Propeller Projects (http://pmbits.ath.cx/prop/)

Rayman
05-16-2010, 07:12 PM
I think my 6-bit VGA driver might be close:

http://www.rayslogic.com/propeller/Programming/6-Bit%20Bitmap%20App/6BitBitmap.htm



▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm

My Prop Products:· http://www.rayslogic.com/Propeller/Products/Products.htm

DogP
05-17-2010, 05:12 AM
Very cool... thanks guys! I'll take a look at this stuff when I get a chance tonight and post back if I have any questions.

Pat

Ariba
05-17-2010, 06:08 AM
Here is my 128x96 pixel VGA Bitmap driver.

The Bitmap uses 1 byte per pixel, every pixel can have one of the 64 possible colors.
So you need 12 kByte for the bitmap data, and only 1 cog for the driver.

Andy

DogP
05-17-2010, 10:23 AM
Ariba: I think that's exactly what I was looking for! Looks like like VGA_512x384_Bitmap_Demo with higher resolution large squares.

pullmoll: I couldn't build yours... do you use something besides the Propeller Tool?

Rayman: I tried yours, but my monitor doesn't seem to support that resolution :( .

Thanks alot for the help guys... I feel lazy for getting all this great stuff hand-fed to me ;) .

Pat

pullmoll
05-17-2010, 12:46 PM
DogP said...
pullmoll: I couldn't build yours... do you use something besides the Propeller Tool?


Sorry, forgot to mention that: my code is to be compiled with BST or BSTC. See thread Brad's Spin Tool Mac/Linux/Windows IDE - Ver 0.19.3 (http://forums.parallax.com/showthread.php?p=755835) and download here: http://www.fnarfbargle.com/bst/0193/.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Pullmoll's Propeller Projects (http://pmbits.ath.cx/prop/)

DogP
05-18-2010, 02:00 PM
Thanks guys... Ariba's driver/demo is exactly what I needed, and I've already found a use for this :) . I'll post a new thread w/ details and code later tonight.

Pat