Author Topic: Load large obj file  (Read 1927 times)

Offline nima.sh23

  • byte
  • *
  • Posts: 40
    • View Profile
Load large obj file
« on: May 03, 2015, 10:35:47 am »
Hello there
how can I load a large obj or 3DS file from assets into inputstream.
I searched about that,I find this link:
http://www.jpct.net/forum2/index.php?topic=2168.0
I compress my obj file,but it's lager 1mg.
help me please.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Load large obj file
« Reply #1 on: May 03, 2015, 01:00:22 pm »
I'm not sure what your actual problem is. The file doesn't load because Android think it's too large or it takes too much time or memory to load it? If it's the former problem, just rename the file extension to .mp3 (as mentioned in the thread). Apart from all that, consider to use serialized objects instead or a smaller model. If it's >1mb even when zipped, it might be too large for a mobile device anyway.

Offline nima.sh23

  • byte
  • *
  • Posts: 40
    • View Profile
Re: Load large obj file
« Reply #2 on: May 04, 2015, 04:13:00 am »
thanks
i copied my file on the drawable folder,It's ok(can load file).
I rename file (to *.mp3) but still can't load that.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Load large obj file
« Reply #3 on: May 04, 2015, 06:53:48 am »
"Still can't load it" is very vague. Is there some log output that explains the root cause?