Some blender export testing

This commit is contained in:
sergeypdev 2025-07-19 18:17:08 +04:00
parent e878aa4db6
commit 7a92887c5e
12 changed files with 21 additions and 17 deletions

Binary file not shown.

BIN
assets/blender/test_level_blend/Plane.glb (Stored with Git LFS)

Binary file not shown.

BIN
assets/blender/testblend_blend/Bakery.glb (Stored with Git LFS)

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
assets/blender/testblend_blend/Hotel.glb (Stored with Git LFS)

Binary file not shown.

View File

@ -70,7 +70,11 @@ def export_object_as_glb(obj: bpy.types.Object, export_path: str):
assert bpy.context.view_layer is not None
bpy.context.view_layer.objects.active = obj
if obj.type == 'CURVE':
bpy.ops.object.convert(target='MESH', keep_original=True)
bpy.ops.export_scene.gltf(filepath=full_export_path, use_selection=True, export_apply=True)
bpy.ops.object.delete()
print(f"Exported {obj.name} -> {export_path}")

BIN
src_assets/test_level.blend (Stored with Git LFS)

Binary file not shown.

BIN
src_assets/test_level.blend1 (Stored with Git LFS)

Binary file not shown.

BIN
src_assets/tools.blend (Stored with Git LFS)

Binary file not shown.

BIN
src_assets/tools.blend1 (Stored with Git LFS)

Binary file not shown.