Load large obj file

Started by nima.sh23, May 03, 2015, 10:35:47 AM

Previous topic - Next topic

nima.sh23

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.

EgonOlsen

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.

nima.sh23

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.

EgonOlsen

"Still can't load it" is very vague. Is there some log output that explains the root cause?