• 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] Glitchy shadow –*Is there a way to fix this problem?

Status
Not open for further replies.

Kazeon

Hosted Project: EC
Level 34
Joined
Oct 12, 2011
Messages
3,449
Can I fix this problem (look at the shadow)? How?
attachment.php
 

Attachments

  • a.jpg
    a.jpg
    99.6 KB · Views: 209

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
The problem is caused by incorrect shadow map not matching the virtual environment.

Two ways.
1. Recalculate shadow map and save. This is in the same menu as normal save. The shadow map should now reflect the environment more accurately although it can still look ugly at times.
2. Remove the shadow map from the map. This is done by deleting it from the map mpq archive (maps are mpq archives so any mpq archive tool such as the recommended MPQEDIT will open them). If WE errors when loading the map after removing the shadow map you can always substitute it with a blank one from a fresh map of the same dimensions.

The shadow map file is "war3map.shd".
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Is there a way to reduce the failing chance?
There is not. The technology was very primitive and resource intensive at the time. It tried to add some kind of realistic shadow but as you can see it fails to do so a lot of the time. Custom models are often a source of the error since they were never designed with the purpose of calculating shadow maps in mind. For example bill boarded textures may look good for leaves but will cast no shadow if I recall.

the map size is 512x512 though
WC3 does not directly support maps of that size. As such excessive computation time is to be expected. However it could also be your system specifications and load (not enough memory will also result in very bad performance).

My suggestion is either use shadow maps and accept the generated results or leave them blank. Leaving blank has the added advantage of smaller map size so is not to be underestimated.

You could also hand paint your shadow map. The shadow map is nothing more than a simply encoded image where each byte represents a pixel on the map. If WE was no so useless you would be able to do it inside the editor.
 
Status
Not open for further replies.
Top