This page is under construction
archives/bf1942/levels/rf_labyrinth.rfa
bf1942/levels/rf_labyrinth/Init/SkyAndSun.con
rem *********************************************
rem Created by Battlecraft 1942. Copyright (c)2003,2004 Digital Illusions CE
rem *********************************************
TextureManager.mipmaps 0

ObjectTemplate.create LensFlare TSun
ObjectTemplate.setLensFlareCount 5
ObjectTemplate.setBackFlareCount 0
ObjectTemplate.setCoronaCount 2
ObjectTemplate.initLensFlares
ObjectTemplate.setVisibilityAngleDeg 360

Object.create TSun
Object.isSaveable 0
Object.name sun
ObjectTemplate.setflarefadeall 0.1
ObjectTemplate.setcoronafadeall 0.3

rem
rem *** Example cloud system coding for El Alamein by Apache Thunder. Mesh/UVMap rebuilt from scratch. ******
rem
rem *** Sun/Lensflare objects removed since Lensflare system doesn't work. ***
rem
TextureManager.mipmaps 0

rem
rem *** Sky Geometry Template. ***

GeometryTemplate.create StandardMesh SkyBox
GeometryTemplate.file Sky_Elala_m1

Sky.initSky

rem
rem *** Sets fog. Experiment with it to see if it has any effect ***
rem
Sky.setCloudFog 1

rem
rem *** Cloud Geometry (check to ensure it will fit inside your custom skybox mesh) ***
rem

GeometryTemplate.create StandardMesh Cloud
GeometryTemplate.file ../bf1942/levels/RF_Labyrinth/standardMesh/cloud


rem
rem *** Each AddCloud entry creates a new cloud layer ***
rem
Sky.addCloud
Cloud.setName cloud_0
Cloud.setSrcBlend BMSourceAlpha
Cloud.setDstBlend BMInvSourceAlpha
rem
rem *** setTexScale command alters size of clouds. Smaller numbers = larger clouds. ***
rem
Cloud.setTexScale 4
rem
rem *** Sets direction and speed of cloud scrolling. Vec2 float values. ***
rem
Cloud.setSpeed 0.01 0.01
rem
rem *** Sets Height of cloud layer. ***
rem
Cloud.setHeight 3000
rem
rem *** Appears to set a texture. Unknown if it is able to override texture assigned by RS file. ***
rem *** Experiment to find out. ***
rem
cloud.setTexture cloud3


rem
rem *** Second cloud layer ***
rem
Sky.addCloud
Cloud.setName cloud_1
Cloud.setSrcBlend BMSourceAlpha
Cloud.setDstBlend BMInvSourceAlpha
Cloud.setTexScale 1
Cloud.setSpeed 0.008 0.008
Cloud.setHeight 2000
cloud.setTexture cloud6

rem
rem *** Appears to alter global position of all clouds as group. ***
rem *** Experiment to see what it does. ***
rem
Sky.changeOfsCloudHeight 2500
Sky.changeOfsCloudDist 333

rem
rem *** Standard Sky settings ***
rem
sky.changeOfsSkyHeight 50
Sky.setRotAngle 0
sky.sunLightDirectionVec -0.75/0.46/0.46

Sky.setSun sun
sky.changeOfsSkyHeight 150
sky.setRotAngle 180
sky.sunLightDirectionVec -0.191000/0.450000/-0.873000
TextureManager.mipmaps 1