Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running three.js on chrome mobile

I have been developing a three.js HTML5 application so far making use of webGL for rendering. The application works fine on the pc but when I tried testing on my mobile which is an Xperia J running Chrome version 28.0.1500.94. I have enabled webGL rendering and webRTC on chrome as well, however all I get is a black screen although Chrome prompts to make use of the webcam. I have also tried to run this sample with no luck. My queries are:

  1. Can we run webGL rendering on Android with three.js.
  2. If so, what are the steps to get it running.
like image 556
Sabry Avatar asked Oct 04 '22 11:10

Sabry


1 Answers

I believe that you should only need to enable WebGL in chrome flags and make sure you hit the restart button within the flags page.

Just tested Paul Lewes Undulating monkey demo and everything works for me on stable: http://lab.aerotwist.com/webgl/undulating-monkey/

My suggestion is to check out the developer tools to see what is going on: https://developers.google.com/chrome-developer-tools/docs/remote-debugging

like image 174
Matt Gaunt Avatar answered Oct 07 '22 02:10

Matt Gaunt