Author Topic: load a .obj file in JPCT-AE demo  (Read 20992 times)

Offline nico_r_a

  • byte
  • *
  • Posts: 48
    • View Profile
Re: load a .obj file in JPCT-AE demo
« Reply #30 on: August 02, 2011, 04:23:48 pm »
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.
« Last Edit: August 02, 2011, 04:29:00 pm by nico_r_a »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
Re: load a .obj file in JPCT-AE demo
« Reply #31 on: August 02, 2011, 04:29:34 pm »
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...)?
« Last Edit: August 02, 2011, 04:34:57 pm by EgonOlsen »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
Re: load a .obj file in JPCT-AE demo
« Reply #32 on: August 02, 2011, 04:34:16 pm »
BTW: DDMS and Logcat:


Offline nico_r_a

  • byte
  • *
  • Posts: 48
    • View Profile
Re: load a .obj file in JPCT-AE demo
« Reply #33 on: August 02, 2011, 04:44:18 pm »
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

Offline nico_r_a

  • byte
  • *
  • Posts: 48
    • View Profile
Re: load a .obj file in JPCT-AE demo
« Reply #34 on: August 02, 2011, 04:47:36 pm »
and in the logcat there are information on my file obj. so sorry but i can't give this

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
Re: load a .obj file in JPCT-AE demo
« Reply #35 on: August 02, 2011, 04:51:01 pm »
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?

Offline nico_r_a

  • byte
  • *
  • Posts: 48
    • View Profile
Re: load a .obj file in JPCT-AE demo
« Reply #36 on: August 02, 2011, 04:54:48 pm »
a acer stream

and i have 14000 vertices
and 15000 faces
so it's lot?
« Last Edit: August 02, 2011, 04:58:16 pm by nico_r_a »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
Re: load a .obj file in JPCT-AE demo
« Reply #37 on: August 02, 2011, 05:18:44 pm »
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.

Offline nico_r_a

  • byte
  • *
  • Posts: 48
    • View Profile
Re: load a .obj file in JPCT-AE demo
« Reply #38 on: August 02, 2011, 05:30:58 pm »
but my file obj have 80 objects

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
Re: load a .obj file in JPCT-AE demo
« Reply #39 on: August 02, 2011, 09:01:02 pm »
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.

Offline nico_r_a

  • byte
  • *
  • Posts: 48
    • View Profile
Re: load a .obj file in JPCT-AE demo
« Reply #40 on: August 03, 2011, 09:16:33 am »
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?"
« Last Edit: August 03, 2011, 03:10:43 pm by nico_r_a »

Offline nico_r_a

  • byte
  • *
  • Posts: 48
    • View Profile
Re: load a .obj file in JPCT-AE demo
« Reply #41 on: August 04, 2011, 02:15:48 pm »
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?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
Re: load a .obj file in JPCT-AE demo
« Reply #42 on: August 04, 2011, 02:23:03 pm »
You can't have multiple ressource with the name name before the suffix. Please learn how to use your tools.