Main Menu
Menu

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.

Show posts Menu

Messages - karoshi

#1
Hi all,
I've published a new model viewer into Google play. It can open model from online storage.
In case you want to try  it:

https://play.google.com/store/apps/details?id=vn.karoshi.beauty3dviewer

You can see details of feature there.
Thank you

P/S Dear Admin, please help me to delete it from Java group. Thank you
#2
Support / Re: JPCT-AE MultiThreading
April 08, 2014, 07:50:58 AM
Maybe, rainfalls said right, although I use other thread to add new object to World, World is still blocked during compiling time -> multithread not effective.
Thank you all.
#3
Support / Re: JPCT-AE MultiThreading
March 26, 2014, 09:59:01 AM
I got 1st frame rendered, then no update until loading finished.
What do you mean "shader files"?
I saw only  connection between 2 thread(loading and render) is world:
+ In Loading Thread: Add new object to world if any ready loaded
+ In Render Thread: Render world

Do you think world is blocked during Loading thread running?
#4
Support / JPCT-AE MultiThreading
March 19, 2014, 07:31:41 AM
Dear,
I 've used an other thread to load model 3d into JPCT-AE world. However, Rendering is still blocked at render time 1st(we can see 1st frame) until finishing loading.
The way I do:
1. Start loading data thread at onSurfaceCreate
//Create world
new Thread(new Runable(){
//Load 3ds model which has not been used at starting time yet.
}).start();
2. DrawFrame: Normal update world(example move Camera). It should be not blocked by data loading, it means other data should be updated normally.

I don't understand why, please help

Thank you.


#5
Support / Re: Big data 3DS model loading
February 27, 2014, 11:46:21 AM
Thanks ad.
Because I want to show 3DS file instantly after download from free source, it  must be 3DS format.
In that case, if I want to show 3DS file loading status, which API can I use?
In 3DS loading example, you use
  Object3D[] model = Loader.load3DS(is,scale);
           Object3D o3d = new Object3D(0);
           Object3D temp = null;
           for (int i = 0; i < model.length; i++) {
               temp = model;
               temp.setCenter(SimpleVector.ORIGIN);
               temp.rotateX((float)( -.5*Math.PI));
               temp.rotateMesh();
               temp.setRotationMatrix(new Matrix());
               o3d = Object3D.mergeObjects(o3d, temp); //almost time
               o3d.build();// almost time - redundant build
           }
It's possible to show status after each mergerObjects.

However, I improve loading time  and memory by :
Object3D[] model = Loader.load3DS(is,scale);
           Object3D temp = null;
           for (int i = 0; i < model.length; i++) {
               temp = model;
               temp.setCenter(SimpleVector.ORIGIN);
               temp.rotateX((float)( -.5*Math.PI));
               temp.rotateMesh();
               temp.setRotationMatrix(new Matrix());
           }
             o3d = Object3D.mergeAll(model);// almost time
          o3d.build();// almost time

All time is for mergeAll and build, is it impossible to get status during mergeAll and build?
#6
Support / Big data 3DS model loading
February 27, 2014, 10:03:47 AM
Dear,
I'm making a 3DS viewer using jPCT-AE.
I see 2 problems:
+ Memory consumption is very big for loading a 3DS model : I enabled large heap to use  availble memory for loading., it takes ~100MB memory to load ~5MB 3DS file.
+ Loading time is too long: If 3DS file is 5MB, it take some minutes to load.

I don't think 5MB is a big data for a tablet such as ASUS TF300T.
As a reference, my friend uses Ogre-Android to load ~2M Mesh file, it takes only ~1s.

So, can you share me what limitation of current jPCT-AE for big data? Maybe the issue is inside loader code or creating Object3D ( mergeObject, mergeAll,...)

Hardware: I'm using Transformer TF300T

Thank you