You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the io.github.sceneview:sceneview:2.0.4 Model viewer. When I set the environment and load an HDR file, everything functions perfectly. However, I'm facing difficulty changing the background texture when not loading the HDR file. While I managed to add light to ensure the object is displayed using the following code:
val sun = EntityManager.get().create()
LightManager.Builder(LightManager.Type.DIRECTIONAL)
.build(sceneView.engine, sun)
sceneView.scene.addEntity(sun)
I couldn't find a way to set the blank background. In the SceneForm documentation sample, it's achieved simply by setting the background attribute:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm using the io.github.sceneview:sceneview:2.0.4 Model viewer. When I set the environment and load an HDR file, everything functions perfectly. However, I'm facing difficulty changing the background texture when not loading the HDR file. While I managed to add light to ensure the object is displayed using the following code:
I couldn't find a way to set the blank background. In the SceneForm documentation sample, it's achieved simply by setting the background attribute:
I appreciate your help. Below is the code snippet for loading the model:
Beta Was this translation helpful? Give feedback.
All reactions