kripken / BananaBread

BananaBread is a C++ 3D game engine that runs on the web using JavaScript+WebGL+HTML
1.38k stars 346 forks source link

Cannot load textures in Chrome #41

Open jacob2512 opened 10 years ago

jacob2512 commented 10 years ago

When i try running the demo package in Chrome (31.0.1650.57 m), at localhost:xxxx/index.html, a level loads with all textures reduced to green 'No Tex' signs.

In the logs, i see many messages in the format Cannot find preloaded image xxxx.(png/jpg) game-setup.js and [STDOUT] could not load xxx.(png/jpg) game-setup.js and [STDOUT] could not read xxxx.cfg game-setup.js and warnings of the form WARNING: getProcAddress failed for xxxx game-setup.js [STDOUT] WARNING: No texture rectangle support. (no full screen shaders) rowser,

I'm guessing its an issue with Chrome, since everything works fine on Firefox (25.0.1).

Please help me in running the BB demo correctly on Chrome

slacka commented 10 years ago

I tested on both my laptop with Intel HD 4000 and desktop with a Nvidia GPU. Even with the latest Version 37.0.2005.1 canary, BananaBread is still displaying the psychedelic and green textures.

Similar errors/warnings. Here is my log:

If you don't want to see this message next time, run this JS statement:

...
[TODO: SDL_GL_SetAttribute bb.js:8832
WARNING: using emscripten GL immediate mode emulation. This is very limited in what it supports game-setup.js:157
[STDOUT] init: video: misc game-setup.js:152
[STDOUT] init: gl game-setup.js:152
[STDOUT] Renderer: WebKit WebGL (WebKit) game-setup.js:152
[STDOUT] Driver: WebGL 1.0 (OpenGL ES 2.0 Chromium) game-setup.js:152
WARNING: getProcAddress failed for glMultiTexCoord2f game-setup.js:157
WARNING: getProcAddress failed for glGetBufferSubData game-setup.js:157
[STDOUT] WARNING: No occlusion query support! (large maps may be SLOW) game-setup.js:152
WARNING: getProcAddress failed for glProgramEnvParameter4fv game-setup.js:157
[STDOUT] WARNING: No texture rectangle support. (no full screen shaders) game-setup.js:152
WARNING: getProcAddress failed for glCompressedTexImage3D game-setup.js:157
TODO: glShadeModel game-setup.js:157
[STDOUT] Rendering using the OpenGL GLSL shader path. game-setup.js:152
[STDOUT] init: console game-setup.js:152
successfully preloaded audios: 48 game-setup.js:532
[STDOUT] init: gl: effects game-setup.js:152
[STDOUT] GLSL ERROR (PROG:explosion2dsoft) game-setup.js:152
[STDOUT] Uniforms with the same name but different type/precision: depthfxparam game-setup.js:152
[STDOUT] GLSL ERROR (PROG:explosion3dsoft) game-setup.js:152
[STDOUT] Uniforms with the same name but different type/precision: depthfxparam game-setup.js:152
[STDOUT] GLSL ERROR (PROG:explosion2dsoft8) game-setup.js:152
[STDOUT] Uniforms with the same name but different type/precision: depthfxparam game-setup.js:152
[STDOUT] GLSL ERROR (PROG:explosion3dsoft8) game-setup.js:152
[STDOUT] Uniforms with the same name but different type/precision: depthfxparam game-setup.js:152
[STDOUT] GLSL ERROR (PROG:particlesoft) game-setup.js:152
[STDOUT] Uniforms with the same name but different type/precision: depthfxparam game-setup.js:152
[STDOUT] GLSL ERROR (PROG:particlesoft8) game-setup.js:152
[STDOUT] Uniforms with the same name but different type/precision: depthfxparam game-setup.js:152
main loop blocker "main3" took 1371 ms bb.js:8882
Cannot find preloaded image packages/base/zo_min.jpg game-setup.js:157
STDOUT] read map packages/base/zo_min.ogz (4.0 seconds) game-setup.js:152
[STDOUT] GLSL ERROR (PROG:bumpenvmapmodel) game-setup.js:152
[STDOUT] Uniforms with the same name but different type/precision: lightscal game-setup.js:152
Cannot find preloaded image packages/models/debris/debris04/skin.jpg game-setup.js:157
Cannot find preloaded image packages/models/debris/skin.jpg game-setup.js:157
[STDOUT] GLSL ERROR (PROG:stdmodel) game-setup.js:152
[STDOUT] Uniforms with the same name but different type/precision: lightscal game-setup.js:152
Cannot find preloaded image packages/models/debris/debris03/skin.jpg game-setup.js:157
Cannot find preloaded image packages/models/debris/debris01/skin.png game-setup.js:157
[STDOUT] GLSL ERROR (PROG:bumpmasksmodel) game-setup.js:152
[STDOUT] Uniforms with the same name but different type/precision: lightscal game-setup.js:152
[STDOUT] GLSL ERROR (PROG:masksmodel) game-setup.js:152
[STDOUT] Uniforms with the same name but different type/precision: lightscal game-setup.js:152
[STDOUT] GLSL ERROR (PROG:bumpenvspecmapparallaxworld) game-setup.js:152
[STDOUT] Uniforms with the same name but different type/precision: specscal game-setup.js:152
[STDOUT] dds requested, but failed to load: packages/gk/future/panel_gk_000/panel_gk_000_cc.dds game-setup.js:152
Cannot find preloaded image packages/gk/future/panel_gk_000/panel_gk_000_cc.png game-setup.js:157
[STDOUT] could not load texture packages/gk/future/panel_gk_000/panel_gk_000_cc.png game-setup.js:152
[STDOUT] dds requested, but failed to load: packages/gk/future/wall_plate_23_gk/wall_plate_23_gk_cc.dds game-setup.js:152
[STDOUT] dds requested, but failed to load: packages/gk/future/wall_plate_23_gk/wall_plate_23_gk_nm.dds game-setup.js:152
[STDOUT] GLSL ERROR (PROG:bumpenvspecparallaxglowworld) game-setup.js:152
[STDOUT] Uniforms with the same name but different type/precision: glowcolo game-setup.js:152
checkPageParam: windowed game-setup.js:84
svenpanne commented 10 years ago

This is a duplicate of #42 (emscripten bug, already fixed, but the demo is still outdated).