Adjusting the Sunflare Brightness?
Moderator: Moderators
-
Phantomwarrior
- Corporal
- Posts: 27
- Joined: Fri Jan 20, 2006 1:42 am
- Location: Bakersfield, California
Adjusting the Sunflare Brightness?
We are building a stage that has a morning sun coming up in the East. The sunflare is perfectly placed on the horizon and is a key element of the battle. As you probably know, Generals throughout the ages have used the sun as a factor in battle for defense and for attack. I would like to be able to tone down the amount of sunflare so that it is more realistic and not so overwhelming. Is there a way to do this? There must be a script command that sets the brightness of the sun. I would appreciate mapping guru help on this one.
Phantomwarrior
-
PKM
- General
- Posts: 1888
- Joined: Tue Aug 09, 2005 4:43 pm
- Location: Philadelpia but stuck in San Antonio TX (hell)
you need to change the values for sunflare in your entity window ( press "n" in radient while you have any worldspawn brush highlighted.
key : sunflare
value : XXXX XXXX XXXX
example ( battle in the bobcage m3l2)
key : sunflare
value : 4096 -5604 1200
suggest finding and downloading the excel spreadsheet for world_spawn keys and values. if you can't find it i do have a copy.
key : sunflare
value : XXXX XXXX XXXX
example ( battle in the bobcage m3l2)
key : sunflare
value : 4096 -5604 1200
suggest finding and downloading the excel spreadsheet for world_spawn keys and values. if you can't find it i do have a copy.
i'm not f****** angry, i'm from philadelphia .


-
Rookie One.pl
- Site Admin
- Posts: 2752
- Joined: Fri Jan 31, 2003 7:49 pm
- Location: Nowa Wies Tworoska, Poland
- Contact:
-
Phantomwarrior
- Corporal
- Posts: 27
- Joined: Fri Jan 20, 2006 1:42 am
- Location: Bakersfield, California
Dosen't Seem to Reduce Glare?
I haven't spent a lot of time with Sunflare as key and giving it values as suggested, but it didn't seem to reduce glare or brightness?
Phantomwarrior
sunflare
I don't see "sunflare" as part of worldspan. As far as I know it is either on or off and brightness can't be changed. Here is a list of sun keys from the worldspawn.cpp file.
"suncolor" color (and intensity) of the sun. Full daylight would be "70 70 70"
"sundiffuse" fraction of the sunlight to make diffuse (default 1)
"sundiffusecolor" color of the diffuse sunlight. Uses the same value scale as suncolor.
"sundirection" direction of the sun in the level
"sunflaredirection" allows you to specify a direction of the sun flare. Defaluts to using the direction specified for the sunlight.
"sunflarename" sets the flare to use for the sun (default is sun)
"skyalpha" initial value of the sky's alpha, defaults to 1
Notice that "sunflarename" defaults to "sun" as the value. This would suggest there are other sunflares you can use, but I have never seen any. If you use "none" as the value the sunflare goes away.
"suncolor" color (and intensity) of the sun. Full daylight would be "70 70 70"
"sundiffuse" fraction of the sunlight to make diffuse (default 1)
"sundiffusecolor" color of the diffuse sunlight. Uses the same value scale as suncolor.
"sundirection" direction of the sun in the level
"sunflaredirection" allows you to specify a direction of the sun flare. Defaluts to using the direction specified for the sunlight.
"sunflarename" sets the flare to use for the sun (default is sun)
"skyalpha" initial value of the sky's alpha, defaults to 1
Notice that "sunflarename" defaults to "sun" as the value. This would suggest there are other sunflares you can use, but I have never seen any. If you use "none" as the value the sunflare goes away.
-
PKM
- General
- Posts: 1888
- Joined: Tue Aug 09, 2005 4:43 pm
- Location: Philadelpia but stuck in San Antonio TX (hell)
why you fellas question me.....
sunflare
-748 1428 1772
i began looking for that part of the script when i had gone into a couple servers using southern france and/or algiers and both had massive bright coronas/halos/sunflares that all but blinded you if you looked in the direction of ths sun/moon.
dammit, now you guys have forced my hand and only you all are to blame for me taking a dump on your lawns. i love you guys but what is , is what is.
also used in m5l3 The Bridge
m3l2 Battle in the Bocage
ambientlight
10 10 10
farplane
6200
farplane_color
0.62 0.62 0.61
spawnflags
2
sundiffuse
3
sundirection
315 315 0
sunflare
4096 -5604 1200
sunlight
90 90 90
sunflare
-748 1428 1772
i began looking for that part of the script when i had gone into a couple servers using southern france and/or algiers and both had massive bright coronas/halos/sunflares that all but blinded you if you looked in the direction of ths sun/moon.
dammit, now you guys have forced my hand and only you all are to blame for me taking a dump on your lawns. i love you guys but what is , is what is.
i'm not f****** angry, i'm from philadelphia .


-
Rookie One.pl
- Site Admin
- Posts: 2752
- Joined: Fri Jan 31, 2003 7:49 pm
- Location: Nowa Wies Tworoska, Poland
- Contact:
Re: sunflare
Just a little diggression.
tltrude wrote:Notice that "sunflarename" defaults to "sun" as the value. This would suggest there are other sunflares you can use, but I have never seen any. If you use "none" as the value the sunflare goes away.
global/lensflaredefs.txt wrote://-----------------------------------------------------------------------------
// Default, day-time sun flare
begin sun
//dot_min .8
//dot_min .95
//dot_min .78
dot_min .55
flare 1.4 0 textures/sprites/sunflare_main
//flare 1 .15 textures/sprites/sunflare_main
//flare .15 .35 textures/sprites/sunflare_middle
//flare .3 .75 textures/sprites/sunflare_middle
//flare .2 .85 textures/sprites/sunflare_furthest
//flare .1 1 textures/sprites/sunflare_furthest
//fullscale .3
fullscale .6
fullscreen textures/jack/whitefade
fullfade 600
end
name
I think Rookie One has found it. I never spotted that text file in global.
I haven't tested it. The global Lens flare definition file has a second sunflarename, "sunset1" that you can try. And, it says that the "fullscale" value is how bright the screen can get.
Code: Select all
//-----------------------------------------------------------------------------
// Sun 2 by tltrude, lower numbers than default.
begin sun2
dot_min .8
//dot_min .95
//dot_min .78
//dot_min .55
flare 1 0 textures/sprites/sunflare_main
//flare 1.4 0 textures/sprites/sunflare_main
//flare 1 .15 textures/sprites/sunflare_main
//flare .15 .35 textures/sprites/sunflare_middle
//flare .3 .75 textures/sprites/sunflare_middle
//flare .2 .85 textures/sprites/sunflare_furthest
//flare .1 1 textures/sprites/sunflare_furthest
fullscale .3
//fullscale .6
fullscreen textures/jack/whitefade
fullfade 300
//fullfade 600
end



