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

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

    • taffernicus

      My First time trying dromEd and DR. It's quite intimidating lmao 
      I'm starting to get the big picture
      Hope i get enough time , juggling multiple interests has never been easy
      · 8 replies
    • The Black Arrow

      Well, this is just sad...I was not able to play any Thief or TDM whatsoever, why? Too busy the past 2 months, this month I'm not as busy BUT it's also very heaty in my place.
      I can't play Thief when it's not at least 15c or lower, the game demands to be played when it's cold for...Well, may sound stupid but I'll just say it, for that "immersion".
      It's kinda like playing Quake during Summer, which unless it's the Summer Jam mod, I don't think it's as fun.
      · 6 replies
    • STiFU

      Oh my gosh, I just realized, I will have my 20 year Dark Mod anniversary this year. 😮 I've literally spent half my life with The Dark Mod. That's crazy!!
      · 8 replies
    • Arcturus

      I need money. Anyone wanna hire a 3d artist?
      · 4 replies
    • Petike the Taffer

      The preliminary working titles for the missions in my now-in-development Partners in Crime series: 
      - Partners in Crime 1: A Mere Trinket
      - Partners in Crime 2: Beacon Burglary
      - Partners in Crime 3: In the Bleak Midwinter
      - Partners in Crime 4 (5 ?): Fishy Dealings
      - Partners in Crime 5 (4 ?): A Thief in the Night

      No title stealing, please.  In return, I promise to finish these. I do stress the preliminary part. Beyond the broad strokes storyline, plot, objectives, briefings and the (currently built) layouts of these FMs, I haven't fully decided about every single detail yet, including the exact order of the missions (4 and 5 might switch places, with the story adjusted accordingly). I want the overall plot to be plotted out a bit in advance and not suffer too much from inserting prequels later. I also prefer to let my FM building fill out part of the details naturally.

      Currently working on the second FM, and once I do enough work on the current prototype, I'll work on the first one, until I get that one released. Then complete the second one, get that one ready for release (hopefully) a few months later, and so on. I want most of the early missions to be fairly small and confined, and get a bit bigger as I grow more confident in my FM making skills.

      Though there is an overarching storyline to this series, the missions themselves are mostly episodic in nature. They factor into the character development of the two main characters I'll have in the series, but it's the kind of continuity where the mission's own plot and story wouldn't depend on it. 
      · 2 replies
×
×
  • Create New...