• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[General] How do shadow textures work?

Status
Not open for further replies.

Antares

Spell Reviewer
Level 35
Joined
Dec 13, 2009
Messages
1,106
I'm trying to recreate unit and destructable shadows using the image natives. If I create an image with one of the shadow textures you find in the mpq, such as
Lua:
"ReplaceableTextures\\Shadows\\ShadowCastle.blp"
I get a black square instead of a nice-looking shadow, so there's something missing. Are the unit shadows models and not images? Are there textures hidden somewhere that I can use for the image natives?
 
If you apply the texture to a standard plane with transparency, you get this:

1715508839881.png


Don't ask me what the red dot is, apparently all shadows have this thing, but basically yeah this is the castle shadow and it doesn't look good :gg:
 
I do not think Warcraft III uses shadow models in this context...

The way the image natives work probably is not compatible with the shadow maps. You might need to extract them, convert them, edit them and then convert them back so they are in a format that plays well with the image natives. This is assuming the image natives support transparency.
 
Status
Not open for further replies.
Back
Top