There’s only one way I can see this working: Develop a plugin for
Firefox, using C / C++, that would operate very similar to the way the
Flash plugin works. Your plugin would have a Ruby interpreter embedded
in it, and support OpenGL rendering onto the space provided for it by
the browser. Your plugin would run a Ruby/OpenGL script the same way the
Flash plugin runs .SWF files.
While this would be a really cool plugin (and I’d definitely use it if
it already existed), I think most people decide just to use one of the
existing alternatives (Flash, Shockwave, SVG, or the nifty new Canvas)
once they see the amount of work involved. Plus, these’s the drawback of
requiring people to install your plugin before your web page will render
correctly – that’s so dot-com!