bevy-website icon indicating copy to clipboard operation
bevy-website copied to clipboard

Examples WebGPU: Some examples fail due to missing assets.

Open marlyx opened this issue 2 years ago • 3 comments
trafficstars

Some examples on the "Bevy Examples in WebGPU" page fail due to failed asset loading. (404 on fetch).

Relevant system information:

  • Browser: Chrome 113.0.5672.126 (Official Build) (arm64)
  • Computer: MacBookPro18,1 (Apple M1 Pro), macOS 13.4 (22F66)

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

marlyx avatar May 23 '23 09:05 marlyx

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.

marlyx avatar May 23 '23 13:05 marlyx

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

mockersf avatar May 23 '23 14:05 mockersf

should be fixed now. Two of them still fail but for other reasons: custom-gltf-vertex-attribute and scene-viewer

mockersf avatar Jul 10 '23 19:07 mockersf