您的位置:首页 > 其它

Firefox and Chrome’s WebGL validation on windows XP

2011-10-07 11:36 225 查看

———how to get over this kind of error on windows XP: “sorry, graphic card does not support WebGL”

Windows XP has a graphic card blacklist to prevent crash caused by webGL, so we should set browser to ignore the blacklist.

Premises: windows XP; Browser version high enough to support WebGL.

1.Firefox’s way:

Firefox about:config

force-enable blocked graphics features

If you would like to forcibly enable a graphics feature that is blocked on your system, follow these instructions.Warning: do this at your own risk. There usually are good reasons why features are blocked.

To force-enable WebGL, go to about:config and set webgl.force-enabled=true.

To force-enable Layers Acceleration, go to about:config and set layers.acceleration.force-enabled=true.

On Windows Vista and Windows 7, to force-enable Direct2D Content Acceleration, go to about:config and setgfx.direct2d.force-enabled=true.

In Firefox 4 and 5 (not in Firefox 6 and newer), on X11 platforms (like Linux), the driver blacklist is implemented differently and bypassing it requires you to also define theMOZ_GLX_IGNORE_BLACKLIST environment variable. You can run Firefox
using this command line:
MOZ_GLX_IGNORE_BLACKLIST=1 firefox


https://wiki.mozilla.org/Blocklisting/Blocked_Graphics_Drivers




2.chrome’s way

(1) about:flags

try going to ‘about:flags’ url and enabling “GPU accelerated compositing” , works for me now. I remember it enabled by default when installing chrome on my old macbook pro but for some reason it is disabled by default using chrome and 2011 mbp.
http://code.google.com/p/webgl-globe/issues/detail?id=1#c6

 

(2)set start up command:

First, on Windows XP, WebGL and acceleration is blacklisted because it causes various (serious) system crashes.
http://code.google.com/p/chromium/issues/detail?id=72975
However, to enable it anyway:
1) Close any open Chrome windows
2) Find the Chrome shortcut you use (normally on the desktop or in the start menu) and right click on it.
3) Select ‘Properties’
4) Add the ’–ignore-gpu-blacklist’ flag without the quotes at the end of the ‘Target’ box
Even if you manage to enable WebGL, some graphics cards don’t support it.

You can check whether WebGL now works at: http://doesmybrowsersupportwebgl.com

https://www.google.com/support/forum/p/Chrome/thread?tid=5b89e5609bf59d98&hl=en

test link:
http://doesmybrowsersupportwebgl.com/

a mazing demo:
http://mrdoob.com/131/Clouds

references:
https://www.google.com/support/forum/p/Chrome/thread?tid=5b89e5609bf59d98&hl=en
https://wiki.mozilla.org/Blocklisting/Blocked_Graphics_Drivers
http://www.html5china.com/HTML5features/WebGL/20111005_2170.html
http://galpotha.wordpress.com/2011/03/23/webgl-in-firefox-4-and-google-chrome-10/
http://code.google.com/p/webgl-globe/issues/detail?id=1#c6
IEWebGL:  http://iewebgl.com
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息