Closed JerryI closed 2 months ago
I'll probably need some help digging into what these errors mean and what might be causing it if you'd like to take a look. cc @robertoranon since you were looking into some floating point texture mismatches.
The project is also going through a pretty big rework at the moment so it's likely we'll need to retest some of these platforms once it's finished.
sure, happy to help and make tests! This however actually works for me on both Safari 17.4 and Chrome 123.0.6312.59, while on Firefox I get the same issue reported on the top. Macbook PRO M1 Max.
But I get the same problem with Firefox also on index.html and other examples ... @JerryI which examples do you see working on Firefox? And I also did a quick test of all examples on Safari/Chrome and they all seem to be working.
sure, happy to help and make tests! ... I get the same problem with Firefox also on index.html and other examples ... @JerryI which examples do you see working on Firefox?
Thanks! From the warnings it looks like it's more half float / float texture incompatibility? Maybe we need to check for more extensions? Not immediately clear to me.
Ok, it turned out to have a more general issue. Not only dynamics
Safari ✅
Firefox ❌
console output
This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”.
[index.html](https://gkjohnson.github.io/three-gpu-pathtracer/example/bundle/index.html)
THREE.WebGLProgram: Program Info Log: WARNING: Output of vertex shader 'webgl_37cc066937ccaa46' not read by fragment shader [three.module.js:20290:12](https://gkjohnson.github.io/three-gpu-pathtracer/example/bundle/node_modules/three/build/three.module.js)
WebGL warning: texSubImage: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads.
WebGL warning: readPixels: Format and type RGBA/HALF_FLOAT incompatible with this RGBA16F attachment. This framebuffer requires either RGBA/FLOAT or getParameter(IMPLEMENTATION_COLOR_READ_FORMAT/_TYPE) RGBA/FLOAT.
Safari ✅
Firefox ❌
console output
This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”.
[lego.html](https://gkjohnson.github.io/three-gpu-pathtracer/example/bundle/lego.html)
THREE.WebGLProgram: Program Info Log: WARNING: Output of vertex shader 'webgl_37cc066937ccaa46' not read by fragment shader [three.module.js:20290:12](https://gkjohnson.github.io/three-gpu-pathtracer/example/bundle/node_modules/three/build/three.module.js)
WebGL warning: generateMipmap: Tex image TEXTURE_2D level 0 is incurring lazy initialization.
WebGL warning: texSubImage: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads.
WebGL warning: readPixels: Format and type RGBA/HALF_FLOAT incompatible with this RGBA16F attachment. This framebuffer requires either RGBA/FLOAT or getParameter(IMPLEMENTATION_COLOR_READ_FORMAT/_TYPE) RGBA/FLOAT.
WebGL warning: generateMipmap: Tex image TEXTURE_2D level 0 is incurring lazy initialization.
Safari ✅
Firefox ❌
Models are missing
console
This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”.
[depthOfField.html](https://gkjohnson.github.io/three-gpu-pathtracer/example/bundle/depthOfField.html)
THREE.WebGLProgram: Program Info Log: WARNING: Output of vertex shader 'webgl_37cc066937ccaa46' not read by fragment shader [three.module.js:20290:12](https://gkjohnson.github.io/three-gpu-pathtracer/example/bundle/node_modules/three/build/three.module.js)
WebGL warning: texSubImage: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads.
WebGL warning: readPixels: Format and type RGBA/HALF_FLOAT incompatible with this RGBA16F attachment. This framebuffer requires either RGBA/FLOAT or getParameter(IMPLEMENTATION_COLOR_READ_FORMAT/_TYPE) RGBA/FLOAT.
Safari ✅ Looks like if it works
JS console is empty
Firefox ❌ Black screen
console output
This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”.
[skinnedMesh.html](https://gkjohnson.github.io/three-gpu-pathtracer/example/bundle/skinnedMesh.html)
THREE.WebGLProgram: Program Info Log: WARNING: Output of vertex shader 'webgl_37cc066937ccaa46' not read by fragment shader [three.module.js:20290:12](https://gkjohnson.github.io/three-gpu-pathtracer/example/bundle/node_modules/three/build/three.module.js)
WebGL warning: texSubImage: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads.
WebGL warning: readPixels: Format and type RGBA/HALF_FLOAT incompatible with this RGBA16F attachment. This framebuffer requires either RGBA/FLOAT or getParameter(IMPLEMENTATION_COLOR_READ_FORMAT/_TYPE) RGBA/FLOAT.
WebGL warning: drawArraysInstanced: Using format enabled by implicitly enabled extension: EXT_float_blend. For maximal portability enable it explicitly. 30
After reporting 32, no further warnings will be reported for this WebGL context.
Safari works ✅
Firefox black ❌
Can you check if these extensions are supported in the problem browser:
OES_texture_float_linear
EXT_color_buffer_half_float
EXT_color_buffer_float
EXT_float_blend
You can see if they're listed on this site:
The project refactoring is also just about done so it should be easier to take a look at what might be going on without everything changing.
sure WebGL Report.pdf
This should be fixed now in #623. It seems that firefox does not support reading half float data back from the GPU.
Describe the bug
It seems that Dynamic scene generation is not working on Mac M1/M2 & Safari, Firefox
Skinned Geometry
It is almost black (there is still some profile of a dinosaur visible ), while in the console
Expected behavior
A walking dinosaur
Extra
Also once I tried to change in my project from
PathTracingSceneGenerator
to dynamic, however, it immediately generates an errorAbout 1-2 years ago with a legacy version of Three.js and your library it did work great
Platform: