Pipeline: composing all baked textures
This commit is contained in:
parent
d9d07b33b1
commit
a1a961e7a7
3 changed files with 243 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue