1. Are you planning to upload your awesome tool to Hive? Please review the rules here.
    July 9, 2018: The rules for the Tool Section have been revised. Please be sure to read the revisions.
    Dismiss Notice
  2. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  3. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  4. The Lich King demands your service! We've reached the 19th edition of the Icon Contest. Come along and make some chilling servants for the one true king.
    Dismiss Notice
  5. The 4th SFX Contest has started. Be sure to participate and have a fun factor in it.
    Dismiss Notice
  6. The poll for the 21st Terraining Contest is LIVE. Be sure to check out the entries and vote for one.
    Dismiss Notice
  7. The results are out! Check them out.
    Dismiss Notice
  8. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  9. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  10. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Shadowmap Calculator (Made by Oger-Lord)

Submitted by Zwiebelchen
This bundle is marked as awaiting update. A staff member has requested changes to it before it can be approved.
Uploaded & Readme by Zwiebelchen; Shadow Calculator made by Oger-Lord.

I decided to publish this without the agreement of Oger-Lord, as unfortunately he has been inactive for quite some time now and I feel it would be a waste to let this die in the void of the internet.

If you decide to use this tool, please add him to your map's credits. It's the least you can do.


Shadowmap Calculator is a standalone-tool to calculate shadow maps for Warcraft III.
Simply load up the map, hit "Calculate Shadows" and the tool will do its job.

There is also a debug window to show the geometry the calculator is scanning, but I rarely ever use it, as this tool creates shadowmaps that are at least as good as the default calculator in WorldEditor (if not better).

Biggest advantage: This tool is a 64 bit application and will use all your CPU cores to generate the shadow map. Even a massive 480x480 map with tenthousands of doodads can be calculated in a couple of minutes.



SYSTEM REQUIREMENTS:
  • Shadow calculator requires a 64 bit version of the JAVA installed to execute properly.


FEATURES:

  • Allows to open and calculate shadows for maps just like the default shadow calculator of WorldEdit, but at a much faster speed
  • 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
  • You can enter different values for the shadow map calculation vector; default is 1,1,-1, which creates a result similar to the default shadow calculator of WorldEdit. You can tinker around with your own values if you want to create unique shadow maps
  • creating rects with "ignoreshadow" anywhere in their name will exclude the contents of these rects for the shadow calculation
Contents

Shadowmap Calculator (Made by Oger-Lord) (Binary)

Reviews
eejin
After adding the InstallPath entry to the registry and creating a fake war3Patch.mpq I got the tool to start without fatal errors though I still got some warning messages. After running for 8 minutes on a ~400x400 map with 16.000 doodads it outputted...
  1. dtnmang

    dtnmang

    Joined:
    Apr 20, 2010
    Messages:
    447
    Resources:
    7
    Models:
    3
    Tutorials:
    4
    Resources:
    7
    What does calculating shadows do?
     
  2. A]mun

    A]mun

    Joined:
    Dec 4, 2007
    Messages:
    741
    Resources:
    0
    Resources:
    0
    ^ it's generating static shadows for doodads that have the "has a shadow" flag on in the object editor + terrain blizz cliffs/hills.

    So this tool here is actually quite helpful when messing about with very large maps and more.

    I think this will come in handy.
     
  3. Zwiebelchen

    Zwiebelchen

    Joined:
    Sep 17, 2009
    Messages:
    6,791
    Resources:
    12
    Models:
    5
    Maps:
    1
    Spells:
    1
    Tutorials:
    1
    JASS:
    4
    Resources:
    12
    It does basicly what "Calculate Shadows and Save" does in the vanilla editor.
     
  4. Frotty

    Frotty

    Wurst Reviewer

    Joined:
    Jan 1, 2009
    Messages:
    1,428
    Resources:
    11
    Models:
    3
    Tools:
    1
    Maps:
    5
    Tutorials:
    1
    Wurst:
    1
    Resources:
    11
    Ah yes, oger sent this to me also.
    However, I honestly prefer the wc3 shadows, at least in my map.
    His algo creates too many small patches/artifacts.
    Nice stuff nonetheless!
     
  5. _Guhun_

    _Guhun_

    Joined:
    Jun 12, 2010
    Messages:
    351
    Resources:
    7
    Spells:
    6
    Tutorials:
    1
    Resources:
    7
    Has anyone been able to get this to work after the new patch? I even tried changing the InstallPath in the Registry to my 1.28.5 isntallation, but it always generates an invalid ~300lb shd file instead of the normal 2MB file.

    Since thw World Editor takes forever to calculate the shadow map, I guess I'll just have to do without shadows for my map if I can't get this to work :S
     
  6. eejin

    eejin

    Tool Reviewer

    Joined:
    Mar 6, 2017
    Messages:
    137
    Resources:
    1
    Tools:
    1
    Resources:
    1
    After adding the InstallPath entry to the registry and creating a fake war3Patch.mpq I got the tool to start without fatal errors though I still got some warning messages. After running for 8 minutes on a ~400x400 map with 16.000 doodads it outputted a shadowmap file, but this was too small for the map.

    Would be a very useful tool if correctly working. Allowing users to manually enter the install location with a prompt and not requiring the now deprecated war3Patch.mpq would improve usability a lot.

    Will be approved if the mentioned errors are fixed.
     
  7. Strydhaizer

    Strydhaizer

    Joined:
    Feb 28, 2013
    Messages:
    1,480
    Resources:
    4
    Models:
    1
    Maps:
    1
    Template:
    2
    Resources:
    4
    If you guys can no longer use this and still want to calculate shadows on large maps i suggest you do this.

    - Open the world editor
    - Load your map
    - Select all the doodads and destructibles of your map (Ctrl + A)
    - Hit Cut (Ctrl + X), never replace your clipboard
    - Now calculate the shadows with the standard shadow calculator provided by the World Editor, it shouldn't take long to render shadows because it does not calculate the shadows of your doodads, only the shape of your terrain.
    - After the shadows have been calculated, hit Undo (Ctrl + Z), this should bring back all your doodads to your map.

    Now enjoy your map having shadows while not sacrificing much of your time. You can do this thing everytime you update your terrain. I've been doing this trick for so long and this technique has been very effective.
     
    Last edited: Jun 15, 2019
  8. _Guhun_

    _Guhun_

    Joined:
    Jun 12, 2010
    Messages:
    351
    Resources:
    7
    Spells:
    6
    Tutorials:
    1
    Resources:
    7
    That's actually a pretty neat trick. Thanks!
     
  9. Frotty

    Frotty

    Wurst Reviewer

    Joined:
    Jan 1, 2009
    Messages:
    1,428
    Resources:
    11
    Models:
    3
    Tools:
    1
    Maps:
    5
    Tutorials:
    1
    Wurst:
    1
    Resources:
    11
    But then you don't have object shadows?!
     
  10. _Guhun_

    _Guhun_

    Joined:
    Jun 12, 2010
    Messages:
    351
    Resources:
    7
    Spells:
    6
    Tutorials:
    1
    Resources:
    7
    It's better than nothing, especially for maps that don't use that many doodads.
     
  11. Strydhaizer

    Strydhaizer

    Joined:
    Feb 28, 2013
    Messages:
    1,480
    Resources:
    4
    Models:
    1
    Maps:
    1
    Template:
    2
    Resources:
    4
    No object shadows yes, that's the tradeoff. This technique is only for those who always update their maps frequently especially the terrain. You can just add shadows to the doodads/destructibles/units using the object editor.

    This is what happens when you do it. ;)

    Untitled.png

    Untitled2.png
     
  12. Zwiebelchen

    Zwiebelchen

    Joined:
    Sep 17, 2009
    Messages:
    6,791
    Resources:
    12
    Models:
    5
    Maps:
    1
    Spells:
    1
    Tutorials:
    1
    JASS:
    4
    Resources:
    12
    Unfortunately, this tool no longer works with the recent patches and I can't fix it because I didn't make the thing.

    It's still useful for people who can revert their WC3 patch state or simply use an older version of WC3.


    Others are unfortunately screwed until Reforged hopefully fixes the damn shadow map algorithm to not take years to calculate.