Page 1 of 1

skyboxes?

PostPosted: Tue May 08, 2012 6:02 am
by Acrobat
Anyone have a link for skybox textures?

I am also looking for the tutorial on how to make a camera script to make my own skyboxes if anyone has it.

Re: skyboxes?

PostPosted: Tue May 08, 2012 6:18 pm
by mrwonko
Acrobat wrote:I am also looking for the tutorial on how to make a camera script to make my own skyboxes if anyone has it.

As in "take screenshots of a Jedi Academy scene"? It'd look somewhat like this (untested):
Code: Select all
//(BHVD)
rem ( "If I'm not mistaken, affect(player) affects the player. Scripts run via the runscript command might just be run on the player by default though, making this redundant." );

affect ( "player", /*@AFFECT_TYPE*/ FLUSH )
{
   rem ( "enable cutscene mode" );
   camera ( /*@CAMERA_COMMANDS*/ ENABLE );

   rem ( "move the camera to the player's origin" );
   camera ( /*@CAMERA_COMMANDS*/ MOVE, $get( VECTOR, "SET_ORIGIN")$, 0 );

   rem ( "Field of View of 90 Degrees" );
   camera ( /*@CAMERA_COMMANDS*/ ZOOM, 90.000, 0 );

   rem ( "rotate to different directions and wait a bit so a screenshot can be taken" );
   camera ( /*@CAMERA_COMMANDS*/ PAN, < 0.000 0.000 0.000 >, < 0.000 0.000 0.000 >, 0 );
   wait ( 2000.000 );
   camera ( /*@CAMERA_COMMANDS*/ PAN, < 0.000 90.000 0.000 >, < 0.000 0.000 0.000 >, 0 );
   wait ( 2000.000 );
   camera ( /*@CAMERA_COMMANDS*/ PAN, < 0.000 180.000 0.000 >, < 0.000 0.000 0.000 >, 0 );
   wait ( 2000.000 );
   camera ( /*@CAMERA_COMMANDS*/ PAN, < 0.000 270.000 0.000 >, < 0.000 0.000 0.000 >, 0 );
   wait ( 2000.000 );
   camera ( /*@CAMERA_COMMANDS*/ PAN, < 90.000 0.000 0.000 >, < 0.000 0.000 0.000 >, 0 );
   wait ( 2000.000 );
   camera ( /*@CAMERA_COMMANDS*/ PAN, < -90.000 0.000 0.000 >, < 0.000 0.000 0.000 >, 0 );
   wait ( 2000.000 );

   rem ( "disable cutscene mode" );
   camera ( /*@CAMERA_COMMANDS*/ DISABLE );
}

You'd use a resolution like 1024*1024, of course.