kripken / box2d.js

Port of Box2D to JavaScript using Emscripten
1.32k stars 198 forks source link

box2d.js benchmark blank with Chrome #49

Closed slacka closed 10 years ago

slacka commented 10 years ago

I tested the box2d.js demo.html on both by laptop with an Intel HD4000 and desktop with a nvidia GPU. Both of them, showed a black screen instead of the benchmark. Tested with Version 35.0 and Version 37.0.2005.1 canary.

Joncom commented 10 years ago

Yep. I see that too. Something must have changed because there are 20+ 404 errors.

kripken commented 10 years ago

It works in firefox, so must be a webgl change in chrome. Probably to use a more recent rendering library would help. Anyone here know how to use three.js or cubicvr.js or another webgl library? (currently this uses a very old cubicvr.js)

kripken commented 10 years ago

With some help from kbr i managed to edit the shaders to all default to highp, and they work now.