• 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.

[General] How do shadow textures work?

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?
 
Level 30
Joined
Aug 29, 2012
Messages
1,382
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:
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,285
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.
 
Top