A Blog From Behind the Trenches

Attack of the Bugs

Subscribe to RSS feed

Posts tagged with "webgl"

From C++ to HTML5: Rebuilding a game using open web standards

, , , ...

Remember that cool preview of WebGL demo that Opera made for the GDC?

The demo is being made by Opera Core developer Erik Möller. He has 15 years of experience in the gaming industry, and before he started at Opera, he created an indie game called Emberwind (trailer).

Since he's working for a browser company now, he decided to get a little more familiar with various web technologies. One of his first steps was to get some hands-on experience, so he decided to recreate the logo of his indie game company using SVG.

That apparently got him thinking... What could he do next?

Read more...

Microsoft tries to step on WebGL, stumbles on its own feet

, , , ...

The other day, Microsoft decided to speak out against WebGL. It's harmful to the web, they said.

To be more specific, they are worried about security.

Microsoft's position is not entirely unreasonable. There are always possible security concerns with new technologies. It is important to highlight these, and fix any problems (such as the recent WebGL vulnerability in Firefox).

But since when did a security flaw mean that we throw the entire piece of technology out? Operating systems and web browsers have been dealing with security problems for many years. It's not like this is new to Microsoft, so their criticism sounds more like FUD than anything else.

Indeed, Microsoft's criticism would sound a little less hollow if they weren't doing the exact same thing with Silverlight that they are criticizing WebGL over.

And lo and behold, a Denial of Service vulnerability in Silverlight 5 of the same type that Microsoft was overly concerned about with WebGL recently surfaced.

I'll quote the report here:

Recently Microsoft published an article about a WebGL DOS vulnerability:
http://blogs.technet.com/b/srd/archive/2011/06/16/webgl-considered-harmful.aspx

The same vulnerability exists in Silverlight 5, here's a proof of concept (warning, crashes your system)
http://people.mozilla.org/~bjacob/SilverLight5DOSJustLikeWebGL/HelloWorld3D/Bin/Debug/HelloWorld3DTestPage.html

Normally I wouldn't file a Silverlight bug report about that since this really isn't specific to Silverlight (or WebGL, or any particular 3D API), but the above-mentioned Microsoft security article suggests that Microsoft thought that it would be WebGL-specific.


Ouch.

Double ouch.

To be clear, WebGL doesn't allow you to simply pass things directly to the driver. The browser "compiles" the source before it reaches the OpenGL (or Direct3D) driver. This seems to be similar to what Silverlight is doing. Even Flash 11 will be doing these things.

So when it all comes down to it, Microsoft looked at a problem, wrote a text on it, and made it sound like it was specific to WebGL. But the problem also exists in other 3D APIs, and yet Microsoft seems to think that WebGL is "harmful to the web" while Silverlight isn't?

Even people at Microsoft do not buy it. That's how convincing their "WebGL Considered Harmful" article is.

So, Microsoft, does this mean you are going to kill 3D support in Silverlight, or does it mean you will add WebGL support to Internet Explorer?

A little consistency would be nice, you know?

How to get WebGL and hardware acceleration working

, , , ...

A few years ago, we showed off hardware acceleration support in Opera. Now the time has finally come for you to try not only that, but also our brand new WebGL implementation. Head over to the Core Concerns blog to download the Opera Labs build and post your feedback.

Since it seems that people are having some problems getting it working, I thought I would mention a few things you should keep in mind.

Read more...