Comments (14)
Initial proof of concept. ;) It needs a fair bit of work, but I don't see any actual blockers.
from abstreet.
Currently waiting on RazrFalcon/resvg#229
from abstreet.
http://abstreet.s3-website.us-east-2.amazonaws.com/
I'm declaring victory. Many things are broken compared to the native version (saving your edits, partially transparent colors), but enough works to try it out! If you find other issues with web specifically, please file more bugs. Thanks!
from abstreet.
Starting experiments with webgl at https://github.com/dabreegster/rust_wasm_gui_test
from abstreet.
This is actually getting quite close: https://github.com/dabreegster/abstreet/tree/wasm
- I got almost everything working with glow on native
- glow on webgl isn't drawing yet, probably some simple bug
- need to deal with non-wasm-friendly stuff from a few places -- notably usvg's harfbuzz dependency, reading/writing files, and uses of Instant
As always, I'd love help with this!
from abstreet.
Do you want me to pursue it @dabreegster?
I have no understanding of this stuff and want to remedy that, so I'll take a crack at it, if that's OK
@alvinhochun, we can pin to particular git commits of winit, so don't let us block any stdweb cleanup. Thanks for checking in!
from abstreet.
Yes please. This is on my radar, but I don't have any time to work on it soon.
Dependencies right now are glium, glutin, winit. winit got web support recently. The OpenGL usage is contained in the ezgui crate and doesn't use anything fancier than scissor test and texture arrays.
from abstreet.
Info on the winit support: https://users.rust-lang.org/t/winit-0-20-and-web-support/36155
from abstreet.
Seems quite laggy?
from abstreet.
Oh yeah, definitely. I haven't tried in release mode yet, but I bet that'll help. Lots of other bugs to work through before this is anywhere near ready. Probably the hardest piece will be getting some variation of text rendering through usvg without a dependency on harfbuzz.
from abstreet.
Hi, I want to let you know that winit
is considering deprecating the stdweb
backend (rust-windowing/winit#1662). As it appears that A/B street is using winit
with stdweb
and it doesn't look like you have any plans to move to web-sys
, may I ask for your opinion on this?
from abstreet.
I originally chose stdweb over web-sys many months ago, because it wasn't clear which one was used more, and following the stdweb example seemed slightly easier at the time. I don't think there are any blockers for us switching to web-sys, and we want to use the better maintained option. @michaelkirk did some deep dives into the two recently to fix some bugs and has better context. Should we just migrate to web-sys now?
from abstreet.
Yep, I think migrating to web-sys makes sense.
AFAIK the most substantial piece of work will be writing the boilerplate to replace cargo web
, which is stdweb only IIRC. I don't think it'll be difficult, just hasn't been a priority.
Do you want me to pursue it @dabreegster?
from abstreet.
Be my guest!
from abstreet.
Related Issues (20)
- Improve LTN Turn Restriction editing UX design
- Design LTN tool: Improve isolated cell detection
- Improvements to Design LTN : Improved shortcut detection
- Design LTN tool - turn restriction editing: testing with `complicated_turn_restictions` required HOT 5
- Stuck at level 3 of 15-min Santa HOT 8
- Can't copy/paste error message (15-min Santa game)
- Impossible/impracticable to undo automated filter placement in Design LTN tool HOT 2
- Crash when clicking on a parking lot HOT 3
- Trying to load Camden data to test low traffic neighbourhoods HOT 6
- Boolean ops crash in WASM only HOT 4
- Mac builds broken HOT 9
- Switching maps doesn't clear proposal URL
- Missing crosswalks in LTN "crossing" feature HOT 1
- 15 min neighborhood routing issues HOT 2
- cant parse hebrew HOT 6
- Draw routes more clearly when unzoomed on large maps HOT 5
- Grid2Demand agent file fails to load.
- Crash when launching traffic sandbox HOT 1
- Crash when changing one-way direction
- Print / export map HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from abstreet.