Posted By: hoanglaota
How to create skybox - 03/19/09 16:14
Anybody help me how to creating sky ?

tilt = -20; //move the picture by xx degres down //entry: scale in X dimention scale_x = 0.025; //entry: scale in y dimention scale_y = 0.025; alpha = 100; //entry: animation speed x speed_u = 1.5; // 1.5 //entry: animation speed y speed_v = 1.0; //0.0 flags = scene,transparent, overlay, visible; //dome
// define a splash screen with the required A4/A5 logo
bmap splashmap = <logodark.pcx>; // the default logo in templates
panel splashscreen {
bmap = splashmap;
flags = refresh,d3d;
}
////////////////////////////////////////////////////////////////////////////
// The following script controls the sky
sky horizon_sky {
// A backdrop texture's horizontal size must be a power of 2;
// the vertical size does not matter
type = <horizon.pcx>;
tilt = -10;
flags = scene,overlay,visible;
layer = 3;
}
/////////////////////////////////////////////////////////////////
// The main() function is started at game start
function main()////////////////////////////////////////////////////////////////////////////
// The following script controls the sky
sky horizon_sky {
// A backdrop texture's horizontal size must be a power of 2;
// the vertical size does not matter
type = <horizon.pcx>;
tilt = -10;
flags = scene,overlay,visible;
layer = 3;
}