8 ms·
Build WebGPU apps with PlayCanvas
- daredevildave 3y agoI can't wait for compute shaders to be widely available on the web!
- kamikazeturtles 3y agoWhat sort of things will compute shaders on the web unlock that wasn't possible before? Asking as someone with only a little graphics programming experience
- h4x0rr 3y agoBetter crypto miners in the browser
- ovenchips 3y agoI think you'll begin to see more advanced particle systems and physical simulations for a start. And 3D Gaussian Splatting will probably benefit too (since compute will probably enable much faster sorting of splats). So it's not really that this stuff wasn't possible before...but compute will enable these techniques to run far faster.
- astlouis44 3y agoNative games on the web.
- daredevildave 3y agoThey unlock a lot of advanced graphics techniques that are too slow to do CPU-side but work well in parallel on GPU. It's a pretty wide variety of things, but e.g. lighting, mesh manipulation, terrain, voxels, post-processing.
- deleted 3y ago[deleted]
- pjmlp 3y agoBasically they bring us back to the days of 3D software rendering algorithms, now however fully accelerated on the graphics card. See offline renders like OTOY, that make use of CUDA. However we could already have gotten them via WebGL Compute, as they are part of OpenGL ES, had its implementation not been sabotaged. https://github.com/9ballsyndrome/WebGL_Compute_shader https://github.com/9ballsyndrome/WebGL_Compute_shader https://registry.khronos.org/webgl/specs/latest/2.0-compute/ https://registry.khronos.org/webgl/specs/latest/2.0-compute/ https://issues.chromium.org/issues/40150444 https://issues.chromium.org/issues/40150444
- Eduard 3y agoWith WebGPU, Stable Diffusion in the browser (watch out, once you click the "Generate" button, it will fetch 2 GByte of daaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaata) (and probably make your laptop hang whiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiile generating, as you can tell by my typing). https://websd.mlc.ai/ https://websd.mlc.ai/
- jsheard 3y agoAny idea how close Apple is to shipping stable WebGPU? They are the main bottleneck in terms of marketshare, Chrome has shipped it on Windows and Android already.
- ovenchips 3y agoThey feel pretty close to shipping this to me: https://webkit.org/blog/14879/webgpu-now-available-for-testing-in-safari-technology-preview/ https://webkit.org/blog/14879/webgpu-now-available-for-testi... They recently shipped an update that resolves all issues running PlayCanvas' WebGPU backend. My guess is that we're looking at 6-12 months to reach production. To track WebGPU support, I recommend this awesome site: https://web3dsurvey.com/webgpu https://web3dsurvey.com/webgpu
- givinguflac 3y agoIt’s in advanced safari iOS feature flags right now, and has been for a while. It works on the demos for PlayCanvas, but I can’t speak to long term stability .
- edgedeveloper44 3y agoHopefully it will release later this year to coincide with iOS 18. As other commenters have mentioned, it's already available for developer testing.
- koolala 3y agoLinux is missing it too. And WebGL2 beats WebGPU on all GPU performance benchmarks.
- astlouis44 3y agoYou can also build Unreal Engine 5 applications for WebGPU as well! See demos linked below: https://simplystream.com/demos https://simplystream.com/demos Edit: These demo should load faster, but use WebGL: https://topdown.tiwsamples.com/ https://topdown.tiwsamples.com/ https://vehiclegame.tiwsamples.com/ https://vehiclegame.tiwsamples.com/
- flohofwoe 3y agoMore like you can wait for loading Unreal Engine 5 applications for WebGPU today ;) The car configurator demo loads a 117 MBytes WASM blob and then hundreds of tiny files between a few hundred bytes to a few KBytes, both extremes are worst case for a web application, it's quite hilarious really. The demo didn't finish loading while writing this comment, and it doesn't look like the loading of those tiny files will ever end...
- astlouis44 3y agoYeah but the fact is that it works today, and will only get better and faster with time.
- flohofwoe 3y agoI bet there's a lot of cheap wins by bundling all those tiny files in a few bigger ones. But minimizing the WASM blob for a humongous native engine like Unreal Engine 5 sounds like a real challenge. Even when this is reduced by 90% it's still 10x bigger than Unity's web output, which is 10x bigger than a specialized WASM game engine designed for the web as "first class citizen". I have higher hopes for the web people (like PlayCanvas, Babylon, threejs, etc...) writing a proper WASM game engine by "scaling up" their experience of building browser rendering engines, than the traditional "native game engine" people "scaling down" to web requirements (especially when it comes to time needed to start into the game - the entire asset loading system of native engines needs to be rebuilt from scratch for this).
- astlouis44 3y ago
- PUSH_AX 3y agoI think Playcanvas would do well to focus on the basics, like being able to export/import variables in the standard js way, being able to develop offline, using your own source control. I could go on.
- daredevildave 3y agoSupport for Javascript modules looks like it is in-progress: https://github.com/playcanvas/engine/issues/4767 https://github.com/playcanvas/engine/issues/4767 Developing offline with the engine-only (https://github.com/playcanvas/engine https://github.com/playcanvas/engine) is obviously an option, but I wouldn't hold your breath for an offline editor.
- PUSH_AX 3y agoThat issue was opened in 2022. Honestly if you really get into the nitty gritty of PC it becomes quickly apparent there’s some very strange design choices and priorities. You can produce some great stuff but there are many dev-exp headaches
- yaustar 3y agoHey PUSH_AX! (Disclaimer, I used to work at PlayCanvas and still manage the Discord) - ES6 Modules and NPM support is actively being worked on and should be ready by end of year - Typescript support will follow after that (Mark who wrote this now works at PlayCanvas https://forum.playcanvas.com/t/playbuild-a-compiler-and-package-manager-for-playcanvas/25899 https://forum.playcanvas.com/t/playbuild-a-compiler-and-pack...)
- LeXXik 3y agoYou can do all that, when you develop without online Editor. In that regard, there is no difference between PlayCanvas, BabylonJS or ThreeJS. You can pick the one you are more familiar with.
- funny_name 3y agoIf anyone here is using PlayCanvas then I would love to know why you chose it over the abundance of other game engines out there. Every time I've taken a look at this engine it has always felt very limited. And with a $15/month subscription just to be able to create private projects I just can't justify it personally. I would love to be convinced otherwise though.
- ertucetin 3y agoI've used one of my game projects, and here's why I don't want to use it again: - You're locked into an online IDE if you want to use the PlayCanvas editor (which is the main selling point). - Third-party dependencies are hard to integrate (for the online editor). - You can't use different JavaScript languages (again due to the editor). - I've seen lots of minor version changes that break too many things (not very stable). - The editor had some major UI bugs back then (and probably still does). Pros: - Web-first library. - Unity-like editor. - Easy to debug/access things with only a link. - Recently started to support WebGPU. I've used ThreeJS, PlayCanvas, and BabylonJS in serious projects. I've concluded that BabylonJS is my go-to web-based 3D library from now on.
- yaustar 3y agoHey ertucetin! (Disclaimer, I used to work at PlayCanvas and still manage the Discord) Just to help feedback on some points: - ES6 Modules and NPM support is actively being worked on and should be ready by end of year - Typescript support will follow after that (Mark who wrote this now works at PlayCanvas https://forum.playcanvas.com/t/playbuild-a-compiler-and-package-manager-for-playcanvas/25899 https://forum.playcanvas.com/t/playbuild-a-compiler-and-pack...) - If an minor engine release breaks existing project, the editor supports running and building with the last minor and patch release. Minor releases should never break existing projects unknowningly (shader chunks was the last (and painful) known big breaking change). The PlayCanvas team are usually pretty good at dealing with reported minor version breakages. If you do take on another web 3D project after this work is done, hopefully this will help with reconsideration :)
- Voltage 3y ago
- TheSisb2 3y agoVenge.io is probably one of the most impressive games I've played in the browser, and was built using PlayCanvas.