Jump to content
The Dark Mod Forums

New shadow leaks in 2.12 dev builds


Daft Mugi

Recommended Posts

Wasn't sure if I should still post this since the mystery was somewhat solved, but just to confirm this case can be found in the wild with FM's other than mine: Yesterday I played Chronicles of Skulduggery 0: To Catch a Thief. There's a door up on a terrace (I can reinstall it and go there to get a viewpos if anyone's interested) which upon picking and opening will cause the light on the back of the wall indoor to slightly shine on the floor outside through the entire wall.

Exact same camera position / angle in both images so you can just overlap the two screenshots to see the difference, though if you look at the bottom left ground it's pretty clear what happens once the door is opened. It's still a bit weird: The wall module model should still be casting a shadow, even if the wall brush uses caulk and not shadow caulk. Whatever the case a few FM's out there seem to have this problem, even if it's not an issue the engine or building modules can resolve I wonder if mappers can be better put on notice about it since like me most are likely not aware this is a thing or what causes it.

cos0_thief(2023-11-1305-23-37)(2794.57-1017.37-514.75).thumb.jpg.e0c08b3a33fa7a94443858c563d027a2.jpgcos0_thief(2023-11-1305-23-41)(2794.57-1017.37-514.75).thumb.jpg.d212417f469033fa32b2236f486cb769.jpg

Looked at the first post again and the video attached to it: Definitely seems like the same thing. Most importantly it wasn't doing this in earlier versions which I didn't realize... I'm seeing the clarification by Stgatilov as well which I initially missed, I definitely prefer the performance optimization but now I do wonder if something can also be done about this eventually.

Edited by MirceaKitsune
  • Like 2
Link to comment
Share on other sites

11 hours ago, MirceaKitsune said:

Wasn't sure if I should still post this since the mystery was somewhat solved, but just to confirm this case can be found in the wild with FM's other than mine

Yes, you still should.
We don't know what we are going to do with these issues.
Without knowing how many of them exist, we can't make a decision.

Quote

(I can reinstall it and go there to get a viewpos if anyone's interested)

Viewpos is imbued in image filenames, although some guessword is left for minuses.
It is at 2800 -1020 -515.

  • Like 2
Link to comment
Share on other sites

On 11/14/2023 at 5:37 AM, MirceaKitsune said:

Yesterday I played Chronicles of Skulduggery 0: To Catch a Thief. There's a door up on a terrace (I can reinstall it and go there to get a viewpos if anyone's interested) which upon picking and opening will cause the light on the back of the wall indoor to slightly shine on the floor outside through the entire wall.

I think I mentioned Bienie about this during beta testing and thought he fixed it.

Spoiler

 

 

Edited by datiswous
Link to comment
Share on other sites

I'm seeing the weirdest thing on my map, not public yet but I have the case for testing: Not only does the light leak, and it does so even as I've textured the walls with shadowcaulk... a light actually leaks only while the door is closed, once I open it the undesired light goes away.

It's the glow on the left side of the door and little triangle it casts on the floor in front of it. I think it might be the light at the right shining through though, not sure if it's the light in the newly opened room. The interesting thing is opening the door makes it go away, also using shadowcaulk over mere caulk doesn't seem to matter which is quite odd.

path(2023-11-1806-53-34)(831.74847.26332.25).thumb.jpg.90993891c77dc36c1c34b33d49afca32.jpgpath(2023-11-1806-53-37)(831.74847.26332.25).thumb.jpg.826dbbdb82a85769fd1105fb2b09198d.jpg

Link to comment
Share on other sites

9 hours ago, MirceaKitsune said:

I'm seeing the weirdest thing on my map, not public yet but I have the case for testing: Not only does the light leak, and it does so even as I've textured the walls with shadowcaulk... a light actually leaks only while the door is closed, once I open it the undesired light goes away.

I guess this is some kind of issue with blocked portals.
I think I need to create a test map.

Is the light moving all the time?
Does anything change if you move door/visportal a bit? Maybe visportal is exactly on the surface of door bounding box?

Link to comment
Share on other sites

58 minutes ago, stgatilov said:

I guess this is some kind of issue with blocked portals.
I think I need to create a test map.

Is the light moving all the time?
Does anything change if you move door/visportal a bit? Maybe visportal is exactly on the surface of door bounding box?

Static lights only, lights should be cutting through the portals by far, however one is rotated by 45* on the wall which could perhaps be related. Here's a DarkRadiant screenshot for now, showing the setup best as it can be seen... I selected both the interior and exterior light entities that might be involved.

Screenshot_20231118_165829.thumb.jpg.062fcc569040564e22d27f5a750ef32f.jpg

Edited by MirceaKitsune
Link to comment
Share on other sites

  • 2 weeks later...

I'm afraid the light leaks persist even in dev16854-10518 with a change I understand should fix them on old maps. Just replaying Chronicles of Skulduggery 3: Sacricide and found an area where they're even worse and a light in another room shines straight through the wall.

cos3_sacricide(2023-11-3004-21-47)(-1275.98-370_9883.25).thumb.jpg.034e3e11251d858f7cc7e486fff98ee0.jpgcos3_sacricide(2023-11-3004-21-52)(-1275.98-370_9883.25).thumb.jpg.b698a33199bcd33a2f08fe2b11a4962a.jpg

A view from the back of the light shining through: Even from this angle you can see it light up the room through the door.

cos3_sacricide(2023-11-3004-22-11)(-1108.57-380_8383.74).thumb.jpg.ba80de00802ec0e3e0e59f272d14a792.jpg

Edited by MirceaKitsune
  • Like 1
Link to comment
Share on other sites

13 hours ago, MirceaKitsune said:

I'm afraid the light leaks persist even in dev16854-10518 with a change I understand should fix them on old maps. Just replaying Chronicles of Skulduggery 3: Sacricide and found an area where they're even worse and a light in another room shines straight through the wall.

cos3_sacricide(2023-11-3004-21-47)(-1275.98-370_9883.25).thumb.jpg.034e3e11251d858f7cc7e486fff98ee0.jpgcos3_sacricide(2023-11-3004-21-52)(-1275.98-370_9883.25).thumb.jpg.b698a33199bcd33a2f08fe2b11a4962a.jpg

A view from the back of the light shining through: Even from this angle you can see it light up the room through the door.

cos3_sacricide(2023-11-3004-22-11)(-1108.57-380_8383.74).thumb.jpg.ba80de00802ec0e3e0e59f272d14a792.jpg

The impacted missions have not been edited yet. If you wish to assist further, set con_noPrint 0 and getviewpos 1 then capture screens and post them to the authors mission thread.

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

On 11/30/2023 at 5:45 PM, nbohr1more said:

The impacted missions have not been edited yet. If you wish to assist further, set con_noPrint 0 and getviewpos 1 then capture screens and post them to the authors mission thread.

To be honest, perhaps it's better to make a wiki page for this kind of issues.

Most of the authors probably won't fix the missions themselves.

  • Like 2
Link to comment
Share on other sites

@stgatilov

I'm curious why this solution was chosen:

  • "forceShadowBehindOpaque" "1" on an entity means it will always cast shadows from any light, even if it is fully behind wall/opaque brushes.
  • "forceAllShadowsBehindOpaque" "1" on worldspawn causes all entities to get forceShadowBehindOpaque flag automatically.

This requires all of the missions to be playtested to discover issues and then updated. A seemingly impossible task.

Why not the following solution?:

  • "enableShadowOptimizations" worldspawn

This is something that DarkRadiant could add automatically to new missions. For existing missions that could benefit a lot from the optimizations, such as The Painter's Wife, Written in Stone, Iris, etc., they could be edited to include the optimization worldspawn.

  • Like 1
Link to comment
Share on other sites

I can't say I like it

But many missions seem to work fine with new optimizations.
Even New Job, which I guess was the showcase of "architecture modules" (models everywhere instead of brushes), looks fine.

Even if you set "disabled" as default, you will still have to playtest all the missions in order to enable it back where it works. The same seemingly impossible task.
Except that getting a report for wrong lighting is very likely, while getting a report for a missed optimization opportunity is basically impossible.

  • Like 3
Link to comment
Share on other sites

  • 2 weeks later...

I have created wiki page:

For now:

  • ws1_north:  put into the table. Global workaround applied.
  • cos3_sacricide: I confirmed the issue, put it into the table. Perhaps wait for more cases on this map to decide whether to workaround it locally or globally.
  • cos0_thief: As I noted just above, I believe this cases to be broken on 2.11 too, so I did not put it into the table.
  • Like 3
Link to comment
Share on other sites

Was about to say the issue happens with both shadow maps and stencil shadows. Then I remembered I have r_shadowMapCullFront enabled since it improves performance a little. That explains why I get those leaks even more than everyone else :P

  • Like 1
Link to comment
Share on other sites

3 hours ago, datiswous said:

These are from WS2 Home Again. I don't know if they're related.

The first one happens with old cvar values and shadow maps, so it is something different.

The second one is indeed this problem.
I also added two more cases on this map to the table.

I guess I'll just apply the global workaround here.
And I suspect similar fate will be for most of Grayman's missions...

Link to comment
Share on other sites

1 hour ago, stgatilov said:

The first one happens with old cvar values and shadow maps, so it is something different.

I have stencil shadows enabled. What are those old cvars?

Btw. I was still using last dev version, because the beta came in when I was playing it. Now I upgraded to b1 and started playing ws3 (with subtitles).

Edited by datiswous
Link to comment
Share on other sites

1 hour ago, datiswous said:

If you are going to update the mission, maybe you could include the subtitles I just made. I guess it's not very important though:

 

Actually, if you are up for it... EFX reverb too ?

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

No worries.

If you wanna try, it's not too difficult, especially with the v2 "presets".

The tricky part is ensuring the location entity is inside the middle of an area and that location separators enclose the area.

I've actually done this by editing the map file in a text editor and making the entities match locations of other entities like door handles for the separators and vases (etc) for the location. It's easier to do in DR if you are a DR veteran of course.

https://wiki.thedarkmod.com/index.php?title=Setting_Reverb_Data_of_Rooms_(EAX)

  • Like 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

8 hours ago, datiswous said:

I have stencil shadows enabled. What are those old cvars?

Btw. I was still using last dev version, because the beta came in when I was playing it. Now I upgraded to b1 and started playing ws3 (with subtitles).

See this wiki page: https://wiki.thedarkmod.com/index.php?title=New_light_leaks_in_2.12

I have bound changing both cvars + reloadModels to [ and ] respectively.
I guess I'll toggle them a lot in the nearest future.

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
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
×
×
  • Create New...