Check out my
new book!
HTML5 Games book
WebGL and HTML5 audio fixes A couple of updates and fixes to some of my earlier WebGL and HTML5 audio experiments which have stopped working since I first put them online.

First up is the musical solar system which went and got horribly broken due to changes in the WebGL spec. I published it when the WebGL implementations were still very much evolving and changes were happening almost faster than you adapt to them.Now with the spec having reached a more mature level, things have slowed down and the implementations are almost in agreement so browser-specific workarounds aren't so necessary. So anyway, after a few tweaks here and there, the planets should once again be dancing. Check it out.

Next up, Worlds of WebGL which had suffered pretty much the same fate. I'd already updated it once to accommodate some of the spec changes and now it should be fully working again.

However... In both WebGL projects, I had to reintroduce some code I had previously taken out because it was causing problems for some Mac users (iirc). So if you experience any problems with either experiment, please let me know. In particular, the affected parts would be the sun in the solar system and all the particles/planets in Worlds of WebGL.

Finally, my HTML5 audio project Pocket Full of HTML5 had lost its support of the new HTML5 audio data api, so it used the SoundManager2 fallback even when using a audio-data-enabled Firefox build. Again, the problem was due to changes in the API, which is still very early in its development, but fortunately the necessary changes were few and simple and Yury Delendik even provided me with a patch (thanks Yuri!). So check that out too.

⇓ 18 comments Anonymous

Some of your links are broken. Not so broken that a chimp like me can't fix them in the address bar... but still... thought I'd mention it.

September 23, 2010 at 1:39 AM
Jacob Seidelin

Oops! Fixed. Thanks!

September 23, 2010 at 1:43 AM

Still broken for me in Chromium head

September 23, 2010 at 9:09 AM
Jacob Seidelin

What is broken and do you get any errors?

September 23, 2010 at 9:15 AM

Howdie Jacob, here's the error found using the OSX Chromium distribution on the Worlds of WebGL demo:

ERROR: 0:15: 'gl_PointCoord' : undeclared identifier
ERROR: 0:15: 'xy' : field selection requires structure or vector on left hand side

Glad to see you keeping these demos up to date =)

September 23, 2010 at 10:05 AM
Jacob Seidelin

Thanks Michael! Just got the same error report from someone else. Looking in to.

September 23, 2010 at 10:13 AM

The error I get is "shader setup failed" in the musical solar system.

For worlds of webgl, I get:
"Shader setup succeeded [planets]
Shader setup failed [solid-color]
C:\Users\pjulien\bin\chrome-win32\memory(44,5): error X3004: undeclared identifier 'gl_main'"

September 24, 2010 at 9:58 AM
Jacob Seidelin

Hmm, that looks like a Chromium bug. Is that on the latest build?

September 24, 2010 at 10:02 AM
Jacob Seidelin

Also, could I get you to try renaming or moving the libEGL.dll and libGLESv2.dll files in your chrome-win32 folder, then restart chromium and see if that makes any difference?

September 24, 2010 at 10:21 AM

With 60515, Worlds of webgl loads again but when you zoom in close, the "earth" dots that make up the animation are just blue-ish squares now.

Musical solar system still fails to load with the same error.

If I move out the DLL's, I can get a black screen after waiting for a very long time for this thing to load.

September 24, 2010 at 4:10 PM
Jacob Seidelin

Ok, well that's almost the same as what I get with the latest Chromium builds (ie. blue-ish squares), except moving those dll's fixes the problem. For me, the problem is only in the Chromium builds and Chrome Canary, though. Regular Chrome just works for me.

September 24, 2010 at 4:29 PM
Jacob Seidelin

And thanks for testing. I appreciate it.

September 24, 2010 at 4:30 PM

yeah, this does work with chrome 6 with --enable-webgl, the trunk no longer works however.

September 24, 2010 at 4:34 PM
Jacob Seidelin

Ok, great. Good to know. I'll see if I can figure out what has changed. Thanks.

September 24, 2010 at 4:36 PM
divx torrents

HTML5 audio project Pocket Full of HTML5 had lost its support of the new HTML5 audio data api, so it used the SoundManager2 fallback even when using a audio-data-enabled Firefox build.

November 25, 2010 at 7:38 AM
Daniel Smith

Chrome 10.0.633.0 (70763) on Windows runs all but audio just fine.

Also chrome users use the "about:flags" page over actual flags in your shortcuts.

January 7, 2011 at 1:27 PM
mario games

I program myself some proyects but man, i find it impossible to do the things in these proyects. this year hopefully we will be working with computer programming and graphics and someday try to do some of these things you post.

Keep it up

March 9, 2011 at 2:31 PM
unnati silk

Really great...great to it online...

Online shopping for sarees and salwars

July 8, 2013 at 3:47 AM
Post a Comment