BlenderPythonRenderer icon indicating copy to clipboard operation
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!

Open bsavery opened this issue 3 years ago • 2 comments

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

bsavery avatar Jan 10 '22 21:01 bsavery

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. Screen Shot 2022-01-10 at 1 41 52 PM

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.

bmw

bsavery avatar Jan 10 '22 21:01 bsavery

Here's what I get with yours. untitled

bsavery avatar Jan 10 '22 21:01 bsavery