GithubHelp home page GithubHelp logo

blaind / bevy_webview Goto Github PK

View Code? Open in Web Editor NEW
48.0 48.0 8.0 970 KB

Rapidly iterate and build Bevy UI's with existing web-based technologies

Home Page: https://blaind.github.io/bevy_webview_book/

License: Other

HTML 0.26% Rust 97.94% JavaScript 1.80%
bevy rust webview

bevy_webview's Introduction

Hello world!

bevy_webview's People

Contributors

blaind avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bevy_webview's Issues

`transparent: true` works only partially (white background at start) when loading URI

Currently, transparency doesn't work before the URI has been loaded.

Cause: PbrBundle will contain a blended material at startup. However, the default color is RGB(A?) 1,1,1,1. Since colors are multiplied with texture, the color should probably changed at first texture update.

StandardMaterial {
  alpha_mode: AlphaMode::Blend,
  unlit: true,
  ..Default::default()
}

Live reload / refresh (F5) a local asset

Development idea: provide a way to live reload html files under development. If not possible, then alternative way for user to trigger the reload through F5-type interaction.

Application closing in react_ui and 3d_scene examples impacts webviews visibility.

bevy_webview version

The commit hash of the version you're using.

4b8abd1

Bevy version

The release number of the version you're using.

0.9.0

Operating system & version

Ubuntu 20.04.1

What you did

The steps you took to uncover this bug. Please list full reproduction steps if
feasible.

  1. running RUST_LOG="bevy_webview=debug,warn,info,error" cargo run --example react_ui
  2. the Webview are visible
  3. close the window
  4. running RUST_LOG="bevy_webview=debug,warn,info,error" cargo run --example react_ui
  5. the Webview are invisible
  6. Ctrl+C on terminal to stop the runtime
  7. running 4. running RUST_LOG="bevy_webview=debug,warn,info,error" cargo run --example react_ui
  8. the Webview are visible again

What you expected to happen

when closing the window and re-running the example the visibility should be consistent as the program was closed by Ctrl+C on the terminal

Additional information

A video illustrating the misbehavior:

Peek.2023-02-25.23-30.mp4

Discovered during:

#12

Resolve local subassets

Currently, having a .html as a local asset with a reference e.g. to local .png/.jpg does not work.

Interaction with 3D canvas

Tracking issue for 3D canvas interaction. Please upvote, and preferably describe functional needs as well.

Update to latest Bevy

This plugin contains very nice functionality, but is depending on an outdated Bevy version. Are there any plans to update it so it works with latest Bevy?

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.