Correct way to set background color/ using skybox causes black flash momentarily #494
Unanswered
tomriddle25
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You're not so far from being right but you are applying the Solution (I hope): Scene(
modifier = Modifier
.fillMaxSize(),
engine = engine,
modelLoader = modelLoader,
cameraNode = cameraNode,
childNodes = listOf(
centerNode,
rememberNode {
ModelNode(
modelInstance = modelLoader.createModelInstance("avatar/compressed_new/St2.glb"),
)
}
),
environment = rememberEnvironment(engine ) {
Environment(
skybox = Skybox.Builder()
.color(255f, 255f, 255f, 1.0f)
.build(engine)
)
}
) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi folks, first of all thanks a lot for building and maintaining
SceneView
, its been a boon for 3d model viewing on a jetpack compose project.My problem is that the models I am using do not have a background, and are displayed with a black background, and when I am trying to use the existing solutions discussed on issues like a colored
skybox
, I am getting a black background initially when the composable is rendered and then it becomes white.Its sort of like a black flash.
Here's a video of the issue.
Screen_recording_20240404_124025.mp4
P.S. - I am using the latest release 2.1.0.
Beta Was this translation helpful? Give feedback.
All reactions