1 registered members (TipmyPip),
18,619
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
moving sun in game?
#330835
06/30/10 06:23
06/30/10 06:23
|
Joined: Jan 2010
Posts: 145
Doc_Savage
OP
Member
|
OP
Member
Joined: Jan 2010
Posts: 145
|
is there a way i can get the sun to move? ive tried this:
var MoveSun;
function MoveSun_startup()
{
while(1)
{
if(MoveSun)
{
sun_angle.pan += 1.25 * time_frame;
sun_angle.pan %= 360;
sun_angle.tilt = fsin(sun_angle.pan, 45) + 45;
//sun_light = 2 * sun_angle.tilt;
sun_light = 500;
}
wait(1);
}
}
nothing works... help?
Do not concern yourself with my race, personality or origin. find my record in the pits, and then make your wager.
|
|
|
Re: moving sun in game?
[Re: Roel]
#330904
06/30/10 18:26
06/30/10 18:26
|
Joined: Jan 2010
Posts: 145
Doc_Savage
OP
Member
|
OP
Member
Joined: Jan 2010
Posts: 145
|
hm...... how can i get them to move?
Do not concern yourself with my race, personality or origin. find my record in the pits, and then make your wager.
|
|
|
Re: moving sun in game?
[Re: alibaba]
#330941
07/01/10 02:56
07/01/10 02:56
|
Joined: Jan 2010
Posts: 145
Doc_Savage
OP
Member
|
OP
Member
Joined: Jan 2010
Posts: 145
|
shadowmapping... hm... i suppose i can get away with using this code in an open enviroment. because thats where i need it really, is there any way to rig this to some sort of sun object/glare sprite that represents the sun?
Do not concern yourself with my race, personality or origin. find my record in the pits, and then make your wager.
|
|
|
|