Coder Social home page Coder Social logo

Comments (1)

rparrett avatar rparrett commented on May 26, 2024 1

The example doesn't even seem to compile for wasm

error[E0063]: missing field `_webgl2_padding` in initializer of `bevy::bevy_core_pipeline::motion_blur::MotionBlur`
  --> examples/3d/motion_blur.rs:24:26
   |
24 |             motion_blur: MotionBlur {
   |                          ^^^^^^^^^^ missing `_webgl2_padding`

For more information about this error, try `rustc --explain E0063`.
error: could not compile `bevy` (example "motion_blur") due to 1 previous error

And it seems there are further issues on wasm after fixing the padding:

ERROR app: panicked at /Users/me/.cargo/registry/src/index.crates.io-6f17d22bba15001f/glow-0.13.1/src/web_sys.rs:3184:9:
Tex storage 2D multisample is not supported

Stack:

Error
    at imports.wbg.__wbg_new_abda76e883ba8a5f (http://127.0.0.1:1334/api/wasm.js:1814:13)
    at __wbg_new_abda76e883ba8a5f externref shim (http://127.0.0.1:1334/api/wasm.wasm:wasm-function[284553]:0x5006010)
    at console_error_panic_hook::Error::new::h8f2a3c9e1bd5d94b (http://127.0.0.1:1334/api/wasm.wasm:wasm-function[202489]:0x4be32a9)
    at console_error_panic_hook::hook_impl::h4b7b11b364c6a021 (http://127.0.0.1:1334/api/wasm.wasm:wasm-function[40389]:0x314ab02)
    at console_error_panic_hook::hook::h9bca3edbb9fe0449 (http://127.0.0.1:1334/api/wasm.wasm:wasm-function[248763]:0x4ea24ad)
    at core::ops::function::Fn::call::h863dd25d8ad6c6bb (http://127.0.0.1:1334/api/wasm.wasm:wasm-function[219048]:0x4d03942)
    at std::panicking::rust_panic_with_hook::h6b00a1542b7e827c (http://127.0.0.1:1334/api/wasm.wasm:wasm-function[84477]:0x3d89f21)
    at std::panicking::begin_panic_handler::{{closure}}::hcb858dc6b4beb4ae (http://127.0.0.1:1334/api/wasm.wasm:wasm-function[108401]:0x41e7446)
    at std::sys_common::backtrace::__rust_end_short_backtrace::hbb248f505066e51b (http://127.0.0.1:1334/api/wasm.wasm:wasm-function[286862]:0x500d973)
    at rust_begin_unwind (http://127.0.0.1:1334/api/wasm.wasm:wasm-function[225466]:0x4d68032)

After fixing disabling MSAA to fix that, things sort of work, but with a bunch of weird artifacts.

from bevy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.