[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