搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

WebGL programs using textures are not visible on FF4 RC1 on Samsung Galaxy Tab

  • 4 个回答
  • 16 人有此问题
  • 1 次查看
  • 最后回复者为 Juriy

more options

I am unable to view any WebGL sites which use textures on Firefox 4 RC on the Samsung Galaxy Tab.

An example is <http://learningwebgl.com/lessons/lesson05/index.html>. WebGL lessons till lesson 4 work on the tablet, but not this one or any other lesson which uses textures.

I am unable to view any WebGL sites which use textures on Firefox 4 RC on the Samsung Galaxy Tab. An example is <http://learningwebgl.com/lessons/lesson05/index.html>. WebGL lessons till lesson 4 work on the tablet, but not this one or any other lesson which uses textures.

所有回复 (4)

more options

Yeah, I've seen this problem too, I've even made a minimal test case: http://people.mozilla.org/~bjacob/webgltexture/

No clue though :-( it works on other phones.

more options

I have tried the same example in Galaxy S and Nexus S with FF4 release, experiencing the same problem - the textured scene looks blank.

What phones have you tried that worked fine with textures? Has anybody tried XOOM with FF4 & WebGL?

UPDATE: also tried fennec build on Win7 - the same story (I had to set forceWebGL though, it is probably related to the old version of my graphic driver)

UPDATE 2: the animation is actually running, but the texture is rendered black, if you change the clear color to white, you'll see it

由Juriy于修改

more options

Webgl is not supported on Mobile devices. There is an open bug that we are looking to get fixed after the release of Firefox Mobile 5.

more options

I have found the workaround for this bug: when you use the

gl.texImage2D(...);

with the image as the last parameter it throws some sort of exception that looks quite useless for the JavaScript developer.

So here is the workaround. You can create another Canvas element on the page and render the texture on it's 2d context. Then pass the canvas element (not the context) as the last parameter to texImage2D - it will work just fine.

I'm making a small showcase on my blog I'll post the link here, but it should be pretty obvious how to deal with the problem. The solution was tested on Galaxy S and Nexus S.