Shop OBEX P1 Docs P2 Docs Learn Events
Summary of graphics modes? — Parallax Forums

Summary of graphics modes?

microTinkermicroTinker Posts: 4
edited 2006-10-24 22:40 in Propeller 1
Would someone summarize the possible graphics modes that the propeller can drive? What bit depths are possible?

Are they all memory-based? Given the limited memory of the propeller, the possible resolution must be severely limited. For example, 640x480x8 would require 307,200 bytes.

However, I would guess you could play timing tricks as well to avoid memory usage. For example, you could draw a horizontal line by making the signal "high" when scanning the desired line. Do any of the libraries use this kind of method to overcome memory limitations?

--Gary

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2006-10-24 21:38
    There exist drivers for TV (NTSC and PAL), low resolution VGA, and text-only high resolution VGA (up to 1024 x 768).

    The TV and lores VGA drivers are similar and use a bitmap based on "tiles" with a display roughly 40 x 12 or 32 x 15 tiles. In text mode, each tile corresponds to a character cell. In graphics mode, each tile contains 16 x 16 pixels or 32 x 16 pixels depending on a configuration flag. Pixels are 2 bits (4 colors) and the 4 colors for each tile are separately specifiable.

    The high resolution VGA text display is different and provides for a separate foreground and background color for each row only with the sign bit of the character indicating that the colors should be swapped.

    There is a separate medium resolution VGA graphics driver for a 512 x 384 pixel display done at 1024 x 768 display resolution because of memory limitations.

    The Hydra is in production and should be available in the next month or so and is intended as a video game engine. The manual that comes with it is full of examples and code libraries for doing video generation "on the fly" using multiple cogs to build successive video lines to avoid memory limitations with complex VGA graphics.

    Some of the video limitations are due to bandwidth limitations of the video hardware itself and some are due to memory limitations. The former cannot be overcome without a different design for the Propeller chip itself. The latter can be partially overcome as demonstrated by the Hydra software by devoting multiple cogs (and their local memory) to video generation.
  • Graham StablerGraham Stabler Posts: 2,507
    edited 2006-10-24 22:40
    Thanks Mike, I also found that really helpful. I've not done much in the way of graphics and I'm never quite sur what is possible in each of the modes.

    Graham
Sign In or Register to comment.