Skip to content
View sgi-demos's full-sized avatar
♾️
♾️
Block or Report

Block or report sgi-demos

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
sgi-demos/README.md

SGI demos from long ago, running in your browser today.

Old problems require modern solutions.

This is the original SGI demo source code, compiled for the web using Emscripten and SDL2. Rendering is done using an IRIS GL software rasterizer from the Alice 4 project. Event handling is done by SDL2, with events translated into GL's event system. Each demo is a separate web page, with its own Javascript + WASM compiled by Emscripten from the original C/C++ source. Minimal modifications have been made to the original source, in order to run in the browser and to work with compilers 35 years newer.

Working demos:

Work in progress demos:

  • Flight (cockpit glitches, planes too slow in web version, night mode 'shimmers', no network play)
  • Newave (no mesh editing, no popup menus, only wireframe)
  • Arena (no network play)

Next up:

  • Electropaint, Cedit, any other IRIS GL demos I can find

To do:

  • Arbitrary window size
  • Triangle rendering via OpenGLES/WebGL
  • Popup menus
  • Rudimentary context for each demo: name, author, year (as text in lower corner), code link
  • Virtual mouse and keyboard:
    • Only display virtual keys and mouse functions used by the demo; use demo's qdevice() calls to determine this
    • Displayed as transparent virtual mouse and key pictures overlaid on demo
    • On always for touch devices
    • On/off for mouse/keyboard devices, as hints
  • More demos, all the demos. WIP: IRIS GL, TBD: OpenGL, GLUT, Inventor, Performer
  • Run GL demo in its own WASM worker, to avoid slicing up the code for SDL's event loop
  • Description/history/context for each demo - can obtain some descriptions from .Info slide files
  • Man pages

Credits:

Pinned

  1. sgi-demos sgi-demos Public

    SGI demos from long ago, running in your browser today.

    C 12 3

  2. sgi-demos.github.io sgi-demos.github.io Public

    https://sgi-demos.github.io

    HTML 1 1