Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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! #26

Open
bsavery opened this issue Jan 10, 2022 · 2 comments

Comments

@bsavery
Copy link
Owner

bsavery commented Jan 10, 2022

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 #24 (comment)

@bsavery
Copy link
Owner Author

bsavery commented Jan 10, 2022

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
Copy link
Owner Author

bsavery commented Jan 10, 2022

Here's what I get with yours.
untitled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant