Jump to content
The Dark Mod Forums

Recommended Posts

  • 2 weeks later...
Posted

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
Posted

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

                                The Wizard's Treasure                             A House Call

                                                                                                  The House of deLisle                                                                                                  

                              

Posted
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.

Posted

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

                                The Wizard's Treasure                             A House Call

                                                                                                  The House of deLisle                                                                                                  

                              

Posted
11 hours ago, thebigh said:

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

It casts shadows, and it is a proper point light.
Not sure what else can go wrong with a light.
 

Posted

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?

Posted

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

                                The Wizard's Treasure                             A House Call

                                                                                                  The House of deLisle                                                                                                  

                              

  • 2 weeks later...
Posted

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
Posted
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.

Posted

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?

Posted
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...)

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

    • JackFarmer

      "The Year of the Rat." 
      😄

      Al Stewart must be proud of you!
      Happy testing!
      @MirceaKitsune
      · 1 reply
    • datiswous

      I posted about it before, but I think the default tdm logo video looks outdated. For a (i.m.o.) better looking version, you can download the pk4 attached to this post and plonk it in your tdm root folder. Every mission that starts with the tdm logo then starts with the better looking one. Try for example mission COS1 Pearls and Swine.
      tdm_logo_video.pk4
      · 2 replies
    • JackFarmer

      Kill the bots! (see the "Who is online" bar)
      · 3 replies
    • STiFU

      I finished DOOM - The Dark Ages the other day. It is a decent shooter, but not as great as its predecessors, especially because of the soundtrack.
      · 5 replies
    • JackFarmer

      What do you know about a 40 degree day?
      @demagogue
      · 4 replies
×
×
  • Create New...