Jump to content
Official BF Editor Forums
Sign in to follow this  
Keno

Cant get the lightmaps to work

Recommended Posts

I have problems generating lightmaps, kind of the same described here actually: http://bfeditor.org/forums/index.php?showt...=atlas+lightmap . But since my map is homemade that thread aint too helpful.

Anyways, when I generate lightmaps every object ingame becomes very dark. I have no idea why.

I have set the sun and flare direction and selected "day". Ive tried to generate both medium and final with everything selected. Still doesnt work.

I tried to understand this thread: http://bfeditor.org/forums/index.php?showtopic=1783 but that was like a foreign launguage to me :)

Anyway, this is how the objects look:

whyyy.JPG

Share this post


Link to post
Share on other sites

TerrainLight.con

rem ******** Lightmap Generation Settings ********

if v_arg1 == BF2Editor

LightMapGeneration.init

LightMapGeneration.GILightsBaseDir 0/0.33/-0.66

LightMapGeneration.GILightsIntensity 0.33

LightMapGeneration.GILightsShadowIntensity 1

LightMapGeneration.GILightsFov 45

LightMapGeneration.UseGITopLight 1

LightMapGeneration.GITopLightIntensity 0.1

LightMapGeneration.GILightsViewDistance 10

LightMapGeneration.skyWhite 0.3

LightMapGeneration.numberOfGILights 8

LightMapGeneration.sunLightShadowIntensity 1

LightMapGeneration.sunLightFov 2

LightMapGeneration.sunLightIntensity 1

endIf

ObjectLight.con

rem ******** Lightmap Generation Settings ********

if v_arg1 == BF2Editor

LightMapGeneration.init

LightMapGeneration.GILightsBaseDir 0/0.5/-0.5

LightMapGeneration.GILightsIntensity -1

LightMapGeneration.GILightsShadowIntensity -1

LightMapGeneration.GILightsFov -1

LightMapGeneration.UseGITopLight 0

LightMapGeneration.GITopLightIntensity 0.1

LightMapGeneration.GILightsViewDistance 50

LightMapGeneration.skyWhite 0

LightMapGeneration.numberOfGILights 0

LightMapGeneration.sunLightShadowIntensity -1

LightMapGeneration.sunLightFov 8

LightMapGeneration.sunLightIntensity -1

endIf

Share this post


Link to post
Share on other sites

you could try making a test map the same size and use the new lightmaps folder to replace the one in your map... CB

Share this post


Link to post
Share on other sites

Maybe I should ask a question I have that is very much related to this. Do I have to place lightsources on my map in order to make it look good?

Share this post


Link to post
Share on other sites
TerrainLight.con

rem ******** Lightmap Generation Settings ********

if v_arg1 == BF2Editor

LightMapGeneration.init

LightMapGeneration.GILightsBaseDir 0/0.33/-0.66

LightMapGeneration.GILightsIntensity 0.33

LightMapGeneration.GILightsShadowIntensity 1

LightMapGeneration.GILightsFov 45

LightMapGeneration.UseGITopLight 1

LightMapGeneration.GITopLightIntensity 0.1

LightMapGeneration.GILightsViewDistance 10

LightMapGeneration.skyWhite 0.3

LightMapGeneration.numberOfGILights 8

LightMapGeneration.sunLightShadowIntensity 1

LightMapGeneration.sunLightFov 2

LightMapGeneration.sunLightIntensity 1

endIf

ObjectLight.con

rem ******** Lightmap Generation Settings ********

if v_arg1 == BF2Editor

LightMapGeneration.init

LightMapGeneration.GILightsBaseDir 0/0.5/-0.5

LightMapGeneration.GILightsIntensity -1

LightMapGeneration.GILightsShadowIntensity -1

LightMapGeneration.GILightsFov -1

LightMapGeneration.UseGITopLight 0

LightMapGeneration.GITopLightIntensity 0.1

LightMapGeneration.GILightsViewDistance 50

LightMapGeneration.skyWhite 0

LightMapGeneration.numberOfGILights 0

LightMapGeneration.sunLightShadowIntensity -1

LightMapGeneration.sunLightFov 8

LightMapGeneration.sunLightIntensity -1

endIf

TerrainLight.con looks good for me. But your ObjectLight.con has not the same settings.

Copy and paste the TerrainLight.con, rename it to ObjectLight.con and recompile the lightmaps for primary Terrain and objects.

Share this post


Link to post
Share on other sites

MrBurns2000 and Ai-tom: I thank you so much. Ive been messing with this for a week and I almost gave up. Now it works! Thank you LOTS!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...