2

I am currently trying to write a python script with bpy and Blender 2.9 to render images of a couple of thousand wavefront objects with material information. I only need the "true colors" of the objects, without shading, so I first tried to disable all light sources in the scene, what I could not accomplish because I am completely new to blender.

What would be the best approach to achieve this? Is there a way to set a uniform light source like the Hemi Lamp in previous blender versions? Is there a way to pass only the diffuse color of the materials? I am quite stuck at the moment and would really appreciate any advice and bpy code examples.

philkatkit
  • 21
  • 2

1 Answers1

2

Just use an Emission shader. This will emit the intensity of the surface without responding to any surrounding light sources so will produce a pure "unshaded" colour.

Related: Node for setting render colour, regardless of lighting

brockmann
  • 12,613
  • 4
  • 50
  • 93
Rich Sedman
  • 44,721
  • 2
  • 105
  • 222