BlenderPythonRenderer
BlenderPythonRenderer copied to clipboard
This scene when changed to BPR renderer out of the box doesn't render the box, but that's alright. Can you update me on how to make the cube into a diffuse material and add an emissive light? I don't see many properties in the materials tab or having added a light. This is more so about how does one uses blender UI features to make the scene supported to be rendered by the engine? Any comments or resources help, thanks!
Quick question, the scene when changed to BPR renderer out of the box doesn't render the box, but that's alright. Can you update me on how to make the cube into a diffuse material and add an emissive light? I don't see many properties in the materials tab or having added a light. This is more so about how does one uses blender UI features to make the scene supported to be rendered by the engine? Any comments or resources help, thanks!
Uploading the scene here - base_scene.zip
Originally posted by @codesavory in https://github.com/bsavery/BlenderPythonRenderer/issues/24#issuecomment-1008120842
So right now we just use the "material diffuse color" as a diffuse color. You can find that in the "Viewport settings" of a material.

If a material has just an emissive shader hooked up that is treated as a light. All that code is pretty simpler and in here; https://github.com/bsavery/BlenderPythonRenderer/blob/main/render/material.py
BTW I just pushed some changes that should make it a lot faster and better to render.

Here's what I get with yours.
