www.jpct.net
jPCT-AE - a 3d engine for Android => Support => Topic started by: ganesh on February 07, 2014, 01:13:43 pm
-
I have load 3ds model in game.but i get out of memory issue what i do.Because i new in using jpct. please explain it via code
There is my code load 3ds model code
snork = Loader.loadMD2(res.openRawResource(R.raw.snork), 15f);
snork.getMesh().cloneMesh(true);
snork.translate(0, -25, -50);
snork.setTexture("disco");
snork.strip();
snork.build();
-
That's not a bug and it's related to jPCT-AE, so i moved the topic to this forum.
Anyway, i don't get what you are doing. The code you posted loads a MD2 model, not a 3DS one. So which one is right, the text in the post or the code?
-
sorry its md2 model
-
I assume that these are the models from the advanced example? If that's the case, they should load unless you are running it on a very old version of Android of you are doing some additional stuft that eats up all your memory. The amount of memory available to the vm depends on the version of Android and the vendor. It ranges from 16mb to 256+.
-
Thank you very much Now its working
-
Just for the record: What was the actual problem?