Thanks Egon, i did that, but something entirely different happened -- the model appeared to revolve around an orbit.
Actually I solved my problem, I just to align the camera to the object then looked at it.
I'm using the JPCT-AE Hello World code but changed the part where I load terra.asc in place of Primitives.getCube().
So I'm assuming when the model from terra.asc was loaded, it's center wasn't at 0,0,0 which is why I had to align the camera first. Is that correct?
I really appreciate this, I've just started to learn to use this stuff.
Actually I solved my problem, I just to align the camera to the object then looked at it.
Code Select
cam = world.getCamera();
cam.setPosition(sphere.getTransformedCenter().x, sphere.getTransformedCenter().y, -5);
cam.lookAt(sphere.getTransformedCenter());
I'm using the JPCT-AE Hello World code but changed the part where I load terra.asc in place of Primitives.getCube().
So I'm assuming when the model from terra.asc was loaded, it's center wasn't at 0,0,0 which is why I had to align the camera first. Is that correct?
I really appreciate this, I've just started to learn to use this stuff.