Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Miscellaneous => Topic started by: Vatoto on May 03, 2015, 03:31:32 pm

Title: [Question] Sky/Fog
Post by: Vatoto on May 03, 2015, 03:31:32 pm
Hi
I have a problem with the sky on my custom map. I wanted on my map a sky have in which fog is. Therefore, I have copied the entry ( in the light.dbc ) from Duskwood and adjusted values ​​( coordinates , MapID ) .
Although I have a fog on the map, but not particularly strong as in Duskwood. When I put the duskwoodsky in  Elwynn for example use it as dense as in Duskwood.

Duskwood:
(http://i.imgur.com/gTGeWQD.jpg)
Custom Map(it's only a test map):
(http://i.imgur.com/oBKCmaM.jpg)
Elwynn:
(http://i.imgur.com/L3Vml3B.jpg)

Do I have to enter my own map a specific value in order to obtain a dense fog ?

Thanks for your help,
Vatoto
Title: Re: [Question] Sky/Fog
Post by: Amaroth on May 04, 2015, 10:12:29 am
If you really have copied right ID in Light.dbc, it is quite possible that you have just entered wrong values for placement of light setting.:

pos.x = 17066.666 - pos.x / 36.0f;
pos.y = 17066.666 - pos.y / 36.0f;
pos.z = pos.z / 36.0f;
falloffStart = falloffStart / 36.0f;
falloffEnd = falloffEnd / 36.0f;

Those 36.0f mean 1 yard = 36 in value entered to DBC. It its also possible that you have entered wrong values for size of that light "ball". You see, there are two of them, inner and outer one. That outer one is always "less foggy", if you wish, and is interfering with surrounding lights. You may just need to expand both outer and especially inner ring's radius.
Title: Re: [Question] Sky/Fog
Post by: Vatoto on May 04, 2015, 09:49:00 pm
Quote
pos.x = 17066.666 - pos.x / 36.0f;
pos.y = 17066.666 - pos.y / 36.0f;

I used the coordinates from noggit and multiply it with 36.I didn't use the height (z).
(http://i.imgur.com/gBvF8YW.png)

I will try your calculation tomorrow also to edit the "light ball"

Thx for your help!
Title: Re: [Question] Sky/Fog
Post by: Vatoto on May 05, 2015, 07:45:04 pm
Okay, I think i know my problem. I didn't use the correctheight, because if I fly a bit higher the fog is denser.
To calculate the correct height I must do z*36, right? (for the dbc value)