• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

How to get rid of lighting

Status
Not open for further replies.
Level 36
Joined
Jul 1, 2007
Messages
6,677
I want to know how to get rid of a map's lighting entirely, so it is all black and the only way to see anything is with a light doodad. An example is when you hit L in the editor it makes everything lit up so there are no shadows, what I want is the opposite and for it to work in game.

Note that I don't want to use fog of war or anything like that.
 
Level 14
Joined
Jul 1, 2008
Messages
1,314
This is out of a tutorial:

Lights (ambient light and omnilights)

An often overlooked feature warcraft brings are lights. Tho they seem not highly usable they are in fact quite usable.
Let's start with ambient lighting.
Ever noticed how the lighting goes a little blue when it gets to nighttime? That lighting is actually created by a model and it is changable by triggers!

The syntax is:
Collapse JASS:

call SetDayNightModels("TerrainLightModelHere","UnitLightModelHere")

Ofcourse, you should replace "TerrainLightModelHere" and "UnitLightModelHere" with paths to models. Simply giving them no, or a false path will lead to no light, so the screen will turn pitch black.
Collapse JASS:

call SetDayNightModels("","")

Does makes the terrain and units have no lighting at all.

The ground lighntings are:

Ashenvale:
Environment\\DNC\\DNCAshenvale\\DNCAshenValeTerrain\\DNCAshenValeTerrain.mdx
Environment\\DNC\\DNCAshenvale\\DNCAshenValeUnit\\DNCAshenValeUnit.mdx
Dalaran:
Environment\\DNC\\DNCDalaran\\DNCDalaranTerrain\\DNCDalaranTerrain.mdx
Environment\\DNC\\DNCDalaran\\DNCDalaranUnit\\DNCDalaranUnit.mdx
Dungeon:
Environment\\DNC\\DNCDungeon\\DNCDungeonTerrain\\DNCDungeonTerrain.mdx
Environment\\DNC\\DNCDungeon\\DNCDungeonUnit\\DNCDungeonUnit.mdx
Felwood:
Environment\\DNC\\DNCFelwood\\DNCFelWoodTerrain\\DNCFelWoodTerrain.mdx
Environment\\DNC\\DNCFelwood\\DNCFelWoodUnit\\DNCFelWoodUnit.mdx
Lordaeron:
Environment\\DNC\\DNCLordaeron\\DNCLordaeronTerrain\\DNCLordaeronTerrain.mdx
Environment\\DNC\\DNCLordaeron\\DNCLordaeronUnit\\DNCLordaeronUnit.mdx
Underground:
Environment\\DNC\\DNCUnderground\\DNCUndergroundTerrain\\DNCUndergroundTerrain.mdx
Environment\\DNC\\DNCUnderground\\DNCUndergroundUnit\\DNCUndergroundUnit.mdx

Thanks to Alexander244 :)
 
Status
Not open for further replies.
Top