horde3d / Horde3D

Horde3D is a small 3D rendering and animation engine. It is written in an effort to create an engine being as lightweight and conceptually clean as possible.
http://horde3d.org/
1.55k stars 308 forks source link

You can now build Horde3D with emscripten. #232

Closed JesseVanDis closed 3 months ago

JesseVanDis commented 3 months ago

I had to disable the GL compute functions for this though, as WebGL did not support compute shaders.

As easy way to check if it works is to check out rivision: '959f37aa008f4d4d058ddda87f43b6b456542c90'. There is a Docker that can build the Knight example with emscripten. Check out 'build_emscripten.sh' To see how the docker is called, or just launch it if you are in Linux.

ParticleVortex and Tessellator are disabled in the example builds, as both use OpenGLES 3.2, where WebGL only supports OpenGLES 3.0. Additionally the 'ParticleVortex' had compute shaders.

All samples have been tested.

Screenshot from 2024-08-23 13-04-08

JesseVanDis commented 3 months ago

You were right about that WebGL does not support OpenGLES 3.2. I tested the Tessellator Sample, and it failed to create a GL context because of it. Thanks for the pointer!

algts commented 3 months ago

Please create a separate issue for: