Tag Archives: firefox

WebGL in Firefox 4 and Google Chrome 10

If you are experimenting with WebGL, with a non-nVidia based graphics chip like Intel or AMD/ATI, you may have noticed it no longer works after an update to Google Chrome 10. Even in Firefox 4 with its much awaited WebGL support, things are not working well.
WebGL makes use of OpenGL to render 3D graphics in the web browser. Seems OpenGL and drivers are “disastrously buggy” that both Chrome and Firefox have decided to blacklist certain graphic cards. If you are feeling brave and want to bypass these restrictions, here’s how to go ahead..

DISCLAIMER:
DO this at your own risk. Engineers at Google and Mozilla must have very important reasons to block these and cripple 3D support in the browser like this for many users, considering the awesomeness of WebGL

In Google Chrome

You just have to run it with ‘–ignore-gpu-blacklist’ startup switch.
At the terminal use the command

google chrome --ignore-gpu-blacklist

In Mozilla Firefox

If you are using an Intel graphics card, you might have to install OSMesa first, which is a software implementation for OpenGL which enables off-screen rendering. You’ll find the package as ‘libosmesa6-dev’ in Synaptic Package Manager or try the old school method

sudo apt-get install libosmesa6-dev

Then run the following command to run Firefox, bypassing the blacklist.

MOZ_GLX_IGNORE_BLACKLIST=1 firefox

Goto about:config and search for following parameters and make sure they are set as below.

webgl.disabled:false
webgl.force-enabled:false
webgl.force_osmesa:false
webgl.osmesalib:/usr/lib/libOSMesa.so
webgl.prefer-native-gl:false
webgl.shader_validator:true
webgl.verbose:false

To check whether its working properly Goto a page like Google Body Browser or examples like this at Learning WebGL. To know more about your graphic card in Ubuntu try the following commands.

inxi -G
lshw -C video
glxinfo | grep render

Here are some more related resources:
Learning WebGL http://learningwebgl.com/blog/
Planet WebGL http://www.planet-webgl.org/
WebGL on Intel cards http://www.guciek.net/en/js/webgl_intel
Awesomeness of WebGL http://www.slideshare.net/evilhackerdude/webgl-awesomeness
WebGL @ Mozilla Developer Documentation https://developer.mozilla.org/en/WebGL
News Story at OSNews http://www.osnews.com/story/24264/No_Hardware_Acceleration_Firefox_for_Linu

Idiot’s two step guide for a cleaner facebook

http://bokardo.com/images/comics/facebook-01.gifYeah.. It’s coming to a crazy peak these days! How will this guy marry? How will that gal die? What Spongebob character are you? What flavor of pie are your neighbor? Do we care? It seems.. Yes. When I saw the clean, organized, pretty fb interface getting cluttered by hundreds of these crap – quizzes day by day, I sometimes wondered what’s wrong with these people. Facebook was turning into another hi5,tagged or mySpace for me.Then came…. the greasemonkey to the rescue.

  1. In Firefox  install the Greasemonkey add-on. Then you will see a small monkey face at the right bottom corner of your browser window.Unlike other firefox addons which does one particular thing, Greasemonkey extension lets you add so called ‘user scripts’ which can change behavior of a web page. In the next step we are going to try one such user script.fb2
  2. Click here to Install the Facebook Purity GreaseMonkey script. Go to facebook home and notice the difference. The script puts a little message in the top right hand corner of your page saying how many apps were blocked.

Gone are the days, that we kept blocking them and they were born next day with a different name again, again and again like a monster in a movie of the twentieth century. I have my neat facebook home page back again.

PS:

You can experiment with more and more GreaseMonkey Scripts to make your surfing easier, cleaner and effective. My favourite is IMDB pirated version. But try to avoid scripts which are not from userscripts.org.

If you are someone who is madly in love with these quizzes, I’m really sorry for killing off your enjoyment (and ultimate source of future predictions) ;-). I never thought this will make it to a new blog post, but the sad status messages, and angry blog posts like this and this,all over the web, made me do this.

If you are using Chrome instead of Firefox, try GreaseMetal

The clean facebook

Image Credit: Joshua Porter