Replies: 2 comments 1 reply
-
Found the answer |
Beta Was this translation helpful? Give feedback.
1 reply
-
` private fun loadGLB() { ` |
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.
-
Here i Have add my code for server url Please help me how can i load it from local storage.
URL("URL").openStream().use { inputStream: InputStream -> val inputStream = BufferedInputStream(inputStream) ByteArrayOutputStream().use { output -> inputStream.copyTo(output) val byteArr = output.toByteArray() val byteBuffer = ByteBuffer.wrap(byteArr) val rewound = byteBuffer.rewind() withContext(Dispatchers.Main) { modelViewer.destroyModel() modelViewer.loadModelGlb(rewound) modelViewer.transformToUnitCube() } } }
Beta Was this translation helpful? Give feedback.
All reactions