load a .obj file in JPCT-AE demo

Started by nico_r_a, July 21, 2011, 09:50:18 AM

Previous topic - Next topic

nico_r_a

#30
ok thank you, it's great i have done a rotation of 90 and it is better.

the problem with the 3ds is that when i launch the application in the emulator, after 30min there is nothing.

EgonOlsen

#31
I...need...that...file...or some other file that shows similar behaviour on your machine. Without that, i can't tell what the problem is. My guess is, that the machine you are using for development is dog slow...what are you using (CPU, Mhz, memory, OS...)?

EgonOlsen


nico_r_a

i have a intel core 2 duo E7400
2.8Ghz
with 3.5Go RAM

and how do you extract the logcat? because i can copy the text.

but i have test on the mobile android and it s low very low too

nico_r_a

and in the logcat there are information on my file obj. so sorry but i can't give this

EgonOlsen

Then, i'm afraid, i can't help. My guess is, that the mesh's complexity is simply beyond anything that is feasible on a mobile device, but i can't be sure if i don't have the file nor the log output. Can you at least tell me about the polygon/vertex count of that monster file?

Which device have you used for testing?

nico_r_a

#36
a acer stream

and i have 14000 vertices
and 15000 faces
so it's lot?

EgonOlsen

It's not small, but it shouldn't be a problem either. It tried to load this one: http://jpct.de/download/tmp/hose_poser.obj...it loads in a few seconds on the Nexus S and displays fine. Maybe you are having some OutOfMemory or other error and are just not noticing it...so that you wait for something that never happens? Please try that test object instead of yours to see what happens. If it works ok, try to serialize your object with desktop jPCT and load that one.

nico_r_a


EgonOlsen

So be it. What am i supposed to do now? Switch off the magic "sleep-30min-if-the-file-contains-dozens-of-objects"-switch? I don't have that file, i don't have that log, i don't have a test case. I'm as much stuck as you are.

nico_r_a

#40
ok, but i can t give this file
thank you for the advices, i am going to try to improve my file.

i can convert my file in 3ds but are there another type which is better to load in the android?
and can you help me on the question who are on this topic please "Re: How can I serialize a mesh?"

nico_r_a

i have this in my console
[2011-08-04 14:19:07 - file4] res\raw\scene.mtl:0: error: Resource entry scene is already defined.
[2011-08-04 14:19:07 - file4] res\raw\scene.3ds:0: Originally defined here.
[2011-08-04 14:19:07 - file4] res\raw\tempera.mtl:0: error: Resource entry tempera is already defined.
[2011-08-04 14:19:07 - file4] res\raw\tempera.3ds:0: Originally defined here.
what shoud i do?

EgonOlsen

You can't have multiple ressource with the name name before the suffix. Please learn how to use your tools.