3 ms·
What do you mean you 'tried' WebGL? It's just OpenGL in the browser. As mentioned, it just works just like OpenGL/Vulkan/DirectX just works. Now, various Web
by Mikeb85 5y ago
What do you mean you 'tried' WebGL? It's just OpenGL in the browser. As mentioned, it just works just like OpenGL/Vulkan/DirectX just works.
Now, various WebGL frameworks (Three.js, Babylon.js, etc...) are more performant or easier to use or whatever. Or you can compile native 3D platforms to wasm. Which did you try?
- sgt 5y agoI see your point. I used a WebGL framework (Three.js), not compilation to Wasm. In the case of the latter, what is the best way to start?
- Mikeb85 5y agoYeah Three.js is slow. Godot and Unity can both compile to wasm so I'd try out one of those.
- pjmlp 5y agoOpenGL/Vulkan/DirectX just work, WebGL depends on the whims of the browser and how it evaluates the client machine, eventually blacklisting it, or replacing calls with software emulation instead. OpenGL/Vulkan/DirectX can use 2021 hardware capabilites, WebGL is stuck on a GL ES 3.0 subset, basically 2012 hardware. Cool if you want to do iPhone 6 style graphics, but that is about it.
- Mikeb85 5y agoOpenGL ES 3.0 is derived from both OpenGL 3.3 and 4.2 while getting rid of some legacy stuff so it's a 'subset', but not really. And considering the range of devices browsers are on, it's not bad. Very few devices other than consoles and gaming rigs actually make use of bleeding edge graphics APIs.
- pjmlp 5y agoYeah, if we leave out compute and geometry shaders, mesh shaders, ray tracing hardware. Unreal Citadel was running in Flash, back in 2011. What Unreal based games are making the headlines in WebGL 2.0?