generating a game skybox with Celestia
Posted: 24.05.2007, 07:25
Hi. In computer games, "skyboxes" are basically inverted textured cubes that give the illusion of being the backdrop landscape/sky for the game world. When the player moves, the skybox moves with him, giving the illusion that the player never reaches the cube.
Celestia seems like an ideal program to generate a realistic star skybox for the game I am creating. I think that I need to set the FOV to 90, which is easily accomplished by:
set { name "FOV" value 90.0 }
But I am a bit confused by the scripting for movement/rotating the camera.
I need to set the camera by the sun or another location in space. Then I need to precisely rotate the camera 90 degrees in different directions. I can then manually take screenshots. These screenshots will become the 6 textured sides of the cube. Executing the following code seems to keep changing the position of the camera each time it is executing (with the simulation paused), but I'm not sure I understand why:
#goto { [0.0 0.0 0.0] }
setposition {
base [ 0.0 0.0 0.0 ]
offset [ 0.0 0.0 0.0 ] }
setorientation {
angle 0.00
axis [ 0.00 0.0 0.0 ] }
Does anybody have any suggestions? Like I said, I just need to know how to set the camera at a certain coordinate, and then rotate the camera from that reference point precisely in 90 degree increments.
Celestia seems like an ideal program to generate a realistic star skybox for the game I am creating. I think that I need to set the FOV to 90, which is easily accomplished by:
set { name "FOV" value 90.0 }
But I am a bit confused by the scripting for movement/rotating the camera.
I need to set the camera by the sun or another location in space. Then I need to precisely rotate the camera 90 degrees in different directions. I can then manually take screenshots. These screenshots will become the 6 textured sides of the cube. Executing the following code seems to keep changing the position of the camera each time it is executing (with the simulation paused), but I'm not sure I understand why:
#goto { [0.0 0.0 0.0] }
setposition {
base [ 0.0 0.0 0.0 ]
offset [ 0.0 0.0 0.0 ] }
setorientation {
angle 0.00
axis [ 0.00 0.0 0.0 ] }
Does anybody have any suggestions? Like I said, I just need to know how to set the camera at a certain coordinate, and then rotate the camera from that reference point precisely in 90 degree increments.