[HELP!] The sun, it burns! (Sun position is stuffed)

Making or wanting help making your own asset? Check in here
Post Reply
Scr3amX2
Posts: 61
Joined: 2009-11-20 10:31

[HELP!] The sun, it burns! (Sun position is stuffed)

Post by Scr3amX2 »

Mmkay, so I've got a sun flare and sun up in the sky, where it should be, yet ingame I don't see the sun in the sky at all, but I see a flare through the ground at some points.

Image
Image
Last edited by Scr3amX2 on 2010-04-26 03:11, edited 1 time in total.
Rudd
Retired PR Developer
Posts: 21225
Joined: 2007-08-15 14:32

Re: [HELP!] The sun, it burns! (Sun position is stuffed)

Post by Rudd »

in teh editor click Light, click 'set sun(flare) position' then set the sun and the flare to the same position, the best way is to look at where you want the sun to be then click 'set flare/sun TO camera position'

remember to do BOTH the sun and flare

the sun determines how light interacts with objects, teh flare is the texture that comes up when you look near the sun.

hope that helps :)
Image
Scr3amX2
Posts: 61
Joined: 2009-11-20 10:31

Re: [HELP!] The sun, it burns! (Sun position is stuffed)

Post by Scr3amX2 »

That's exactly what I've done! :P

Which is causing me to be confused as to why the sunflare is showing up under ground. :? ??:
CodeRedFox
Retired PR Developer
Posts: 5919
Joined: 2005-11-08 00:47

Re: [HELP!] The sun, it burns! (Sun position is stuffed)

Post by CodeRedFox »

I have that error in the editor all the time that it will flip the flare. You just have to edit it in the sky con file. It should be a negative number. remove the negative symbol.

Just do it as your last step or dont and one at all for now.
Last edited by CodeRedFox on 2010-04-19 04:28, edited 1 time in total.
Image
"apcs, like dogs can't look up" - Dr2B Rudd
HangMan_
Posts: 1753
Joined: 2009-06-07 00:58

Re: [HELP!] The sun, it burns! (Sun position is stuffed)

Post by HangMan_ »

Good to see another kiwi mapping :D Drop me a pm mate
Image

PR Community Faction Team - "Getting Sh*t Done..."
Amok@ndy
Retired PR Developer
Posts: 5144
Joined: 2008-11-27 22:13

Re: [HELP!] The sun, it burns! (Sun position is stuffed)

Post by Amok@ndy »

you need to place the Sun direction TO the camera and the Flare direction FROM the camera

its a lil bit tricky ...
Image
dunem666
Posts: 559
Joined: 2009-06-02 13:04

Re: [HELP!] The sun, it burns! (Sun position is stuffed)

Post by dunem666 »

yeah u got it wrong way round there, SUN TO FLARE AWAY
dunem
ImageImage
ImageImage
User avatar
Mineral
Retired PR Developer
Posts: 8534
Joined: 2012-01-02 12:37
Location: Belgium

Re: [HELP!] The sun, it burns! (Sun position is stuffed)

Post by Mineral »

[R-DEV]Amok@ndy wrote:you need to place the Sun direction TO the camera and the Flare direction FROM the camera

its a lil bit tricky ...
Does the editor change somehow from the in-game flare? Cause your described method doesn't work for me.

Sundirection is pretty straight forward, look at the sun and use 'to the camera'.

But for flare:

'from camera' (no flare):
Image

'to camera':
Image

Which makes me think that it should be 'to camera' too for the flare? However I suffer from the same issue on my map with the flare being under the ground. Any clues?
Image
User avatar
Mineral
Retired PR Developer
Posts: 8534
Joined: 2012-01-02 12:37
Location: Belgium

Post by Mineral »

Bump. Issue remains had no real clue how fix it. The direction coordinates are exactly the same as the sun direction like on all pr maps.
Image
Rudd
Retired PR Developer
Posts: 21225
Joined: 2007-08-15 14:32

Re: [HELP!] The sun, it burns! (Sun position is stuffed)

Post by Rudd »

post your sky.con?
Image
User avatar
Mineral
Retired PR Developer
Posts: 8534
Joined: 2012-01-02 12:37
Location: Belgium

Re: [HELP!] The sun, it burns! (Sun position is stuffed)

Post by Mineral »

Note that I test my map always in the 1.0 test builds. But that shouldn't be a issue here.

Code: Select all

Lightmanager.init
Lightmanager.skycolor 0.498039/0.517647/0.54902
Lightmanager.ambientcolor 0.509804/0.513726/0.556863
Lightmanager.sunColor 0.698039/0.670588/0.631373
Lightmanager.sunSpecColor 1/1/1
if v_arg1 == BF2Editor
LightSettings.TerrainSunColor 0.83/0.83/0.83
LightSettings.TerrainSkyColor 0.65/0.62/0.55
LightmapSettings.waterSunIntensity 0.8
else
terrain.sunColor 0.83/0.83/0.83
terrain.GIColor 0.65/0.62/0.55
terrain.waterSunIntensity 0.8
endIf
Lightmanager.staticSunColor 0.49/0.49/0.49
Lightmanager.staticSpecularColor 0.21/0.21/0.21
Lightmanager.staticSkyColor 0.45/0.44/0.40
Lightmanager.singlePointColor 0.00/0.00/0.00
[color=Red][b]Lightmanager.sunDirection 0.560533/-0.590561/0.580552[/b][/color]
Lightmanager.enableSun 1
Lightmanager.effectSunColor 1.00/1.00/1.00
Lightmanager.effectShadowColor 1.00/1.00/1.00
Lightmanager.defaultEffectLightAffectionFactor 1
Lightmanager.hemilerpbias 1
hemiMapManager.setBaseHemiMap Levels/iron_thunder/groundhemi 0.000000/0.000000/0.000000 2048.000000 500.000000
Lightmanager.treeAmbientColor 0.77/0.77/0.77
Lightmanager.treeSunColor 0.48/0.48/0.48
Lightmanager.treeSkyColor 1.00/1.00/1.00

if v_arg1 == BF2Editor
else
run /Common/Sky/SkyDome/skydome.con
run /Common/Sky/Flare/flaresprite.con
endIf

Skydome.skyTemplate skydome
Skydome.cloudTemplate cloudlayer
Skydome.hasCloudLayer 1
Skydome.hasCloudLayer2 1
Skydome.scrolldirection 0.005/0
Skydome.scrolldirection2 0.003/0
Skydome.cloudTexture common\textures\cloud\cloud08
Skydome.cloudTexture2 common\textures\cloud\cloud01
Skydome.skyTexture common\textures\sky\skyclearironthunder
Skydome.domeRotation 0
Skydome.fadeCloudsDistances 1000/1100
Skydome.cloudLerpFactors 0.5/0.5
Skydome.flareTexture common\textures\sunflare\sunglow_32bit_star
[color=red][b]Skydome.flareDirection 0.56/-0.59/0.58[/b][/color]

Renderer.fogColor 187.00/204.00/209.00
Renderer.fogStartEndAndBase -50.00/700.00/-0.30/-100.00
Image
AfterDune
Retired PR Developer
Posts: 17094
Joined: 2007-02-08 07:19

Re: [HELP!] The sun, it burns! (Sun position is stuffed)

Post by AfterDune »

I always choose sunflare TO camera and sundirection TO camera. Always works for me :o .
Image
User avatar
Mineral
Retired PR Developer
Posts: 8534
Joined: 2012-01-02 12:37
Location: Belgium

Re: [HELP!] The sun, it burns! (Sun position is stuffed)

Post by Mineral »

Yeah same for me, just didn't do it this time :(
Image
Rabbit
Posts: 7818
Joined: 2006-12-17 15:14

Re: [HELP!] The sun, it burns! (Sun position is stuffed)

Post by Rabbit »

Try removing the negative?

Lightmanager.sunDirection 0.560533/-0.590561/0.580552

To

Lightmanager.sunDirection 0.560533/0.590561/0.580552
Image

AfSoccer "I just don't see the natural talent."
Image
Rudd
Retired PR Developer
Posts: 21225
Joined: 2007-08-15 14:32

Re: [HELP!] The sun, it burns! (Sun position is stuffed)

Post by Rudd »

yeah the values should be X/Y/Z so reverse the Y?
Image
User avatar
Mineral
Retired PR Developer
Posts: 8534
Joined: 2012-01-02 12:37
Location: Belgium

Re: [HELP!] The sun, it burns! (Sun position is stuffed)

Post by Mineral »

both sun and flare?
Image
lucky.BOY
Posts: 1438
Joined: 2010-03-03 13:25

Re: [HELP!] The sun, it burns! (Sun position is stuffed)

Post by lucky.BOY »

Doesnt sun position control how shadows are cast? So unless your lightmaps are funky too, i wouldnt touch that.
Anyway, both positions should be the same, right?
User avatar
Mineral
Retired PR Developer
Posts: 8534
Joined: 2012-01-02 12:37
Location: Belgium

Re: [HELP!] The sun, it burns! (Sun position is stuffed)

Post by Mineral »

My Flare direction had to be the inverse of the sun :s I couldn't have guessed that :D Thanks for the replies guys.
Image
Post Reply

Return to “PR:BF2 Community Modding”