ReactVision / viro

ViroReact: The AR and VR library for React Native 📳💙💛🤍💚
MIT License
1.36k stars 157 forks source link

3d obj can't show up in released Android APK #141

Closed antliao closed 2 years ago

antliao commented 2 years ago

Requirements:

Please go through this checklist before opening a new issue

Environment

Please provide the following information about your environment:

  1. Development OS: Linux
  2. Device OS & Version: What Android OS version (10, etc.)
  3. Version: ViroReact version and React Native version
  4. Device(s): What device(s) are you are seeing the issue on (i.e. iPhone X, Samsung Note 8, etc) Samsung note 9

    Description

    I can load all the 3d obj files(about 10 files) and showed up in debug mode. When compiling to released apk, it only showed 4 3d files. And I in the logcat output, I found that all the not showed 3d files get strange bounding box values, like

06-04 16:37:36.985 25376 25463 I Viro : OBJ bounding box = x(340282346638528859811704183484516925440.000000 -340282346638528859811704183484516925440.000000) y(340282346638528859811704183484516925440.000000 -340282346638528859811704183484516925440.000000) z(340282346638528859811704183484516925440.000000 -340282346638528859811704183484516925440.000000)

Reproducible Demo

Let us know how to reproduce the issue. Include a code sample, screen capture, video recording. The more information you provide, the better we can support you.

antliao commented 2 years ago

I found the solution. It's the problem about obj file. Thanks.