Jump to content
The Dark Mod Forums

New shadow leaks in 2.12 dev builds


Daft Mugi

Recommended Posts

  • 2 weeks later...

This case in Poets and Peasants is something new:

In this case we have on same line:

  • light
  • brush wall
  • fully closed room
  • closed door with visportal in a brush wall
  • player

Since only backfaces cast shadows, only the door and the first brush wall can cast shadows.
The brush wall does not cast shadows because the entirety of its area is unreachable by light.
So the door should.

It turns out that all doors that are connected to visportal should automatically get this "forceShadowBehindOpaque" flag. When the door is closed, it closes the visportal and thus becomes part of the wall, just like a brush would be in its place.

 

 

  • Like 2
Link to comment
Share on other sites

Discovered another in The Gatehouse. Torchlight is leaking through the stairs

 

gatehouse1_3(2024-02-1820-51-57)(-940.97270_1466.25).thumb.jpg.aa3bfaae8bc746654816fa222ba553c3.jpg

  • Like 1

My missions:           Stand-alone                                                      Duncan Lynch series                              

                                      Down and Out on Newford Road              the Factory Heist

                                                                                                  A House Call

                                                                                                  The House of deLisle                                                                                                  

                              

Link to comment
Share on other sites

On 2/18/2024 at 11:26 AM, thebigh said:

Discovered another in The Gatehouse. Torchlight is leaking through the stairs

gatehouse1_3(2024-02-1820-51-57)(-940.97270_1466.25).thumb.jpg.aa3bfaae8bc746654816fa222ba553c3.jpg

This one has nothing to do with the change.
It happens in 2.11 too.

I have no idea what is wrong here, and why one patch casts shadow while the other similar one does not.
There is even auxilliary surface with "shadow" material inside the stairs, which should also cast shadow but it does not.

Link to comment
Share on other sites

That is weird. Something funky with the torch itself, maybe?

My missions:           Stand-alone                                                      Duncan Lynch series                              

                                      Down and Out on Newford Road              the Factory Heist

                                                                                                  A House Call

                                                                                                  The House of deLisle                                                                                                  

                              

Link to comment
Share on other sites

Could it be anything to do with the shape of the geometry? Is a curved staircase looking at the images. 

Or the thickness? Thou by that image those stairs are anything but thin.  Is just that I have seen thin walls leak light, while ticker ones do not and I have seen this, in more than one engine even in lightmapped ones.

Also is that brush geometry or a imported triangle mesh? You will correct me if wrong but afaik the engine treats triangle mesh's, a tad differently from brush geometry, like it doesn't automatically inline the triangle mesh geometry, into the overall baked brush geometry (unless your force it), so it leaves a invisible "gap" there where the mesh connects with the brush wall? 

Could be floating point accuracy problems, like you recently talked about?

Link to comment
Share on other sites

Another one, in The Outpost, started happening between dev16809-10394 and dev16814-10408

 

litebug_outpost.png.c5d5afff3d326ce37e5f7d032512f9ec.png

  • Like 1

My missions:           Stand-alone                                                      Duncan Lynch series                              

                                      Down and Out on Newford Road              the Factory Heist

                                                                                                  A House Call

                                                                                                  The House of deLisle                                                                                                  

                              

Link to comment
Share on other sites

  • 2 weeks later...

Another leak in Written in Stone near start (230 -1820 65):

written(2024-03-1514-40-20)(236.54-1820_8765.25).thumb.jpg.d5586e89d38292bf49e813c42c363315.jpg


This case is more interesting because it is not just light leaking vs not leaking through a wall.
Here we see view-dependent scissoring rectangle which limits the light effect.

The light source is in the farthest area behind a wall (on the middle of the two far visportals).
There is no way to cast a ray from the light source through visportals that would reach the viewer area: if you hit one of the far portals, then you surely don't hit the near portals. So the frontend decides that the light is not active in the viewer's area. Then the light scissor is bounding rectangle around all the visportals.

Normally, the wall in between should occlude the light, but apparently it was set to noshadows.
This wall seals the areas, so this is the same kind of bad input as usual. But the resulting behavior is indeed interesting.

So I wonder how should we fix it @Amadeus @Dragofer

  • Like 1
Link to comment
Share on other sites

So, I just retextured the caulk brushes to shadowcaulk and this seems to be working fine. Suitable fix???

tbc (2024-03-16 11-14-50) (270.75 -1845.54 4.25).jpg

However, I did find another light leak right next to this one:
image.thumb.jpeg.77ea7ee9e0a74d31f2f0056bb2dcd01d.jpeg

  • Like 2
Link to comment
Share on other sites

2 hours ago, Amadeus said:

So, I just retextured the caulk brushes to shadowcaulk and this seems to be working fine. Suitable fix???

I think yes.

The root of the issue is always an opaque wall (in terms of areas/visportals) which does not cast shadows (in terms of lighting). Shadowcaulk is both opaque and casts shadows, so there is no contradiction.

Link to comment
Share on other sites

okay, I'm gonna go through and fix these lightleaks with shadowcaulk then. There are a handful of other lightleaks in WIS, do you want me to log each one and report it on the wiki page, or can I just go ahead and fix them as I see them?

Link to comment
Share on other sites

56 minutes ago, Amadeus said:

okay, I'm gonna go through and fix these lightleaks with shadowcaulk then. There are a handful of other lightleaks in WIS, do you want me to log each one and report it on the wiki page, or can I just go ahead and fix them as I see them?

Go ahead and fix them if you want. The purpose of the wiki was to attempt to resolve as many leaks as possible prior to 2.12. If a map contained too many leaks, there is a map-wide workaround that reverts to 2.11 mode at the cost of reverting to 2.11 performance. It's up to you if you want to clean-up the leaks and retain the optimizations or just use the easy-button and set the mission to 2.11 mode.

  • Thanks 1

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites

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

    • nbohr1more

      Was checking out old translation packs and decided to fire up TDM 1.07. Rightful Property with sub-20 FPS areas yay! ( same areas run at 180FPS with cranked eye candy on 2.12 )
      · 2 replies
    • taffernicus

      i am so euphoric to see new FMs keep coming out and I am keen to try it out in my leisure time, then suddenly my PC is spouting a couple of S.M.A.R.T errors...
      tbf i cannot afford myself to miss my network emulator image file&progress, important ebooks, hyper-v checkpoint & hyper-v export and the precious thief & TDM gamesaves. Don't fall yourself into & lay your hands on crappy SSD
       
      · 5 replies
    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 7 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
×
×
  • Create New...