Open marlyx opened 1 year ago
Did some more investigation into this and the problem seems to come from assets are only extracted in the generator script for the WebGL2 examples (generate_wasm_examples.sh) and then expected to be available by the webgpu generator script (generate_wasm_examples-webgpu.sh). But these two scripts use different bevy versions as their source "latest" vs "main".
So when an example is new enough to only exist in main or have changed in main its assets will not be available on the website.
yup, you're right. The website is mostly about Bevy latest
branch, except for the WebGPU example page that is built from the main
branch for now, but will be built from the latest
branch after next release... I guess we could copy assets from the main branch for now even for WebGL2 examples, they should still work
should be fixed now. Two of them still fail but for other reasons: custom-gltf-vertex-attribute and scene-viewer
Some examples on the "Bevy Examples in WebGPU" page fail due to failed asset loading. (404 on fetch).
Relevant system information:
I have checked all examples on the page and currently these fail due to 404 errors:
https://bevyengine.org/examples-webgpu/2D%20Rendering/custom-gltf-vertex-attribute/ Fetchcustom_gltf_2d.wgsl Fetchbarycentric.gltf
https://bevyengine.org/examples-webgpu/3D%20Rendering/parallax-mapping/ Fetchcube_normal.png Fetchcube_color.png Fetchcube_depth.png
https://bevyengine.org/examples-webgpu/Shaders/post-processing/ post_processing.wgsl
https://bevyengine.org/examples-webgpu/Tools/scene-viewer/ FlightHelmet.gltf