noggit3 icon indicating copy to clipboard operation
noggit3 copied to clipboard

Shadow Maps Editing/Generation

Open bloerwald opened this issue 5 years ago • 1 comments

@Amaroth suggests:

Shadow Maps are "painted" shadows on terrain which don't disappear when models are hidden/deleted/moved. This is an issue with Blizzard's maps, especially Vanilla ones. I can't imagine anyone actually using Shadow Maps, but tool for editing them still could be nice to have.

For now, it would be more than useful to have at least enable/disable shadow maps on chunk/ADT. I went through whole MCNKs struct in 010, and I have edited in header of each mcnk in each row flags, removing flag 1. That did the job, and I didn't have any issues with using this method yet.

For those interrested in getting rid of static shadows on Blizzlike maps for purpouses of editing them, I have released my 010 script on my YT channel and in my toolpack.

which often comes up as well.

bloerwald avatar Jun 29 '20 15:06 bloerwald

Manual editing of shadow maps is absolutely bonkers. My suggested action plan:

  • function to clear shadows for a chunk/adt/map (either by flag-flipping or by actually erasing them)
  • reverse parameters like sun direction used for existing shadow maps
  • implement raycasting to create shadows automatically

Note that while the first is trivial, the second and third are not in scope for any current work. Patches are welcome though.

bloerwald avatar Jun 29 '20 15:06 bloerwald