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 am trying to put a videoTexture to a skybox to have a 360 panorama video.
I followed VideoMaterial code source, and I was able to get exoplayer's texture and map it into a node.
However, I would like to display it as a skybox.
When I tried, by doing
val texture =VideoTexture.Builder()
.stream(stream)
.build(engine)
skybox =Skybox.Builder()
.environment(texture)
.build(engine)
I got the following error.
Filament E Panic
in build:82
reason: environment maps must be a cubemap
Filament E
libc A Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 21944 (sceneviewsample), pid 21944 (sceneviewsample)
Is there any way to get a cubemap from a videoTexture?
I tried with IBLPrefilter, but it doesn't work because VideoTexture is not a 2D texture. It is quite confusing even looking at the code.
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
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to put a videoTexture to a skybox to have a 360 panorama video.
I followed VideoMaterial code source, and I was able to get exoplayer's texture and map it into a node.
However, I would like to display it as a skybox.
When I tried, by doing
I got the following error.
Is there any way to get a cubemap from a videoTexture?
I tried with
IBLPrefilter
, but it doesn't work because VideoTexture is not a 2D texture. It is quite confusing even looking at the code.sceneview-android/sceneview_2_0_0/src/main/java/io/github/sceneview/utils/IBLPrefilter.kt
Lines 32 to 48 in ad52375
Can someone please tell me what is the best way to do it?
Beta Was this translation helpful? Give feedback.
All reactions