www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: nima.sh23 on May 03, 2015, 10:35:47 am

Title: Load large obj file
Post by: nima.sh23 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.
Title: Re: Load large obj file
Post by: EgonOlsen 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.
Title: Re: Load large obj file
Post by: nima.sh23 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.
Title: Re: Load large obj file
Post by: EgonOlsen 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?