• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Solved] Is it possible to manually edit shadowmap?

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,223
Yes it is completely possible. With exception of the header, the file is basically a big bitmap, with 1 byte per pixel.

Extract it using MPQ edit or any other MPQ API as Warcraft III map archives are MPQ. It is the .shd file. If one opens it with notepad one can vaguely see the structure. I would advise writing a program to manipulate it since it is technically a binary file that just happens to make sense as text.
 
Yes it is completely possible. With exception of the header, the file is basically a big bitmap, with 1 byte per pixel.

Extract it using MPQ edit or any other MPQ API as Warcraft III map archives are MPQ. It is the .shd file. If one opens it with notepad one can vaguely see the structure. I would advise writing a program to manipulate it since it is technically a binary file that just happens to make sense as text.
Okay, got as far as extrating it. Any suggestions what kind of program I could edit it with besides (painstakingly) editing it with notepad? I don't have any programming knowledge whatsoever, so writing one is out of the question :D
 
Last edited:
There's no tool available that converts a shadow map to an image or vice versa. However there is a tool which can generate shadowmaps for you, and it has some configuration options for generating shadows so maybe that will help you.

Shadowmap Calculator (Made by Oger-Lord)

Otherwise you will have to learn the format and create a program to automate what you need because it's probably too difficult to do manually.
 
ShadowCalculator will automaticly ignore and exclude alpha tile shadows in calculation; if you want alpha tiles to draw a shadow, replace them with a different tile temporarily, then switch back after calculation
Okay, seems like this thing has what I needed, thanks a lot :3
Still, a program that can convert shadowmaps to images and back could be useful to a few people.
 
Status
Not open for further replies.
Top