SceneView / sceneview-android

SceneView is a 3D and AR Android Composable and View with Google Filament and ARCore. This is a Sceneform replacement in Kotlin
Apache License 2.0
815 stars 159 forks source link

add exoplayer node sample #520

Closed green7night closed 3 months ago

erikhric commented 3 months ago

Kudos on that!

erikhric commented 3 months ago

Does it support alpha channel in .webm?

green7night commented 3 months ago

@erikhric Support is not possible because the Exoplayer does not support the alpha channel. -> https://github.com/google/ExoPlayer/issues/7789

erikhric commented 3 months ago

Was the original scene form video node using exoplayer too? I saw there is an option to use ChromaKeying materia to achive transparency. Can we also use matte masks? Simply synchronize 2 videos - mask and content?

erikhric commented 3 months ago

What about displaying transparent webview that plays transparent video. Which approach seems doable to you?

erikhric commented 3 months ago

Seems like VideoTexture supported alpha channel. It has RGBA pixel format: https://github.com/SceneView/sceneview-android/blob/dfbe7cd355bf404b9adcd466883ef6798f8a4da5/sceneview/src/main/java/io/github/sceneview/texture/VideoTexture.kt

ThomasGorisse commented 3 months ago

The texture yes but not the player. You can try replacing the alpha channel with a RGB one and use it as chroma key.