Closed Drjacky closed 4 years ago
About the previous error, it was my fault. Wrong path. But, the problem still exists! I used AliasMesh OBJ to GLB, and it changed the model totally. And in case of using glTF, it doesn't show the model:
2020-07-30 11:46:47.277 4976-5052/com.google.ar.sceneform.samples.gltf E/ACameraMetadata: filterDurations: malformed duration key 1638408! count 0, type 3
2020-07-30 11:46:47.285 4976-4995/com.google.ar.sceneform.samples.gltf E/libc: Access denied finding property "vendor.camera.aux.packagelist"
2020-07-30 11:46:47.285 4976-4995/com.google.ar.sceneform.samples.gltf E/libc: Access denied finding property "vendor.camera.aux.packagelist"
2020-07-30 11:46:47.312 4976-4976/com.google.ar.sceneform.samples.gltf E/native: session.cc:2043 Invalid ray produced by view data!
2020-07-30 11:46:47.656 4976-5052/com.google.ar.sceneform.samples.gltf E/ACameraMetadata: filterDurations: malformed duration key 1638402! count 0, type 3
2020-07-30 11:46:47.656 4976-5052/com.google.ar.sceneform.samples.gltf E/ACameraMetadata: filterDurations: malformed duration key 1638403! count 0, type 3
2020-07-30 11:46:47.656 4976-5052/com.google.ar.sceneform.samples.gltf E/ACameraMetadata: filterDurations: malformed duration key 1835009! count 0, type 3
2020-07-30 11:46:47.656 4976-5052/com.google.ar.sceneform.samples.gltf E/ACameraMetadata: filterDurations: malformed duration key 1835010! count 0, type 3
2020-07-30 11:46:47.656 4976-5052/com.google.ar.sceneform.samples.gltf E/ACameraMetadata: filterDurations: malformed duration key 1638407! count 0, type 3
2020-07-30 11:46:47.656 4976-5052/com.google.ar.sceneform.samples.gltf E/ACameraMetadata: filterDurations: malformed duration key 1638408! count 0, type 3
2020-07-30 11:46:47.774 4976-5037/com.google.ar.sceneform.samples.gltf E/ModelRenderable: Unable to load Renderable registryId='ps/door-AliasMesh.gltf'
java.util.concurrent.CompletionException: java.lang.OutOfMemoryError: Failed to allocate a 268435472 byte allocation with 25165824 free bytes and 124MB until OOM, target footprint 163374544, growth limit 268435456
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:278)
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:284)
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1629)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)
Caused by: java.lang.OutOfMemoryError: Failed to allocate a 268435472 byte allocation with 25165824 free bytes and 124MB until OOM, target footprint 163374544, growth limit 268435456
at java.util.Arrays.copyOf(Arrays.java:3161)
at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:118)
at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93)
at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:153)
at com.google.ar.sceneform.utilities.SceneformBufferUtils.copy(SceneformBufferUtils.java:75)
at com.google.ar.sceneform.utilities.SceneformBufferUtils.inputStreamToByteArray(SceneformBufferUtils.java:127)
at com.google.ar.sceneform.utilities.SceneformBufferUtils.inputStreamCallableToByteArray(SceneformBufferUtils.java:119)
at com.google.ar.sceneform.rendering.LoadRenderableFromFilamentGltfTask.lambda$downloadAndProcessRenderable$1(LoadRenderableFromFilamentGltfTask.java:52)
at com.google.ar.sceneform.rendering.-$$Lambda$LoadRenderableFromFilamentGltfTask$tXLLTvSKfoxkH8DoOYyMb6HFU60.get(Unknown Source:2)
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1627)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)
2020-07-30 11:46:47.819 4976-5076/com.google.ar.sceneform.samples.gltf E/ACameraMetadata: getConstEntry: cannot find metadata tag 65578
2020-07-30 11:46:48.284 4976-4976/com.google.ar.sceneform.samples.gltf E/native: hit_test.cc:381 generic::internal: No point hit.
2020-07-30 11:46:48.318 4976-4976/com.google.ar.sceneform.samples.gltf E/native: hit_test.cc:381 generic::internal: No point hit.
@Drjacky have you tried loading the glTF in a different viewer, like https://gltf-viewer.donmccurdy.com/?
Just want to check whether this is a bug in obj2gltf bug or a bug in the Android Application.
@lilleyse You were right! It shows perfectly on the https://gltf-viewer.donmccurdy.com/.
I used FreeCAD and exported STEP to both, Wavefront OBJ and AliasMesh OBJ. In the case of Wavefront, it result 107 bytes! and in case of AliasMesh, it could correctly result 160MB but, when I used it In my Android application, it didn't show any model and I got this: