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 - PaniX

Pages: 1 [2]
16
Support / Re: JPCT-AE error loading models (.md2, .3ds ...)
« on: September 16, 2013, 01:23:14 pm »
May it be that there is something wrong with the inputstream? Not the object, I mean in the code? A wrong import? I'm not sure, but I think I've changed something in the imports.

17
Support / Re: JPCT-AE error loading models (.md2, .3ds ...)
« on: September 16, 2013, 06:24:44 am »
The logcat doesn't help either:
Code: [Select]
Android Log: Sep 16, 2013 06:21:28 +0200 - I/ActivityManager(  236): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10304000 cmp=free.codeninja.theone/.MainActivity} from pid 314
I/ActivityManager(  236): Start proc free.codeninja.theone for activity free.codeninja.theone/.MainActivity: pid=1259 uid=10085 gids={}
I/ActivityManager(  236): Displayed free.codeninja.theone/.MainActivity: +657ms
E/AndroidRuntime( 1259): at free.codeninja.theone.MainActivity$MyRenderer.onSurfaceChanged(MainActivity.java:175)
W/ActivityManager(  236):   Force finishing activity free.codeninja.theone/.MainActivity
I/ActivityManager(  236): Process free.codeninja.theone (pid 1259) has died.

18
Support / JPCT-AE error loading models (.md2, .3ds ...)[SOLVED]
« on: September 15, 2013, 07:07:03 pm »
Hello guys,
as I'm an Android and JPCT-AE noob, I have to ask something.
I'm currently playing a little bit around with the HelloWorld-AE example, and found a problem.
The normal
Code: [Select]
cube = Primitives.getCube(10.0f);
cube.calcTextureWrap();
cube.setTexture("texture");
cube.strip();
cube.build();
method works. But when I try to load my own Model instead, like this:
Code: [Select]
cube = Loader.loadMD2(getResource().openRawResource(R.raw.gun), 0.5f);
//cube = Primitives.getCube(10.0f);
cube.calcTextureWrap();
cube.setTexture("texture");
cube.strip();
cube.build();
the Application crashs. I'm not sure why, as it worked already for me. The same happens when I try to load a 3DS file, like it's written in the wiki.
Does someone knows what's the problem?
Thanks
PaniX

Pages: 1 [2]