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

Pages: [1]
1
Support / jpct-ae for iOS
« on: December 04, 2012, 06:45:16 am »
Hi Egon,

Google recently published a Java to Objective C translation tool: http://code.google.com/p/j2objc/
Do you think it is possible to port jpct-ae to iOS using the tool? By the way, I'm really thankful for your jpct-ae engine, it works great!

Best,
Jack

2
Support / Skybox does not work poperly
« on: October 11, 2011, 01:35:52 pm »
Thanks a lot for providing JPCT such a great game engine. It makes my dream easier to touch. :)
I am using JPCT's skybox but it doesn't work properly for me and I couldn't figure out what I have done wrong. Please see the following video:
http://www.youtube.com/watch?v=LemMurebTuw

I set the textures as required and have the following related code:
skyBox = new SkyBox(10000);
....
skyBox.render(world, fb);

Here is the camera:
   private void moveCamera() {
      SimpleVector oldCamPos = camera.getPosition();
      oldCamPos.scalarMul(9f);
      SimpleVector carCenter = car.getTransformedCenter();
      SimpleVector zOffset = car.getZAxis();
      zOffset.scalarMul(-250f);
      SimpleVector camPos = new SimpleVector(carCenter);
      camPos.add(camYOffset);
      camPos.add(zOffset);
      camPos.add(oldCamPos);
      camPos.scalarMul(0.1f);
      camera.setPosition(camPos);
      camera.lookAt(carCenter);
   }

Any ideas about what is wrong? Is it because the camera is not in the right place? Your help is highly appreciated.

Regards,
Jack

Pages: [1]