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: How do remove Area glows/lighting.  (Read 1402 times)

Poisonleaf

  • Registred Member
  • LUA Script Tinker
  • *****
  • Posts: 46
    • View Profile
How do remove Area glows/lighting.
« on: November 01, 2015, 11:41:55 pm »
Hiya,

With my remodeling project of nagrand I would like to remove the area glow or lighting what ever it's called.

I got an example lined up below to it makes more sense.

First one: Without the glow  standing at a distance
Second one: With the glow, inside the area.

First:  http://i.imgur.com/rpKdMEM.jpg
Second: http://i.imgur.com/AA7xCdJ.jpg

Thank you in advance.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: How do remove Area glows/lighting.
« Reply #1 on: November 02, 2015, 09:33:02 am »
These fog and sky effects are together called from Light.dbc. They are commonly called skyboxes, while skybox is just a part of whole system, so its a little bit incorrect.

Check Light.dbc and simply delete sky systems which are located in Nagrad. Just beware, both XYZ coordinates and 2 sizes are not in yds nor in game coords.:

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;
« 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

Skarn

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 807
    • View Profile
    • http://skarn-project.net
Re: How do remove Area glows/lighting.
« Reply #2 on: November 04, 2015, 05:18:57 pm »
Quote from: "Amaroth"
These fog and sky effects are together called from Light.dbc. They are commonly called skyboxes, while skybox is just a part of whole system, so its a little bit incorrect.

Check Light.dbc and simply delete sky systems which are located in Nagrad. Just beware, both XYZ coordinates and 2 sizes are not in yds nor in game coords.:

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;
Usually people use lightmapper for such purposes instead of calculating coords. Though, removing lighting data will set this zone to the global light which is apparently light as well. So, your edition probably requires changing colors in LightIntBand.dbc which is documented on the wiki.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: How do remove Area glows/lighting.
« Reply #3 on: November 05, 2015, 09:21:11 am »
Global Light can be changed as well by just creating (or editing row with) Light with coords and sizes = 0.
« 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