Optimize buildings
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 2.9 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
assets/blender/buildings/joint-atlas-1-roughness.kra
Normal file
BIN
assets/blender/buildings/joint-atlas-1-roughness.kra
Normal file
Binary file not shown.
BIN
assets/blender/buildings/joint-atlas-1-roughness.png
Normal file
BIN
assets/blender/buildings/joint-atlas-1-roughness.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
BIN
assets/blender/buildings/joint-atlas-1-specular.kra
Normal file
BIN
assets/blender/buildings/joint-atlas-1-specular.kra
Normal file
Binary file not shown.
BIN
assets/blender/buildings/joint-atlas-1-specular.png
Normal file
BIN
assets/blender/buildings/joint-atlas-1-specular.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
BIN
assets/blender/buildings/joint-atlas-1.kra
Normal file
BIN
assets/blender/buildings/joint-atlas-1.kra
Normal file
Binary file not shown.
BIN
assets/blender/buildings/joint-atlas-1.png
Normal file
BIN
assets/blender/buildings/joint-atlas-1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
Binary file not shown.
Binary file not shown.
BIN
assets/blender/buildings/power-in-box.blend
Normal file
BIN
assets/blender/buildings/power-in-box.blend
Normal file
Binary file not shown.
BIN
assets/blender/buildings/power-pole-wire.blend
Normal file
BIN
assets/blender/buildings/power-pole-wire.blend
Normal file
Binary file not shown.
BIN
assets/blender/buildings/power-pole.blend
Normal file
BIN
assets/blender/buildings/power-pole.blend
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
47
assets/blender/scripts/export_buildings.py
Normal file
47
assets/blender/scripts/export_buildings.py
Normal file
@@ -0,0 +1,47 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import os, sys, time
|
||||
import bpy
|
||||
from math import pi
|
||||
import glob
|
||||
import shutil
|
||||
from mathutils import Vector, Matrix
|
||||
from math import radians, pi
|
||||
|
||||
argv = sys.argv
|
||||
argv = argv[argv.index("--") + 1:]
|
||||
|
||||
sys.path.insert(0, os.getcwd() + "/assets/blender/scripts")
|
||||
|
||||
gltf_file = argv[0]
|
||||
print("Exporting to " + gltf_file)
|
||||
basepath = os.getcwd()
|
||||
bpy.ops.export_scene.gltf(filepath=gltf_file,
|
||||
use_selection=False,
|
||||
check_existing=False,
|
||||
export_format='GLTF_SEPARATE',
|
||||
export_texture_dir='textures', export_texcoords=True,
|
||||
export_normals=True,
|
||||
export_tangents=True,
|
||||
export_materials='EXPORT',
|
||||
export_colors=True,
|
||||
use_mesh_edges=False,
|
||||
use_mesh_vertices=False,
|
||||
export_cameras=False,
|
||||
use_visible=False,
|
||||
use_renderable=False,
|
||||
export_yup=True,
|
||||
export_animations=True,
|
||||
export_force_sampling=True,
|
||||
export_def_bones=False,
|
||||
export_current_frame=False,
|
||||
export_morph=True,
|
||||
export_morph_animation=False,
|
||||
export_morph_normal=True,
|
||||
export_morph_tangent=True,
|
||||
export_lights=False,
|
||||
export_skins=True)
|
||||
|
||||
bpy.ops.wm.read_homefile(use_empty=True)
|
||||
time.sleep(2)
|
||||
bpy.ops.wm.quit_blender()
|
||||
Reference in New Issue
Block a user