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

Pages: [1]
1
Projects / Mad Racer
« on: May 30, 2011, 08:04:39 pm »
Mad racer with his girlfriend live by no rules. With his bike and destructive weapon he's going on road...

Full 3D graphics.
Accelerometer controls.
Outstanding music.
Honest police.
Dizzying chases.
Dynamic gameplay!

I hope you like it.  ;D

2
Bugs / Unsupported Texture width
« on: May 02, 2011, 08:51:56 pm »
Hello world example gives "Unsupported Texture width" error on emulator and on HTC phone, but on my LG P500 all works ok.

Code: [Select]
Texture texture = new Texture(BitmapHelper.rescale(BitmapHelper.convert(getResources().getDrawable(R.drawable.icon)), 64, 64));
TextureManager.getInstance().addTexture("texture", texture);

TextureManager.getInstance().addTexture("0", new Texture(getResources().getDrawable(R.raw.zero),true));

Quote
05-02 18:45:11.181: INFO/jPCT-AE(656): Loading Texture...
05-02 18:45:11.201: INFO/jPCT-AE(656): Loading Texture...
05-02 18:45:11.211: INFO/jPCT-AE(656): [ 1304361911212 ] - ERROR: Unsupported Texture width: 96
05-02 18:45:11.221: INFO/jPCT-AE(656): [ 1304361911221 ] - ERROR: java.lang.RuntimeException: [ 1304361911212 ] - ERROR: Unsupported Texture width: 96
05-02 18:45:11.221: INFO/jPCT-AE(656):     at com.threed.jpct.Logger.log(Logger.java:179)
05-02 18:45:11.221: INFO/jPCT-AE(656):     at com.threed.jpct.Texture.loadTexture(Texture.java:687)
05-02 18:45:11.221: INFO/jPCT-AE(656):     at com.threed.jpct.Texture.<init>(Texture.java:190)
05-02 18:45:11.221: INFO/jPCT-AE(656):     at com.threed.jpct.Texture.<init>(Texture.java:226)
05-02 18:45:11.221: INFO/jPCT-AE(656):     at com.threed.jpct.example.HelloWorld$MyRenderer.onSurfaceChanged(HelloWorld.java:190)
05-02 18:45:11.221: INFO/jPCT-AE(656):     at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1120)
05-02 18:45:11.221: INFO/jPCT-AE(656):     at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:975)
05-02 18:45:11.251: INFO/ActivityManager(438): Displayed activity com.threed.jpct.example/.HelloWorld: 1533 ms (total 1533 ms)
05-02 18:45:11.261: WARN/dalvikvm(656): threadid=15: thread exiting with uncaught exception (group=0x4001b188)
05-02 18:45:11.271: ERROR/AndroidRuntime(656): Uncaught handler: thread GLThread 8 exiting due to uncaught exception
05-02 18:45:11.301: ERROR/AndroidRuntime(656): java.lang.RuntimeException: [ 1304361911221 ] - ERROR: java.lang.RuntimeException: [ 1304361911212 ] - ERROR: Unsupported Texture width: 96
05-02 18:45:11.301: ERROR/AndroidRuntime(656):     at com.threed.jpct.Logger.log(Logger.java:179)
05-02 18:45:11.301: ERROR/AndroidRuntime(656):     at com.threed.jpct.Texture.loadTexture(Texture.java:687)
05-02 18:45:11.301: ERROR/AndroidRuntime(656):     at com.threed.jpct.Texture.<init>(Texture.java:190)
05-02 18:45:11.301: ERROR/AndroidRuntime(656):     at com.threed.jpct.Texture.<init>(Texture.java:226)
05-02 18:45:11.301: ERROR/AndroidRuntime(656):     at com.threed.jpct.example.HelloWorld$MyRenderer.onSurfaceChanged(HelloWorld.java:190)
05-02 18:45:11.301: ERROR/AndroidRuntime(656):     at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1120)
05-02 18:45:11.301: ERROR/AndroidRuntime(656):     at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:975)
05-02 18:45:11.301: ERROR/AndroidRuntime(656):     at com.threed.jpct.Logger.log(Logger.java:179)
05-02 18:45:11.301: ERROR/AndroidRuntime(656):     at com.threed.jpct.Logger.log(Logger.java:138)
05-02 18:45:11.301: ERROR/AndroidRuntime(656):     at com.threed.jpct.Texture.loadTexture(Texture.java:717)
05-02 18:45:11.301: ERROR/AndroidRuntime(656):     at com.threed.jpct.Texture.<init>(Texture.java:190)
05-02 18:45:11.301: ERROR/AndroidRuntime(656):     at com.threed.jpct.Texture.<init>(Texture.java:226)
05-02 18:45:11.301: ERROR/AndroidRuntime(656):     at com.threed.jpct.example.HelloWorld$MyRenderer.onSurfaceChanged(HelloWorld.java:190)
05-02 18:45:11.301: ERROR/AndroidRuntime(656):     at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1120)
05-02 18:45:11.301: ERROR/AndroidRuntime(656):     at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:975)
05-02 18:45:11.371: INFO/Process(438): Sending signal. PID: 656 SIG: 3
05-02 18:45:11.371: INFO/dalvikvm(656): threadid=7: reacting to signal 3
05-02 18:45:11.371: ERROR/dalvikvm(656): Unable to open stack trace file '/data/anr/traces.txt': Permission denied
05-02 18:45:11.590: ERROR/gralloc(438): [unregister] handle 0x4e45f0 still locked (state=40000001)
05-02 18:45:14.560: INFO/Process(656): Sending signal. PID: 656 SIG: 9
05-02 18:45:14.580: INFO/WindowManager(438): WIN DEATH: Window{44dc24d8 com.threed.jpct.example/com.threed.jpct.example.HelloWorld paused=false}
05-02 18:45:14.580: INFO/ActivityManager(438): Process com.threed.jpct.example (pid 656) has died.
05-02 18:45:14.600: INFO/WindowManager(438): WIN DEATH: Window{44df45d8 SurfaceView paused=false}
05-02 18:45:14.640: INFO/UsageStats(438): Unexpected resume of com.android.launcher while already resumed in com.threed.jpct.example
05-02 18:45:15.021: WARN/InputManagerService(438): Got RemoteException sending setActive(false) notification to pid 656 uid 10028
05-02 18:45:20.361: DEBUG/dalvikvm(587): GC freed 123 objects / 5416 bytes in 67ms
Texture size is 64x64 not 96x96 :)

Here this project from Eclipse:
http://zalil.ru/30966425

3
Support / How to make flare zoom?
« on: April 29, 2011, 12:46:15 am »
I want to make flare effect for cars. Right now flare is plane object with texture and billboarding. Now I need that flare become smaller when it come closer to camera and larger if go from camera. I have only one idea - to set scale flares every frame, depending on its position.
Maybe JPCT have some feature for invert Zaxis zoom or to make it more easy for phone?
Sorry if I miss something in documentation.

4
Support / No setEnvmapMode?
« on: April 27, 2011, 11:47:19 pm »
I try to make reflection like on weapon in fps example. But seems there is no setEnvmapMode method in JPCT-AE?

5
Support / Fog disappears after resume app
« on: April 25, 2011, 10:53:24 pm »
Hello again!
I add code to HelloWorld:

Code: [Select]
public void onSurfaceChanged(GL10 gl, int w, int h) {
if (fb != null) {
fb.dispose();
}
fb = new FrameBuffer(gl, w, h);

if (master == null) {

world = new World();
world.setAmbientLight(20, 20, 20);

world.setFogging(World.FOGGING_ENABLED);
world.setFogParameters(40,0,0,0);

And now if I minimize app and resume it - fog disappears.

Before minimize:

After:

6
Support / Rendering distance
« on: April 20, 2011, 08:26:01 pm »
Hello again forum! I have Object3D model=Primitives.getCylinder(4,100,10), and I can't see this object at distance Z > 1000 from camera position. But if I move object Z back to camera (z<1000) I can see object. How can I change render distance?

Code: [Select]
MODEL=Primitives.getCylinder(4,100,10);
MODEL.setTexture("building");
MODEL.build();

SimpleVector sv=world.getCamera().getPosition();
sv.x-=300;
sv.z+=3000;
MODEL.setOrigin(sv);



7
Support / How to get object ID by checkForCollisionSpherical?
« on: March 24, 2011, 11:03:18 pm »
I've got some plane objects - space ships. Check collisions between them works great by checkForCollisionSpherical, but checkForCollisionSpherical translate ships by Zaxis, I only need collision object id. checkForCollision always return -100 (NO_OBJECT), because its plane objects I guess. Sorry for bad english.

8
Support / Texture too dark
« on: March 16, 2011, 09:54:50 pm »
Hello JPCT forum. Sorry for bad English. I try to make simple 2d game on JPCT-AE, I make 3x3 space background for parallax effect. On android 2.1 it work ok, but on android 2.2 textures are too dark. Hope you can help me.
(I change texture to spaceship for debug)
On Android 2.1:

On Android 2.2:

Source:
http://zalil.ru/30685440

Pages: [1]