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=LemMurebTuwI 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