Replies: 2 comments 2 replies
-
You can set your own image for each Cubemap face like this (in kotlin): val syboxCubemap = Texture.Builder()
.width(width)
.height(height)
.levels(0xff)
.sampler(Texture.Sampler.SAMPLER_CUBEMAP)
.build(Filament.engine)
.apply {
// Set each face image from your hdr or distinct images here
setImage(Filament.engine, 0, imageBuffer, faceOffsets)
} and then create the Skybox and apply it to the Scene: scene.skybox = Skybox.Builder()
.environment(syboxCubemap)
.build(Filament.engine) Note that's it a runtime solution but you can also pre-compile a environment_skybox.ktx and environment_ibl.ktx from your modified hdr file using cmgen |
Beta Was this translation helpful? Give feedback.
2 replies
-
Bump. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there some function in the code I can use to setup the camera for specific IBL Probe face (to render HDR scene for each direction)?
I want to generate/cache IBL Prefiltered cubemap in my scene, but don't kow exactly how to set the camera for each face.
Description of IBL cube-maps is quite confusing about mirroring settings, etc...
Beta Was this translation helpful? Give feedback.
All reactions