Hi,
I created a box and a camera:
oCamNode = new CameraNode( "Camera Node", this.getCamera());
Vector3f max = new Vector3f(5, 5, 5);
Vector3f min = new Vector3f(-5, -5, -5);
box = new Box("Box", min, max);
rootNode.attachChild(box);
rootNode.attachChild(oCamNode);
box.setRandomColors();
With this code, I see a rotetated box:
oCamNode.setLocalTranslation(new Vector3f(0,10,-30));
oCamNode.lookAt(oCamNode.getLocalTranslation(), new Vector3f(0,0,0));
But, with this code, all is black:
oCamNode.setLocalTranslation(new Vector3f(0,10,30));
oCamNode.lookAt(oCamNode.getLocalTranslation(), new Vector3f(0,0,0));
In the first case, the camera is before the box and in the second case, the camera is behind the box. But the camera should be directed to the origine. In the first case, it's working. But not in the second case. Do you know why and how to correct it?
Best,
Andreas