Ce site disposera de fonctionnalités limitées pendant que nous effectuons des opérations de maintenance en vue de vous proposer un meilleur service. Si un article ne règle pas votre problème et que vous souhaitez poser une question, notre communauté d’assistance est prête à vous répondre via @FirefoxSupport sur Twitter, et /r/firefox sur Reddit.

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

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

  • 4 réponses
  • 16 ont ce problème
  • 2 vues
  • Dernière réponse par 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.

Toutes les réponses (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

Modifié le par 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.