Shop OBEX P1 Docs P2 Docs Learn Events
Is possible VGA resolution 1024x768 ? — Parallax Forums

Is possible VGA resolution 1024x768 ?

JLSJLS Posts: 76
edited 2010-11-15 00:14 in Propeller 1
Hi all

Is possible generate VGA resolution 1024x768 or 640x480 ?

Only for Plot or line function.

Thanks help

Comments

  • kwinnkwinn Posts: 8,697
    edited 2010-11-13 07:57
    Depends. The prop can generate video with a resolution as high as 1600 x 1200 but does not have enough memory to store a graphics image at that resolution.
  • Mike GreenMike Green Posts: 23,101
    edited 2010-11-13 08:04
    VGA 1024 x 768 is not possible for graphics because there isn't enough memory available for a bitmap. Bill Henning has a dual Prop board with external SRAM and a matching VGA driver that does 1024 x 768 in 4 colors. You might have a look at it (here). Look at his "Drivers" link.
  • JLSJLS Posts: 76
    edited 2010-11-13 10:32
    Thanks info
  • markaericmarkaeric Posts: 282
    edited 2010-11-14 17:24
    JLS wrote: »
    Hi all

    Is possible generate VGA resolution 1024x768 or 640x480 ?

    Only for Plot or line function.

    Thanks help


    I've been thinking about this a bit lately. Depending on the length, and the number of lines/plots you need, you may be able to use a sort of bitmap/tile driver hybrid.

    I've been thinking about stripping the graphics object down to just the line function, and draw to a temp buffer in the graphics cog - as long as the line size is short enough to fit in said buffer. If you're working with a fixed line length, you can determine the maximum amount of 16x16 tiles that would be necessary to contain the line bitmap, and allocate the appropriate space in the hub. The graphics object would copy only the non-zero tiles, and update the tile map accordingly. As long as you limit maximum number of lines, and their length to not exceed your hub ram bitmap buffer, I don't see why 1024x768 shouldn't be possible.
  • RossHRossH Posts: 5,519
    edited 2010-11-14 19:17
    JLS wrote: »
    Hi all

    Is possible generate VGA resolution 1024x768 or 640x480 ?

    Only for Plot or line function.

    Thanks help

    Perfectly possible - I wrote a video driver for the Prop to simulate a vector graphic display, which I used in a a couple of Hydra games - it can do various VGA resolutions up to 1152x864 (2 colors) or 800x600 (4 colors). It's available here. It has a SPIN interface that is largely code-compatible with the normal Parallax graphics object.

    The only limitation is that at the higher resolution you can't draw very many lines on the screen at one time - exactly how many depends on the resolution you choose, and also how much RAM you allocate to the driver.

    One day I plan to dust this driver off and use it again - if I ever get enough time :)

    Ross.
  • Invent-O-DocInvent-O-Doc Posts: 768
    edited 2010-11-14 19:37
    Your vector driver sounds very interesting! Will check it out.
  • markaericmarkaeric Posts: 282
    edited 2010-11-14 20:48
    @Ross

    Very cool! How come you never submitted it to the obex?
  • RossHRossH Posts: 5,519
    edited 2010-11-14 20:51
    Hi markaeric

    I guess I never regarded it as "finished". I always wanted to do more with it, but have been unable to find the time.

    Maybe I should just package it up "as is" and submit it.

    Ross.
  • JLSJLS Posts: 76
    edited 2010-11-15 00:14
    Hi Ross

    Many thanks this usefull info.

    Today test it :-)
Sign In or Register to comment.