I need a VGA 512x384 / 4 color tile driver compatible with graphics.spin
Marc Gebauer
Posts: 60
I completed a project using the tv.spin and graphics.spin.·But now I have to convert it to VGA. Has anyone developed or is developing a VGA 512x384 / 4 color·tile driver compatible with graphics.spin.
Along the lines of·Chip's VGA_1024x768_4-Color_Tile_Driver.
If there is'nt any driver available or in the works, I would appreciate·any information on how to modify·an exsisting driver in order to·make one. Thanks.
On a side note and as a suggestion for people who need more memory for their video graphics application, I· sacrificed 4 columns of tiles,·the left and right edges of the screen, by·using only a 12x12 tile array. This gives me·a centered square image and·has dropped my memory usage for the display/bitmap base from $3000/$3000 to $2400/$2400.
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Post Edited (Marc Gebauer) : 1/12/2007 5:17:46 PM GMT
Along the lines of·Chip's VGA_1024x768_4-Color_Tile_Driver.
If there is'nt any driver available or in the works, I would appreciate·any information on how to modify·an exsisting driver in order to·make one. Thanks.
On a side note and as a suggestion for people who need more memory for their video graphics application, I· sacrificed 4 columns of tiles,·the left and right edges of the screen, by·using only a 12x12 tile array. This gives me·a centered square image and·has dropped my memory usage for the display/bitmap base from $3000/$3000 to $2400/$2400.
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Post Edited (Marc Gebauer) : 1/12/2007 5:17:46 PM GMT
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The display is 64 tiles by 48 tiles (all 16 x 16 pixels) and 64 increments takes only 4 vertical tiles to do if you crowd it. If you want to spread it out, use 16 tiles by 2 wide and still have room. Since you're doing a bar, you can use the same tile for both columns (the tile word is a pointer!) Since you'd be using only 4 different tiles for the bars, that would save even more memory.
Mike
just use pointers to different scan lines to point to the bitmaps.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My question is...
Can someone explain how I assign which of the 4 possible palette colors available are active when I set or clear my display memory bits. The VGA drivers explaination does'nt seem to cover this. So far I find that %%RGBx(3) is active for the set bits and %%RGBx(0) for the cleared bits.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
By the way, you may not need to sync your changes to the sync flag. The sliders probably move slowly enough so the changes from frame to frame are small and may not be noticed.
Post Edited (Mike Green) : 1/14/2007 9:18:59 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Post Edited (Marc Gebauer) : 1/15/2007 2:00:15 AM GMT
P.S. - FYI, I can move my faders without any display problems just by updating the display memory and it looks like I'll be using almost half the memory than the Graphics/TV.spin version of my project. And get 1024x768 resolution to boot! What a deal.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Post Edited (Marc Gebauer) : 1/15/2007 5:16:24 AM GMT