Shop OBEX P1 Docs P2 Docs Learn Events
OpenGL Propeller Graphics — Parallax Forums

OpenGL Propeller Graphics

Aaron193Aaron193 Posts: 27
edited 2009-08-06 19:11 in Propeller 1
Just out of curiosity (and a bit of laziness), has anyone attempted to, or succeeded in creating an OpenGL/3D rendering environment for the Propeller? (Using a TV or VGA Monitor, of course).

Aaron.

Comments

  • ericballericball Posts: 774
    edited 2009-08-06 17:20
    For those interested in such a project,·http://oss.sgi.com/projects/ogl-sample/index.html·is probably a good starting point (although the license is not the same as the one used for ObEx).· I have no idea whether it is feasible to include the code in the limited RAM of the Propeller.


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Composite NTSC sprite driver: Forum
    NTSC & PAL driver templates: ObEx Forum
    OnePinTVText driver: ObEx Forum
  • Bill HenningBill Henning Posts: 6,445
    edited 2009-08-06 17:25
    Far too limited resources on a stock propeller setup - 512x384 two color graphics sucks up 24KB of 32KB hub memory

    Now if someone had a lot of time, after i get a few more graphics drivers written for Morpheus, it should be doable - if slow.
    Aaron193 said...
    Just out of curiosity (and a bit of laziness), has anyone attempted to, or succeeded in creating an OpenGL/3D rendering environment for the Propeller? (Using a TV or VGA Monitor, of course).

    Aaron.
    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Please use mikronauts _at_ gmail _dot_ com to contact me off-forum, my PM is almost totally full
    Morpheus & Mem+ Advanced dual Propeller SBC with XMM and 256 Color VGA - PCB, kit, A&T available NOW!
    www.mikronauts.com - my site 6.250MHz custom Crystals for running Propellers at 100MHz
    Las - Large model assembler for the Propeller Largos - a feature full nano operating system for the Propeller
  • StefanL38StefanL38 Posts: 2,292
    edited 2009-08-06 17:28
    I do not know how much memory a PC renedering engine needs. Did you compare this amount of memory to the 32kB inside the propeller ?
  • Aaron193Aaron193 Posts: 27
    edited 2009-08-06 17:29
    Not really...in fact, I didn't know it needed quite so much.
  • Bill HenningBill Henning Posts: 6,445
    edited 2009-08-06 17:58
    the memory requirements for any graphics mode are easy to calculate as follows:

    (X axis resolution) * (Y axis resolution) * (Bits per pixel) / 8 = bytes needed for one frame buffer
    Aaron193 said...
    Not really...in fact, I didn't know it needed quite so much.
    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Please use mikronauts _at_ gmail _dot_ com to contact me off-forum, my PM is almost totally full
    Morpheus & Mem+ Advanced dual Propeller SBC with XMM and 256 Color VGA - PCB, kit, A&T available NOW!
    www.mikronauts.com - my site 6.250MHz custom Crystals for running Propellers at 100MHz
    Las - Large model assembler for the Propeller Largos - a feature full nano operating system for the Propeller
  • potatoheadpotatohead Posts: 10,261
    edited 2009-08-06 18:36
    The frame buffer is only the primary memory element.

    Really, the larger memory and compute consumption comes from the geometry, lighting, transform and texture data required for projection onto the frame buffer. For any kind of real time interaction, a lot of memory beyond the frame buffer is required, along with significant compute.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Propeller Wiki: Share the coolness!
    Chat in real time with other Propellerheads on IRC #propeller @ freenode.net
    Safety Tip: Life is as good as YOU think it is!
  • waltcwaltc Posts: 158
    edited 2009-08-06 18:57
    Open GL ES(for embedded systems) might be a better port since its a nice subset and even was ported to the Amiga. Still from the looks of it you better have hardware accelerated graphics to make it work well.
  • Bill HenningBill Henning Posts: 6,445
    edited 2009-08-06 19:09
    Totally agree - however I think he needed the formula to calculate the size of a frame buffer [noparse]:)[/noparse]
    potatohead said...
    The frame buffer is only the primary memory element.

    Really, the larger memory and compute consumption comes from the geometry, lighting, transform and texture data required for projection onto the frame buffer. For any kind of real time interaction, a lot of memory beyond the frame buffer is required, along with significant compute.
    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Please use mikronauts _at_ gmail _dot_ com to contact me off-forum, my PM is almost totally full
    Morpheus & Mem+ Advanced dual Propeller SBC with XMM and 256 Color VGA - PCB, kit, A&T available NOW!
    www.mikronauts.com - my site 6.250MHz custom Crystals for running Propellers at 100MHz
    Las - Large model assembler for the Propeller Largos - a feature full nano operating system for the Propeller
  • Bill HenningBill Henning Posts: 6,445
    edited 2009-08-06 19:11
    I am not planning to port any version precisely since I don't think it will be fast enough with a reasonable number of triangles - but if someone wants to try, once I get some 256 color per pixel drivers running and Catalina is ported it should be possible. Mind you, it might only get 1fps (or less) at 256x192 256 color mode with very few triangles.
    waltc said...
    Open GL ES(for embedded systems) might be a better port since its a nice subset and even was ported to the Amiga. Still from the looks of it you better have hardware accelerated graphics to make it work well.
    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Please use mikronauts _at_ gmail _dot_ com to contact me off-forum, my PM is almost totally full
    Morpheus & Mem+ Advanced dual Propeller SBC with XMM and 256 Color VGA - PCB, kit, A&T available NOW!
    www.mikronauts.com - my site 6.250MHz custom Crystals for running Propellers at 100MHz
    Las - Large model assembler for the Propeller Largos - a feature full nano operating system for the Propeller
Sign In or Register to comment.