Jump to content


Photo

Beta Testing 2.07

beta

  • Please log in to reply
345 replies to this topic

#51 duzenko

duzenko

    Uber member

  • Active Developer
  • PipPipPipPip
  • 2318 posts

Posted 21 December 2018 - 04:54 AM

 

Did you have a chance to take a look at it? When I use maskDepth in the program stage, it cancels the refraction effect. Maybe I'm doing something wrong?

Do you have a test map/quick save?



#52 peter_spy

peter_spy

    Uber member

  • Member
  • PipPipPipPip
  • 2052 posts

Posted 21 December 2018 - 05:12 AM

Nope, that's a 1,5 gig WIP project. But, you can apply textures/darkmod/glass/clear_warp material on a brush to see that. Just remember to use larger scale, like 1.



#53 duzenko

duzenko

    Uber member

  • Active Developer
  • PipPipPipPip
  • 2318 posts

Posted 21 December 2018 - 05:13 AM

Nope, that's a 1,5 gig WIP project. But, you can apply textures/darkmod/glass/clear_warp material on a brush to see that. Just remember to use larger scale, like 1.

For that I would need DR that I don't have and clueless about anyway

#54 peter_spy

peter_spy

    Uber member

  • Member
  • PipPipPipPip
  • 2052 posts

Posted 21 December 2018 - 05:16 AM

obraz.png

 

For some reason that effect vanishes when you turn on in-game AA:

obraz.png

 

The material code is as follows:

textures/darkmod/glass/clear_warp
{

	// Written by Tels, mainly based on 
	// http://www.iddevnet.com/doom3/materials.php

	noSelfShadow
	noshadows
	twoSided
	translucent
	forceoverlays
	sort decal
	glass
	qer_editorimage	textures/darkmod/glass/clear_warp_ed

	description "A reflecting, translucent material suited for large, flat glass panes"

    // this block makes the glass distort what you see through it
    // one unwanted side-effect is that this effect does not stack
	// and distorbs objects in front of the glass, too
    {
                vertexProgram heatHazeWithDepth.vfp
                vertexParm  0  0 , 0  // texture scrolling
                vertexParm  1  .8  // magnitude of the distortion

                fragmentProgram heatHazeWithDepth.vfp
                fragmentMap 0  _currentRender
                fragmentMap 1  textures/sfx/vp1 // the normal map for distortion
                fragmentMap 2 _currentDepth
				maskDepth
    }

	// this stage sets up the alpha mask (it doesnt render anything)
	// we use another glass texture for the alpha map, so that the reflection
	// shows more clearly and different from what the alpha map of our glass
	// says, that makes it more interesting :)
	{
		maskcolor				
		map makealpha(textures/glass/glass1)
	}
	// now use the alpha mask to add some fake reflections
	{
		blend gl_dst_alpha, gl_one
		maskalpha
		cubeMap env/gen2
		// tone down the reflection a bit
		red     Parm0 * .2
		green   Parm1 * .2
		blue    Parm2 * .2
		texgen  reflect
	}
	// add our texture on top
	{
		blend   gl_dst_color, gl_one
		map	textures/darkmod/glass/crystal_milky
		red     Parm0 * 0.2
		green   Parm1 * 0.2
		blue    Parm2 * 0.2
	}

	// This is the code required for frob highlighting this texture
	{
		if ( parm11 > 0 )
			blend       gl_dst_color, gl_one
			map         _white
			rgb         0.40 * parm11
   	}
	{
		if ( parm11 > 0 )
			blend       add
			map         textures/darkmod/glass/crystal_milky
			rgb         0.15 * parm11
	}


}


#55 duzenko

duzenko

    Uber member

  • Active Developer
  • PipPipPipPip
  • 2318 posts

Posted 21 December 2018 - 10:40 AM

Any chance I could have a map to test this?



#56 VanishedOne

VanishedOne

    Advanced Member

  • Member
  • PipPipPip
  • 1016 posts

Posted 21 December 2018 - 11:05 AM

delete your tdm_base01.pk4 and re-run tdm_updater

Still not fixed, I'm afraid. It got slightly better after I also deleted the config file again, but slightly better is still very broken.


Some things I'm repeatedly thinking about...

- louder scream when you're dying


#57 peter_spy

peter_spy

    Uber member

  • Member
  • PipPipPipPip
  • 2052 posts

Posted 21 December 2018 - 11:15 AM

Any chance I could have a map to test this?

 

https://we.tl/t-yGJAWpZuqg


  • stgatilov and duzenko like this

#58 stgatilov

stgatilov

    Lead Programmer

  • Active Developer
  • PipPipPip
  • 1773 posts

Posted 21 December 2018 - 11:15 AM

Still not fixed, I'm afraid. It got slightly better after I also deleted the config file again, but slightly better is still very broken.

Could you please do the following:

 

1) Provide the contents of your darkmod.cfg.

 

2) Show how exactly it looks. Including the "press attack to start" screen.

Video would be perfect (e.g. record with OBS). Set of screenshots  would be OK. If the issue is not present on screenshots, take at least some photos.

 

3) Try to toggle various parameters.

I see you already tried r_useFBO 0. I suggest setting r_fboResolution 1, disable soft shadows and all experimental settings, set shadows to "Stencil".

Also try toggling ambient/interaction shaders (simple/enhanbed), switch bloom off. Disable antialiasing just in case.

If nothing of this helps, then try to disable parts of lighting:

  r_skipInteractions 1 --- completely disables interactions (i.e. lighting be lamps, fires, etc.)

  r_skipAmbient 3 --- completely disables ambient light (sort of global and scene-baked light)

If one of this removes crazy flickering, please tell us which one.



#59 duzenko

duzenko

    Uber member

  • Active Developer
  • PipPipPipPip
  • 2318 posts

Posted 21 December 2018 - 11:45 AM

This is how it looks for me on Intel (practically OK) but  I guess it's broken for you on nVidia because, as stated above, the glass surface writes to depth buffer at the same time as it reads which Opengl considers undefined behavior.

 

Since I can't repeat it on my side due to implementation specific behavior I have to rely on you for experimenting.

 

How does it look with and without the maskDepth for you? I was wrong - it's actually a stage modifier (although it does not make much sense for me)

 

Also, try to make the material front/back faces only. It seems to be both sides currently.

Attached Files



#60 peter_spy

peter_spy

    Uber member

  • Member
  • PipPipPipPip
  • 2052 posts

Posted 21 December 2018 - 12:00 PM

MaskDepth doesn't change a thing on my nvidia card, it looks like this:

 

obraz.png

 

 

Also, try to make the material front/back faces only. It seems to be both sides currently.

 

This is one sided brush, but this glass material does make it two sided by default (and without twosided keyword).



#61 VanishedOne

VanishedOne

    Advanced Member

  • Member
  • PipPipPip
  • 1016 posts

Posted 21 December 2018 - 12:32 PM

Well, this is weird: not only could I not capture the problem in screenshots, it actually vanishes when OBS has TDM as a source. I'll have to use my 'phone camera instead.

 

r_skipInteractions 1 and r_skipAmbient 3 both remove the glitches.

 

Generated Darkmod.cfg is attached.

 

The problem seems to manifest itself mainly near (some) lights. In this map, when I move near the hanging oil lamp this happens: link

 

The HUD is also affected: link

Attached Files


  • stgatilov likes this

Some things I'm repeatedly thinking about...

- louder scream when you're dying


#62 stgatilov

stgatilov

    Lead Programmer

  • Active Developer
  • PipPipPip
  • 1773 posts

Posted 21 December 2018 - 12:33 PM

I quickly booted up my missions to see any changes. I noticed both are super dark even with the gamma and brightness turned up?

I have all the graphic  bells and whistles turned to OFF It looks like when I turn ambient lighting model to simple the ambient works but in advanced mode, the renderer doesn't seem to use the ambient lighting at all

Could you also say what's the value of image_useNormalCompression cvar?

 

I have briefly looked at the changes since 2.06, and there are quite a lot of them.

I'm afraid that substantial help is needed from your side.

 

I have attached an instrumented version of ambientInteraction.fs.

I'm pretty sure that you know how to override stock shader with this one (replace it inside pk4 / uncompress one pk4 and change the file / etc).

The file has several #if 0 and #if 1 blocks, each one has a comment at the end of the line.

With their current values, the shader works normally for me (at least at the beginning of St.Lucia map).

 

I suggest going through all the #if-s. For each of them, do the following:

1) Toggle the digit (change 0 to 1 or vice versa).

2) Execute reloadGLSLPrograms in console.

3) Check if the picture has changed, and how it has changed.

4) Toggle the digit back.

5) Proceed to next #if.

Then write back exactly which changes made a difference and what was the difference.

If there are no changes, then the whole effort is useless :unsure:

 

This is rather bruteforce approach, but I would definitely do it myself if I could reproduce the problem.

Probably Duzenko would suggest something less stupid.

Attached Files



#63 stgatilov

stgatilov

    Lead Programmer

  • Active Developer
  • PipPipPip
  • 1773 posts

Posted 21 December 2018 - 12:40 PM

r_skipInteractions 1 and r_skipAmbient 3 both remove the glitches.

Just to clarify: are the glitches removed when you set one of these (either one, in both cases issue goes away), and only when you set both of these?

 

The HUD is also affected: link

I see the White Letters of Glitch here :huh:

I have always wondered what they are: I have seen that often in the part related to other FBO bugs.

 

Also could you please try again (just in case) to disable FBO.

Note that you have to restart game after setting r_useFBO 0, and be sure to check that it is still zero after restart.

This cvar is sometimes hard to disable :o



#64 nbohr1more

nbohr1more

    Darkmod PR, Wordsmith

  • Development Role
  • PipPipPipPipPip
  • 9518 posts

Posted 21 December 2018 - 12:49 PM

Well, this is weird: not only could I not capture the problem in screenshots, it actually vanishes when OBS has TDM as a source. I'll have to use my 'phone camera instead.

 

r_skipInteractions 1 and r_skipAmbient 3 both remove the glitches.

 

Generated Darkmod.cfg is attached.

 

The problem seems to manifest itself mainly near (some) lights. In this map, when I move near the hanging oil lamp this happens: link

 

The HUD is also affected: link

 

Hmm I thought that r_fboSeparateStencil was created for nvidia bugs like this. Does the behavior go away when set to 1?


Please visit TDM's IndieDB site and help promote the mod:

http://www.indiedb.c...ds/the-dark-mod

(Yeah, shameless promotion... but traffic is traffic folks...)

#65 VanishedOne

VanishedOne

    Advanced Member

  • Member
  • PipPipPip
  • 1016 posts

Posted 21 December 2018 - 12:54 PM

No luck with r_fboSeparateStencil. (It's an AMD chipset, incidentally.)

 

Just to clarify: are the glitches removed when you set one of these (either one, in both cases issue goes away), and only when you set both of these?

 

I see the White Letters of Glitch here :huh:

I have always wondered what they are: I have seen that often in the part related to other FBO bugs.

 

Also could you please try again (just in case) to disable FBO.

Note that you have to restart game after setting r_useFBO 0, and be sure to check that it is still zero after restart.

This cvar is sometimes hard to disable :o

 

When I initially tried those cvars in a test map, it seemed either would remove all the glitching I was seeing. However, I just went and stood near a light source in a map with a 0 0 0 global ambient, and only r_skipInteractions 0 had any effect.

 

r_useFBO 0 + restart doesn't remove the glitching.


Edited by VanishedOne, 21 December 2018 - 12:55 PM.

Some things I'm repeatedly thinking about...

- louder scream when you're dying


#66 nbohr1more

nbohr1more

    Darkmod PR, Wordsmith

  • Development Role
  • PipPipPipPipPip
  • 9518 posts

Posted 21 December 2018 - 01:04 PM

Hmmm...

 

Let's try forcing off fence sync. You'll lose FPS but it may reveal an issue with VBO behavior:

 

r_useFenceSync 0


  • stgatilov, duzenko and VanishedOne like this
Please visit TDM's IndieDB site and help promote the mod:

http://www.indiedb.c...ds/the-dark-mod

(Yeah, shameless promotion... but traffic is traffic folks...)

#67 VanishedOne

VanishedOne

    Advanced Member

  • Member
  • PipPipPip
  • 1016 posts

Posted 21 December 2018 - 01:42 PM

Hmmm...

 

Let's try forcing off fence sync. You'll lose FPS but it may reveal an issue with VBO behavior:

 

r_useFenceSync 0

Ah, now we're getting somewhere. No more glitching so far.


Some things I'm repeatedly thinking about...

- louder scream when you're dying


#68 nbohr1more

nbohr1more

    Darkmod PR, Wordsmith

  • Development Role
  • PipPipPipPipPip
  • 9518 posts

Posted 21 December 2018 - 02:00 PM

(It's an AMD chipset, incidentally.)


If I googled this correctly:

OpenGL version: 4.3.12615 Compatibility Profile Context 13.250.31.0


This appears to be a driver from 2014?

Have you tried getting the latest Adrenaline drivers?

https://www.amd.com/...-radeon-hd-8400
Please visit TDM's IndieDB site and help promote the mod:

http://www.indiedb.c...ds/the-dark-mod

(Yeah, shameless promotion... but traffic is traffic folks...)

#69 duzenko

duzenko

    Uber member

  • Active Developer
  • PipPipPipPip
  • 2318 posts

Posted 21 December 2018 - 02:49 PM

Ah, now we're getting somewhere. No more glitching so far.

Heh, I remember @cabalistic wtf'ing me for adding that cvar, LOL

 

 

Hmm I thought that r_fboSeparateStencil was created for nvidia bugs like this. Does the behavior go away when set to 1?

That trick only works on Intel and now even I don't turn it on

 

 

This appears to be a driver from 2014?

AMD has a habit of screwing the unsuspecting buyers of the mobile IGP's when it comes to driver support

Really shitty habit of pushing the noncompetitive hardware and then cutting driver support due to poor sales, now in its Nth iteration.


  • nbohr1more likes this

#70 VanishedOne

VanishedOne

    Advanced Member

  • Member
  • PipPipPip
  • 1016 posts

Posted 21 December 2018 - 03:16 PM

Okay: the installer froze my laptop so I ended up rebooting and can't be sure it installed cleanly, but (1) I have a 2016 driver date in the Device Manager, and (2) I can't reproduce the glitching any more. Cheers. :smile:


  • nbohr1more likes this

Some things I'm repeatedly thinking about...

- louder scream when you're dying


#71 nbohr1more

nbohr1more

    Darkmod PR, Wordsmith

  • Development Role
  • PipPipPipPipPip
  • 9518 posts

Posted 21 December 2018 - 10:47 PM

@Judith: Try this one
 
{    
surftype15
    description glass
	noSelfShadow
    noshadows
	translucent
	forceoverlays
    sort decal

	qer_editorimage		textures/do/mesh/ar_cor_window_d
	bumpmap				textures/do/mesh/ar_cor_window_n
    diffusemap       	textures/do/mesh/ar_cor_window_d
    specularmap			textures/do/mesh/ar_cor_window_s
	
	
    {
        vertexProgram heatHazeWithDepth.vfp
        vertexParm  0  0 , 0 // texture scrolling
        vertexParm  1  1  // magnitude of the distortion

        fragmentProgram heatHazeWithDepth.vfp
        fragmentMap 0  _currentRender
        fragmentMap 1  textures/do/mesh/glass_warp01_n // the normal map for distortion
        fragmentMap 2 _currentDepth
        maskDepth
   }
      
       

Please visit TDM's IndieDB site and help promote the mod:

http://www.indiedb.c...ds/the-dark-mod

(Yeah, shameless promotion... but traffic is traffic folks...)

#72 peter_spy

peter_spy

    Uber member

  • Member
  • PipPipPipPip
  • 2052 posts

Posted 22 December 2018 - 02:40 AM

Already tried that, it doesn't work. MaskDepth is also present in the clear_warp material, and it doesn't work either.



#73 Spooks

Spooks

    Advanced Member

  • Member
  • PipPipPip
  • 546 posts

Posted 22 December 2018 - 03:55 AM

I've reopened #4686. Lest you forget, I had already provided a test map in there. r_fboseperatestencil plainly disables r_useFBO and prevents it from being on. In-game AA is the only way for the heathaze materials to appear correct with FBO on.


  • peter_spy likes this

My FMs: The King of Diamonds (2016)

 

| Visit my Mapbook thread sometimes! | Read my tutorial on Image-Based Lighting Workflows for TDM! |


#74 duzenko

duzenko

    Uber member

  • Active Developer
  • PipPipPipPip
  • 2318 posts

Posted 22 December 2018 - 11:00 AM

I have an issue with my WIP in 2.07.

 

Here's the scene using 2.06:

 

attachicon.gif 206.jpg

 

Here's the scene using 2.07:

 

attachicon.gif 207.jpg

 

Looks like a lighting problem.

I think I fixed it and merged to the 2.07 branch but someone need to test the merge result



#75 duzenko

duzenko

    Uber member

  • Active Developer
  • PipPipPipPip
  • 2318 posts

Posted 22 December 2018 - 11:01 AM

I've reopened #4686. Lest you forget, I had already provided a test map in there. r_fboseperatestencil plainly disables r_useFBO and prevents it from being on. In-game AA is the only way for the heathaze materials to appear correct with FBO on.

Not exactly "disables" FBO but your driver does not support it and thus TDM falls back to the non-FBO path.







Also tagged with one or more of these keywords: beta

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users