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

Horde3D Now also supports Emscripten #231

Closed JesseVanDis closed 3 months ago

JesseVanDis commented 3 months ago

You can now also build Horde3D with emscripten.

I had to disable the GL compute functions for this though, as WebGL did not support compute shaders. The 'ParticleVortex' Target is disabled when building with Emscripten due to this limmitation.

As easy way to check if it works is to check out rivision: '30c80545ca50b327a3f93201dd7b10d3b1004ad1'. 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.

Screenshot from 2024-08-22 09-41-22

JesseVanDis commented 3 months ago

Oh that makes sence. I will check if the tessellator sample works just in case, then I will do a new pull request for develop!