godot-vrm icon indicating copy to clipboard operation
godot-vrm copied to clipboard

Building gltf-module for JavaScript platform

Open MrZak-dev opened this issue 2 years ago • 4 comments

Any future plans to support JavaScript platform for the gltf-module ?

scons target=release platform=javascript  -j16                                                                                                                                          pwsh
scons: Reading SConscript files ...

scons: *** Invalid value for option platform: javascript.  Valid values are: ('linux', 'osx', 'windows', 'android', 'ios')
File "D:\temp\godot_glb_dynamic_loading\gdnative_version\godot-gltf-module\SConstruct", line 152, in <module>

Thanks for the great work .

MrZak-dev avatar Apr 08 '22 11:04 MrZak-dev

There is not much will to work on supporting the GDNative gltf module because the code was merged into Godot Engine 3 and Godot Engine 4.

GltfDocument also works at runtime.

fire avatar Apr 08 '22 21:04 fire

@fire is there are any API doc for importing gltf/glb files in Godot at runtime using your implementation for Godot 3.4?

MrZak-dev avatar Apr 22 '22 12:04 MrZak-dev

Are you expecting to use VRM outside of the editor? It should act like gltf import.

fire avatar Apr 22 '22 13:04 fire

@fire am trying to import and load a glb file at runtime ( we are running our project in HTML5 ).

i tried the PackedSceneGLTF.import_gltf_scene() but it seems broken on HTML5 platform. ( its working when running the project on desktop (windows ).

i have created an issue for it https://github.com/godotengine/godot/issues/60432

Thanks for your responsiveness :)

MrZak-dev avatar Apr 22 '22 15:04 MrZak-dev