www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: hogus on August 16, 2010, 02:48:01 pm

Title: Has anyone got this running on the 2.1 Emulator
Post by: hogus on August 16, 2010, 02:48:01 pm
I've had endless hassles trying to get even basic jpct apps going on the Android Emulator.

I have done a number of tests using OpenGL on the 2.1 Android Emulator, so i'm pretty sure that isn't the problem, it should be able to deal with basic drawing and rendering

I first tried the demo application, which for some reason crashed on Config.maxPolysVisible = 5000;

When commenting this out it crashes later on.

I then tried the HelloWorld application in the wiki which fell over when it hit:
private RGBColor back = new RGBColor(50, 50, 100);

Deferring this to the moment that the clear actually gets called didn't seem to work either the application crashes before it even gets around to starting the main activity, which leads me to believe that there's something happening in a static block in the compiled jar somewhere.

Any ideas?
Title: Re: Has anyone got this running on the 2.1 Emulator
Post by: EgonOlsen on August 16, 2010, 02:57:22 pm
RGBColor is a stupid bean with some getters and setters that has no dependencies on anything else. I don't see why this should fail...any exception printed out or does the whole process terminates?
Title: Re: Has anyone got this running on the 2.1 Emulator
Post by: EgonOlsen on August 16, 2010, 02:59:28 pm
Are you sure what you got the correct jar (http://www.jpct.net/jpct-ae/download/alpha/jpct_ae.jar (http://www.jpct.net/jpct-ae/download/alpha/jpct_ae.jar)) and not the one for desktop jPCT?
Title: Re: Has anyone got this running on the 2.1 Emulator
Post by: Darkflame on August 17, 2010, 01:11:58 pm
Works fine on the emulator for me. Very slow, but certainly works.
Title: Re: Has anyone got this running on the 2.1 Emulator
Post by: EgonOlsen on August 17, 2010, 10:17:19 pm
Just tried it in the 2.2 emulator, it works just fine.