Jump to content
The Dark Mod Forums

Recommended Posts

Posted (edited)

Bug tracker: https://bugs.thedarkmod.com/view.php?id=6676

Hi, I've noticed some light leaks that only appear when playing with shadow maps (as opposed to stencil shadows). I'll show two cases that I think are not simply errors in modeling/mapping, but rather may indicate a general bug with shadow maps.

 

The first case can be seen in many missions: both of these bucket models allow light to leak inside them from certain angles when shadow maps are enabled (see images below).

2s6snMk.png

SHuji1S.png

When playing with stencil shadows, the interiors of these buckets are fully shadowed as expected. I brought this up to some devs, but @Bikerdude found that the bucket light leaks couldn't be fixed at the shadow mesh level, and he suggested it was a general shadow maps issue instead. 

Hearing this, I realized it could explain a tiny light leak I had seen in my WIP mission. I decided to make a simple test map with similar brushwork to clearly show the problem.

 

So, that test map is the second case: these grid-aligned worldspawn stairs leak light through the corners when playing with shadow maps (see image below).

malLm1d.png

When playing with stencil shadows, the corners between stairs block light correctly (see image below):

40w9lei.png

Out of curiosity I put the buckets in the test map too. The light volume is quite large (776x776x776), which seems to exacerbate the light leak (see comparison images below):

cfCbcNK.png

ZXckSup.png

ChfgNap.png

i4Lq43L.png

 

I'm playing TDM 2.13 on Windows 11. The test map file is attached to this post if you're curious.

Bug tracker: https://bugs.thedarkmod.com/view.php?id=6676

smt.map

Edited by sullium
Added bug tracker link
Posted

That's what shadow maps do: fail on thin objects and have low resolution on large distance.

I don't think this is fixable in the conventional sense.
Smaller lights are less susceptible to such problems in general.

  • Thanks 1
Posted

Yeah, this issue is as old as shadow maps themselves, blame the lack of precision. You either get peter-panning or shadow acne, and shadow acne looks much, much worse when games have it.

  • Like 1
Posted
1 hour ago, I.C.H.I. said:

shadow acne looks much, much worse when games have it.

TDM has it actually 😁

I think games with shadow maps are tweaked with them in mind.
The problem with TDM is that our shadow maps implementation is plain awful. I tried to rewrite it, but met a dead end and stopped there. I need to do another try.
And without solid basic implementation is does not make sense to give any tweaking abilities to the mappers, since they will all die on implementation change...

  • Like 3
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • Ansome

      Terribly difficult juggling map designing with work, but I'm still alive and chipping away at something very special. I'm actually making a collaboration of sorts with a friend, I make the map itself and he acts as my "Chief Scope Creep Consultant" that checks in every so often to make sure this project isn't getting out of hand. It's a good system!
      · 0 replies
    • JackFarmer

      We don't need artificial intelligence; we need artistic intelligence. 
      Ralf Hütter, Kraftwerk
      · 5 replies
    • taaaki

      The post editor for the dark themes should be working again. Apologies for the inconvenience.
      · 1 reply
    • jaxa

      Talk GabeCube:
      https://forums.thedarkmod.com/index.php?/topic/18055-2016-cpugpu-news/page/39/#findComment-508710
      · 3 replies
    • The Black Arrow

      Things have been so bad these days for me...
      Just a year ago, I've been feeling dizzy, I thought it was nothing, today's stress, that type of thing, went to sleep...Still dizzy! 9 more days dizzy, went to doctor (I would have gone on the first day if NOT for the long appointment time)
      Said it may be Neck Dizziness...I did exercises for 6 months, no changes.
      Went to a Physical Therapist, went to another, no changes.
      I've asked my doctor for a full check this time.
      I hated yesteryear so much due to personal reasons, this year might be the same.
      To be brutally honest, I'd rather have cancer or/and chronic pain than suffer dizziness any second longer, especially when nothing helps.
      Hard to enjoy Thief when you're dizzy so I was hoping this year, Winter will be best for me.
      · 7 replies
×
×
  • Create New...