Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - nmhung1507

Pages: [1]
Support / Re: Load large file to Android device
« on: February 05, 2021, 09:32:19 am »
I checked the model in Windows and I can view it perfectly. I also checked the maxPolysVisible, the constant defined is 512 and the number of sub-object is only 241. I tried to increase it to 1024 but nothing difference.
This is the screen shoot:
It look like the camera is too near the object. I used
Code: [Select]
Camera.moveCamera(Camera.CAMERA_MOVEOUT, speed) to move camera far-away but there is no result.
Here is my desktop source to serialize the model:
Code: [Select]
Object3D[] obj = Loader.load3DS("car.3ds", 1);
for (int i = 0; i < obj.length; i++) {
new DeSerializer().serializeArray(obj, new FileOutputStream("car.ser"), true);
Android source to load model:
Code: [Select]
zis = new ZipInputStream("models/"));
Object3D[] objs = Loader.loadSerializedObjectArray(zis);
Object3D o3d = Object3D.mergeAll(objs);
Log.d(TAG, "Num of sub object: " + objs.length); // THIS LOGGED 241 SUB-OBJECTS;

Camera cam = world.getCamera();
cam.moveCamera(Camera.CAMERA_MOVEOUT, 2000);

I also attached desktop log of serializing the model as well as android log of loading it. You can see it if you want more information.
Thank you very much indeed!

Support / Load large file to Android device
« on: February 05, 2021, 06:23:40 am »
I need to load and render a relatively large (~10Mb) 3DS file to android device.
The link to download file:
I've tried to serialize it, zipped it and load it to android device but it seems that the model has not been rendered correctly (missing a lot of component). With smaller file, it's OK.
My question is: is it feasible to load ~10Mb model using JPCT?
I've read your old comment (since 2011) in this forum that >3.5Mb is too large file to mobile device, but I think that with the power of hardware nowadays, 10Mb is not a real problem.

Pages: [1]