Jump to content
The Dark Mod Forums

Water effects not rendered through warp glass


Recommended Posts

okay I see what you mean now - this material is 2-sided, so even with a patch you see it on either side.

In the new version of the map, the last window on the right (which used to be empty) is now a patch textured with 'test_warp', so it's one face but with a 2-sided material.

render.map

Link to comment
Share on other sites

@duzenko to verify a general cure for this type of issue, the mission "Lords and Legacy" has a torch at the beginning whose heat haze particles break the texture stages of the glass behind them. Likewise the mission "Too Late" has a torch which with haze particles cause the water to render without the overlay texture.

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

2 hours ago, nbohr1more said:

@duzenko to verify a general cure for this type of issue, the mission "Lords and Legacy" has a torch at the beginning whose heat haze particles break the texture stages of the glass behind them. Likewise the mission "Too Late" has a torch which with haze particles cause the water to render without the overlay texture.

Rather unexpectedly (for me) this seems to actually fix that there as well 😊

 

Untitled.jpg

  • Like 1
Link to comment
Share on other sites

1 minute ago, duzenko said:

That worked.

Now, what do I do with this?  Move it all to my TDM folder and run it?

Link to comment
Share on other sites

Is it supposed to be all black like this?  Anyways, I can kind of see that it's working (this is the warp window I'm looking through here)

dmx (2022-06-25 18-21-38) (-39.48 80.73 68.25).jpg

Edited by Frost_Salamander
Link to comment
Share on other sites

Hmm…

The water in “No Honor Among Thieves” mission 2 ( anoott.map ) appears to be broken. There are also strange oddities like the effect only working at some distances or viewing angles. The effect also seems to break when rendered in front of the legacy moon ray patches. I wonder if it conflicts with the new “sort last” flag ?

  • 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

Yes, the water is cured by setting "sort decal" instead. There are fog particles that also misbehave due to the conflict. I guess I could copy the material def to the FM and try modifying the copy...

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

13 hours ago, nbohr1more said:

Yes, the water is cured by setting "sort decal" instead. There are fog particles that also misbehave due to the conflict. I guess I could copy the material def to the FM and try modifying the copy...

Hopefully that won't be necessary

But the thing is, the build before my changes to sort order also seem to view-flicker in that location

Do you have an svn commit that last worked here?

Link to comment
Share on other sites

5 hours ago, duzenko said:

Hopefully that won't be necessary

But the thing is, the build before my changes to sort order also seem to view-flicker in that location

Do you have an svn commit that last worked here?

There was some flicker as far back as 2.10 for the fog patches and particles. Something between 2.09 and 2.10 broke that as I recall. I don't recall any flicker on the water in the latest dev build: dev16498-9944

If this functions the way I am guessing, we can probably remove the sort flags from 90% of our material defs because depth and view distance should be enough to cover what goes into the additional buffers.

Eg. I think we are on the verge of having transparency that "just works" with no need to consider sorting situations.

EDIT:

As of SVN revision 9967 NHAT is working including the fog patches.

Too Late is no longer fixed though...

Edit 2:

"Too Late" IS fixed if you set LOD quality to highest ( I see that this is functioning as designed since this feature requires more rendering power etc )

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

6 hours ago, nbohr1more said:

Edit 2:

"Too Late" IS fixed if you set LOD quality to highest ( I see that this is functioning as designed since this feature requires more rendering power etc )

What about those other glitches in NHAT - do they come back too?

As for the sort keywords - well, any mention of _currentRender and it's ignored already automatically

@Frost_Salamander Regarding your problem - maybe try the latest dev build?

Link to comment
Share on other sites

4 hours ago, duzenko said:

@Frost_Salamander Regarding your problem - maybe try the latest dev build?

Will do - I can get that from tdm_installer right?

Edited by Frost_Salamander
Link to comment
Share on other sites

So just tried with latest dev version and it looks the same as 2.10.  That is, still can't see the water through warp glass.  I tried both the test map (render.map) and my current WIP map.

The console says my version is 2.11/64 #9944

Link to comment
Share on other sites

So, the latest commits are trying to add "sort by distance/depth" for some surfaces, as well as allow several copies of currently rendered framebuffer.

I wonder: how is the problem of Z sorting solved for translucent objects?
I mean: the engine probably already has some sorting for translucent objects to make translucency correct... where is it implemented in the code?

Link to comment
Share on other sites

Ugh, I missed your replies, sorry

@Frost_Salamander Are you using the exe from my link? It's supposed to be 32-bit, unlike what you reported above

On 6/27/2022 at 10:29 PM, stgatilov said:

As you probably remember, I'm strongly against tying LOD setting to all kind of unrelated graphics settings 😪
I did not look the latest commits yet, but I think I glimpsed this kind of dependency...

I remember, it's just my understanding/belief that users in general prefer one quality slider instead of dozens of individual console switches. So it's my honest attempt to make life simpler for everyone.

4 minutes ago, stgatilov said:

So, the latest commits are trying to add "sort by distance/depth" for some surfaces, as well as allow several copies of currently rendered framebuffer.

I wonder: how is the problem of Z sorting solved for translucent objects?
I mean: the engine probably already has some sorting for translucent objects to make translucency correct... where is it implemented in the code?

AFAIK it only "groups" surfaces by their type

I.e. first it renders regular materials, then translucent, and in the end post-processing

But the order of surfaces inside each group is not defined. There's a fixed auto-offset added, but it's more like a legacy fix for some old obscure bug than anything relevant to the question in hand

 

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

    • 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
       
      · 1 reply
    • 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
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
×
×
  • Create New...