Closed Arc-Jung closed 1 month ago
Hi @Arc-Jung,
I have a few comments on this. And I pushed a fix for it today.
First off, it appears I broke some stuff in the server with my last commit by removing a "/" symbol, so I have now reverted that.
The main cause of your problem is in blender/blender_export_any.py
where bpy.ops.export_scene.gltf(filepath=output_path)
is used to convert to gltf. Per default gltf files are then exported to the compressed format .glb. Read blender library docs here.
I have solved it by replacing the row with: bpy.ops.export_scene.gltf(filepath=output_path, export_format='GLTF_SEPARATE')
Fixed from commit https://github.com/grebtsew/FloorplanToBlender3d/commit/2da4c9532e9866b025c67aee17f87ff7e0b8db98.
I have also added a print in server/process/create.py which will show which blender command has been used when a task is done.
It can be worth metioning that the server implementation is not fully implemented, so you will probably find many similar missing features.
I'm also closing this issue, as I consider it solved.
Cheers, @grebtsew
@grebtsew
I created a model with the below code, but even though I requested it as a gltf file, it was generated as ID.gltf.glb Below are the logs and the actual generated files.
Do you have any opinions on this issue?