JiantaoLin commited on
Commit
ded6c2a
·
1 Parent(s): ec81536
Files changed (1) hide show
  1. video_render.py +1 -1
video_render.py CHANGED
@@ -57,7 +57,7 @@ def render_video_from_obj(input_obj_path, output_video_path, num_frames=60, imag
57
  mesh = pytorch3d.structures.Meshes(verts=[vertices], faces=[faces], textures=textures)
58
 
59
  # 设置渲染器
60
- lights = AmbientLights(ambient_color=((3.0,)*3,), device=device)
61
  # lights = PointLights(device=device, location=[[0.0, 0.0, 3.0]], ambient_color=[[0.5, 0.5, 0.5]], diffuse_color=[[1.0, 1.0, 1.0]])
62
  raster_settings = RasterizationSettings(
63
  image_size=image_size, # 渲染图像的尺寸
 
57
  mesh = pytorch3d.structures.Meshes(verts=[vertices], faces=[faces], textures=textures)
58
 
59
  # 设置渲染器
60
+ lights = AmbientLights(ambient_color=((2.0,)*3,), device=device)
61
  # lights = PointLights(device=device, location=[[0.0, 0.0, 3.0]], ambient_color=[[0.5, 0.5, 0.5]], diffuse_color=[[1.0, 1.0, 1.0]])
62
  raster_settings = RasterizationSettings(
63
  image_size=image_size, # 渲染图像的尺寸