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 wanna use KTX1Loader to create Indirectlight in my android project, my filament version is 1.42.0
I tried like this:
private fun readUncompressedAsset(assetName: String): ByteBuffer {
AppContext.getApp().assets.openFd(assetName).use { fd ->
val input = fd.createInputStream()
val dst = ByteBuffer.allocate(fd.length.toInt())
val src = Channels.newChannel(input)
src.read(dst)
src.close()
return dst.apply { rewind() }
}
}
readUncompressedAsset("ibl/lightroom_14b_ibl.ktx").let {
val iblTexture = KTX1Loader.createTexture(engine, it)
}
but got the error below:
java.lang.UnsatisfiedLinkError: No implementation found for long com.google.android.filament.utils.KTX1Loader.nCreateSkybox(long, java.nio.Buffer, int, boolean) (tried Java_com_google_android_filament_utils_KTX1Loader_nCreateSkybox and Java_com_google_android_filament_utils_KTX1Loader_nCreateSkybox__JLjava_nio_Buffer_2IZ)
Seems that all these methods: nCreateKTXTexture, nCreateIndirectLight, nGetSphericalHarmonics, nCreateSkybox got the same error, and I need help TAT!
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 wanna use KTX1Loader to create Indirectlight in my android project, my filament version is 1.42.0
I tried like this:
private fun readUncompressedAsset(assetName: String): ByteBuffer {
AppContext.getApp().assets.openFd(assetName).use { fd ->
val input = fd.createInputStream()
val dst = ByteBuffer.allocate(fd.length.toInt())
val src = Channels.newChannel(input)
src.read(dst)
src.close()
return dst.apply { rewind() }
}
}
readUncompressedAsset("ibl/lightroom_14b_ibl.ktx").let {
val iblTexture = KTX1Loader.createTexture(engine, it)
}
but got the error below:
java.lang.UnsatisfiedLinkError: No implementation found for long com.google.android.filament.utils.KTX1Loader.nCreateSkybox(long, java.nio.Buffer, int, boolean) (tried Java_com_google_android_filament_utils_KTX1Loader_nCreateSkybox and Java_com_google_android_filament_utils_KTX1Loader_nCreateSkybox__JLjava_nio_Buffer_2IZ)
Seems that all these methods: nCreateKTXTexture, nCreateIndirectLight, nGetSphericalHarmonics, nCreateSkybox got the same error, and I need help TAT!
Beta Was this translation helpful? Give feedback.
All reactions