Jump to content
The Dark Mod Forums

Recommended Posts

Posted (edited)

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
Posted
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
Posted (edited)
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
Posted

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

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

Posted (edited)
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
  • 2 weeks later...
Posted (edited)

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

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

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

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
  • 2 weeks later...
Posted
On 11/14/2023 at 5:37 AM, MirceaKitsune said:

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

Note: happens at 2800 -1020 -515

This issue on cos0_thief happens even with old settings, although the leak becomes a bit "wider" with new settings.
I believe this location is broken beyond the 2.12 changes.

Posted

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

Posted (edited)
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
Posted (edited)
1 hour ago, stgatilov said:

I guess I'll just apply the global workaround here.

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:

 

Edited by datiswous
  • Like 1
Posted
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...)

Posted
1 hour ago, nbohr1more said:

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

I have never done that, but I'm interested in it. So I might do that, but I don't know when. I guess it makes sense in line with non-map upgrades and fixes.

Posted

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

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

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
×
×
  • Create New...