-
Notifications
You must be signed in to change notification settings - Fork 234
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
kb.DirectionalLight does not work with spherical world #191
Comments
I am using the sphere as a "floor" – objects are inside the very large sphere at the bottom of it. |
Hi there,
|
I cannot say I am the best person to attempt this, but let me give it a try and create a PR – shouldn't be too bad (last famous words). I wrote the first version of the sync logic, but then @Qwlouse changes it to an observer pattern based on traitlets. It works well but the logic is not trivial. TL;DR you need to modify this file: |
I think it might be |
Assuming this scene:
This is how you hack it by importing bpy:
Let me try to push that property to core, as it's a pretty nice one to have. |
Yay! I'm glad you could fix the issue. I came across that same link in my searching's but am not yet as adept as you. |
I was so close !!! xD |
|
🤣 In comparison to me you are Yeah I was facepalming at line 135 in blender.py where you called the super() for the class and then pass it the shadow and the init value. Maybe I'll catch it next time xD |
Need add functionality to disable the spherical floor for being a shadow caster. Directional lights are modelled as lights positioned at infinity, causing world sphere to cast shadow on the object.
(incomplete) example from
examples/keyframing.py
The text was updated successfully, but these errors were encountered: