16
Support / Re: Can Light focus on model?
« on: March 01, 2012, 08:33:34 am »
Get it.I will have a try.
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.
SkyBox skyBox = new SkyBox("texture", "texture", "texture", "texture", "texture", "floor", 6000);
SimpleVector skyVector = new SimpleVector(0, -2500, 0);
skyBox.setCenter(skyVector);
float distance = camera.getPosition().distance(centerVector);
camera.moveCamera(Camera.CAMERA_MOVEIN, distance);
camera.rotateCameraX((float) Math.toRadians(60));
camera.moveCamera(Camera.CAMERA_MOVEOUT, distance);
camera.lookAt(centerVector);
SkyBox skyBox = new SkyBox("texture", "texture", "texture", "texture",
"texture", "floor", 2000);
skyCamera = skyBox.getWorld().getCamera();
skyCamera.moveCamera(camera.getDirection(), scale * scaleCoef);
Img Normal: