Did Blender lighting defaults change? Renders have hard shadows now #858
Replies: 3 comments 2 replies
-
|
I had a bit of a look at Blender itself (but I have not experience with it, so totally unsure where to look) and noticed that a light source has a "Cast Shadows" checkbox. I did not manage to apply that, since rendering in Blendering failed with some error I did not understand. I also tried setting this option in the JSON generated by kibot and passed to "lights": [
{
[... more fields snipped ...]
"shadow": false,
"shadows": false,
"cast_shadow": false,
"cast_shadows": false,
"no_shadow": true,
"no_shadows": true,
"type": "POINT"
}
],But that did not seem to change anything. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
There is no magic recipe for lighting, what works perfect for a board might not work for other. What looks perfect to a user might look ugly to other. So you should play with the type of light, intensity and position. Even with this you might not find a perfect setup and then you'll need to manually adjust things from inside Blender. Also note that Looking a perfect result needs time and experimentation. KiBot adds just one light at a position computed using an heuristic. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
I'm looking to set up a blender render of my PCB (since the default render_3d is marked as deprecated and produced over-exposed results for me). However, my first attempts are a running into issues with the lighting, producing results that I do not appreciate.
Rendering my PCB with the default
blender_exportrender (all options default), I get:This is a reasonable render, except that the component shadows are quite prominent and IMHO counterproductive.
If I rotate the POV a bit (
rotate_x: 30; rotate_z: -20), the shadow issue remains, and also the PCB seems somewhat over-exposed (especially in the lower left corner).Since I wondered if this is intended, or what settings would be needed to produce more satisfying renders, I looked around and found: https://github.com/set-soft/kibot_3d_models_cache_example This example contains a render in its README:
This looks like a nice render - it is evenly lighted with only very subtle shadow that are not in the way. However, it is rendered with the default settings as well. But if I re-run KiCad with that example project and settings, I get:
Ignoring the difference in color, this shows that the current kicad code also shows (even more pronounced) shadows in this example, while the render in the README suggests that it did not use to, which leads me to believe something changed in the default rendering settings?
Anyone have any guidance about 1) what changed, and/or 2) what good settings are to produce clean images?
I tried fiddling around with the lighting settings and found that switching to SUN removes the shadows, but also produces a glare, making silkscreen unreadable in the center, or (with lower energy) too dark at the edge.
For example, rendering with:
Produces:
Beta Was this translation helpful? Give feedback.
All reactions