Pipeline: composing all baked textures

This commit is contained in:
brothermechanic 2023-10-26 10:40:04 +03:00
parent d9d07b33b1
commit a1a961e7a7
No known key found for this signature in database
GPG key ID: BFB3FB14288FAC5E
3 changed files with 243 additions and 2 deletions

View file

@ -23,6 +23,7 @@ from blender.processing.midpoly_setup import hightpoly_collections_to_midpoly
from blender.processing.lowpoly_setup import parts_to_shells
from blender.processing.uv_setup import uv_unwrap
from blender.texturing.bake_submitter import bw_submit
from blender.texturing.composing import compose_baked_textures
from blender.export.dae import export_dae
from blender.export.stl import export_stl
import bpy
@ -129,7 +130,8 @@ def cg_pipeline(**kwargs):
# bake textures
bpy.ops.wm.open_mainfile(filepath=blend_path)
bw_submit(lowpoly_obj_names)
textures_path = bw_submit(lowpoly_obj_names)
compose_baked_textures(textures_path)
# export object meshes and urdf
to_urdf = collections.defaultdict(list)