using celestia to generate a skybox

All about writing scripts for Celestia in Lua and the .cel system
Topic author
lump

using celestia to generate a skybox

Post #1by lump » 09.11.2004, 23:15

hi, i'd like to use celestia to generate a skybox. What i would like the script to take image captures of the six directions from where the observer currently is.

so far i'm trying to use the setorientation command like so:

# rotate around z to look left
setorientation { angle 3.14 axis [ 0 0 1 ] }
wait { duration 2 }
# take screenshot

#rotate around z to look right
setorientation { angle -6.28 axis [ 0 0 1 ] }
wait { duration 2 }
# take screenshot

#rotate around x axis to look down
setorientation { angle 3.14 axis [ 1 0 0 ] }
wait { duration 2 }
# take screenshot

etc.

however i'm not sure how the setorientation command works exactly. basically i would like to end up with 6 screenshots one for each side of a cube outside the view. :?

thanks.

Return to “Scripting”