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.


Topics - drdla

Pages: [1]
1
Support / ARcore
« on: September 13, 2017, 10:23:04 am »
Hi,

do you have some plan about integrating ARCore to android edition of JPCT?

Thanks.

2
Support / World renderScene and draw stop UI thread
« on: May 25, 2017, 11:24:05 am »
Hi,
in first call of onDrawFrame calling of
Code: [Select]
mWorld.renderScene(mFrameBuffer);
mWorld.draw(mFrameBuffer);
takes long for lowend device, for example 8 seconds for renderScene and 4 seconds for draw. Next call of this method is quick.
If I exit fragment with model if one of this methods is runnig, device stop UI thread intil methods end.
Loading is not on UI thread, and current fragment work prorerly when model loading is in progress, but if I exit this fragment, IU thread wait for end of load methods.
Calling wordl.dispose() not help.
Stop of loading thread is not possible befere loading is complete.

Any advice for solve this?
Thank you for answer

3
Support / Load OBJ with more materials
« on: February 22, 2017, 11:44:25 am »
Hi, I have 3d model with more then one material. Method to load model support only one material file. Is there any way to load model with more material files? I use Java version of JPCT to preprocessing model and material and Android JPCT to show models.

Thank you for answer.

4
Support / .obj with more textures
« on: September 01, 2016, 04:02:10 pm »
Hi,
if I load .obj file with one texture everithing is ok.
But if .obj have more that one texture, only last texture is on object.

I use this code:
Code: [Select]
Texture texture1 = new Texture(getInputStream("obj/3/texture.jpg"));
                TextureManager.getInstance().addTexture("texture", texture1);
                Texture texture2 = new Texture(getInputStream("obj/3/kola.jpg"));
                TextureManager.getInstance().addTexture("texture2", texture2);
               Texture texture3 = new Texture(getInputStream("obj/3/hlava.jpg"));
                TextureManager.getInstance().addTexture("texture3", texture3);
                object3D = loadModelOBJ("obj/3/robot.obj", "obj/3/robot.mtl", 10);
                object3D.setTexture("texture");
                object3D.setTexture("texture2");
                object3D.setTexture("texture3");

If I detele
Code: [Select]
object3D.setTexture("texture");... there is no texture on object.
If I write setTexture... than only last set texture is on model.

How can I load more texture to one model?

Thank you for any answers.

5
Support / Read .dae model
« on: June 23, 2016, 11:41:02 am »
Hi,

It there any way to read .dae model with JCPT for android?
Or some way to convert it to some posible format with texture.

Thank you for answer.

6
Support / Loader.loadOBJ is too slow
« on: April 21, 2016, 03:19:24 pm »
Hi,

I am writing application that use vuforia and jpct.
I download this sample https://github.com/TheMaggieSimpson/Vuforia559_jPCT-AE

I try to replace default cylinder object by my own .obj model, but loading of model is very slow.
For example I have model that has 0.75MB and loading takes about 45s.
Line in code that is too slow is: Object3D[] model = Loader.loadOBJ(streamObj, streamMtl, scale);
Loader is default jpct class.

After model is load everything is guick and perfect.

I try different model and different phones, but this line everytime takes 45s minimal.

My model is in assets folder in application.

Is there any way to shorten loading of .obj?

Thanks for reply.


Pages: [1]