How do you add a light? #87
-
I used sceneform ages ago and could add a light that can be moved and attached to the camera for example with something like:
However there doesn't seem to be the ability to add a light to a Node anymore. How do I add the light to the scene? I've been through trying to use EntityManager, lightManager etc, but even though the code compiles and throws no errors, no usage of that seems to actually affect any lighting in the scene. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Did you try using LightNode directly? You can also handle it manually (Filament Builder without nodes) and add it to the sceneview-android/sceneview/src/main/java/io/github/sceneview/SceneView.kt Lines 216 to 222 in 2c8b61d |
Beta Was this translation helpful? Give feedback.
-
Can you help with how to initialize the Thank you.
|
Beta Was this translation helpful? Give feedback.
Did you try using LightNode directly?
I have to admit that we didn't worked/tested this feature a lot since it's rarely used.
You can also handle it manually (Filament Builder without nodes) and add it to the
sceneView.scene
.Please let us know the issues you could encounter with
LightNode
and have a look at how the default main light is handled within theSceneView
:sceneview-android/sceneview/src/main/java/io/github/sceneview/SceneView.kt
Lines 216 to 222 in 2c8b61d