This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [Question] Sky/Fog  (Read 988 times)

Vatoto

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 53
    • View Profile
[Question] Sky/Fog
« 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:

Custom Map(it's only a test map):

Elwynn:


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

Thanks for your help,
Vatoto
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: [Question] Sky/Fog
« Reply #1 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

Vatoto

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 53
    • View Profile
Re: [Question] Sky/Fog
« Reply #2 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).


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

Thx for your help!
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Vatoto

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 53
    • View Profile
Re: [Question] Sky/Fog
« Reply #3 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)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »