WebGL now seems to be mature enough to add support in jsc. This would mean you could develop your WebGL applications in C#, Visual Basic or F#. The trick is to get it working on my machine. It seems my graphics card does not support OpenGL ES 2.
TypeError: Object #<a WebGLRenderingContext> has no method 'getShaderi'
Running dxdiag tells me that my Video card Chip Type is ATI Radeon Xpress 1200 Series.
The last time I updated Video card drivers on my machine there were some serious issues due to the fact the application had some issues with the .net framework. As a developer I have all versions of it and it caused problems.
While searching around I found GPU Caps Viewer.
As I can see I have GLSL Version 1.2 – not good.
[…] many common Intel graphics cards doesn’t have OpenGL drivers
[khronos] I’ve found that Firefox needs at least OpenGL 2.0 support on the graphics card’s driver, otherwise it will fail over to using MESA if it knows where to find the library. I usedhttp://www.realtech-vr.com/glview/ to find out what version of OpenGL the driver supported, though there may well be better ways.
Maybe I should try the MESA software rendering with Minefield?
To launch a new proccess:
you need to tell Firefox where to find:
open up about:config, and set the preference
webgl.osmesalib to the path of OSMESA32.DLL
Are we done? No.
Error: gl.getShaderi is not a function
Error: gl.getShaderi is not a functionSource File: http://people.mozilla.com/~vladimir/webgl/spore/sporeview.jsLine: 31
Are we done? Yes.
Software rendering seems to be very slow. The Minfield (almost) locks up.
So what else works?
- Animated Cube
- Lesson 1
- Lesson 2
- Lesson 3 – rotating, cool :D
- Lesson 4 – rotating mesh, a little slower
- Lesson 5 – rotating textured cube, quite slow
- Lesson 6 – user rotated textured cube, rather slow
- Lesson 7 – with light
- Lesson 8 – transparent cube, very slow
- Lesson 9 – moving objects
- Lesson 10 – nano doom, too slow
- Lesson 11 – sphere, too slow
- Lesson 12 – rotating sphere with light – a little slow
- Lesson 13 – too slow
- Lesson 14 – teapot model, nice :)
- Lesson 15 – rotating earth, too slow
Should jsc also support converting (C#, F#) IL to HLSL “x-shader/x-fragment“?
OpenGL ES 2.0 is not supported on lots of common hardware. That means
there are a lot of machines that will not be able to run WebGL.
graph, is going to have serious problems drawing more than a few pieces of
geometry at 60hz except in very special cases or on very fast machines