DmitriySalnikov/godot_debug_draw_3d

[Feature Request]: Web/WASM Support

darthdeus opened this issue · 2 comments

Feature description

Any chance to get support for web builds? I'm not sure if this also isn't a bug since the readme says the library is disabled in release, but I'm still getting

index.js:14111 USER ERROR: No GDExtension library found for current OS and architecture (web.wasm32) in configuration file: res://addons/debug_draw_3d/debug_draw_3d.gdextension
onPrintError @ index.js:14111
index.js:14111    at: load (core/extension/gdextension.cpp:628)
onPrintError @ index.js:14111
index.js:14111 USER ERROR: Failed loading resource: res://addons/debug_draw_3d/debug_draw_3d.gdextension. Make sure resources have been imported by opening the project in the editor at least once.

and then a bunch of errors with DebugDraw not being found.

Implementation Ideas

No response

Does GDExtension already support WASM?


I can't run a project with GDExtension support (4.1.1.stable).

Without Extension Support:
image

With Extension Support:
image

And here no code from GDExtensions is even used. But in the DebugDraw demo project with a successfully compiled library, there is also an endless loading (in fact, the library is not even loaded from the server).


If you have more experience and you were able to run Godot with GDExtension, then here is the compiled library for web (javascript artifact). You will also need an updated .gdextension.

@darthdeus Can you test it?