Skip to content

Commit

Permalink
correct comments in blender_render
Browse files Browse the repository at this point in the history
  • Loading branch information
ashawkey committed Jul 3, 2024
1 parent 961384a commit 139d005
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kiui/cli/blender_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,6 @@ def setup_rendering(args):

refs['node_normal'] = node_normal

# NOTE: blender cannot render metallic and roughness as image...

### render engine
# EEVEE will use OpenGL, CYCLES will use GPU + CUDA/OPTIX
if bpy.context.scene.render.engine == 'CYCLES':
Expand Down Expand Up @@ -252,11 +250,13 @@ def clean_scene_meshes():
if len(obj.data.vertices) <= 6:
bpy.data.objects.remove(obj, do_unlink=True)


# remove all animations, which will disturb normalization
def clear_animation():
for obj in bpy.data.objects:
obj.animation_data_clear()


def get_calibration_matrix_K_from_blender(camera):
f_in_mm = camera.data.lens
resolution_x_in_px = bpy.context.scene.render.resolution_x
Expand Down

0 comments on commit 139d005

Please sign in to comment.