• 🏆 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!

Directional Lighting

Status
Not open for further replies.
Level 9
Joined
Nov 28, 2008
Messages
704
Apologies if this is answered in an obvious way, but no google search or search here found me it.

I was just wondering, how does one create a directional light? I have found the lines required for an omnidirectional:

Light "Omni01" {
Omnidirectional,
static AttenuationStart 0,
static AttenuationEnd 0,
static Intensity 500,
static Color { 0.05, 0.05, 0.2 },
static AmbIntensity 0.2,
static AmbColor { 0.1, 0.1, 0.1 },
}

But how does one get directional?
 
well, as far as i know the game engine only supports the omni light...
and this one is spreading its light in all directions!

though you can try to fake it:
imagine you have modeled a window and now you want the sunlight to ray into it

make a cube, delete the front and back and move the verts to fit into the window on one side and go down onto the floor on the other side...
now search the .mpq for a ray type of texture and apply it to the cube...
Now set the material channel to full alpha...

Afterwards you can try to place some omnilight into the scene and try to fake a bit of self illumination...
 
Level 9
Joined
Nov 28, 2008
Messages
704
Argh, well.. I wasn't intending to use it to "make" a model, I was intending to use the lights as standalone effects in a ssort of horror genre map.

Thanks for the answer though :D
 
Status
Not open for further replies.
Top