Jump to content


Photo

Testers and reviewers wanted: BFG-style vertex cache


  • Please log in to reply
414 replies to this topic

#376 nbohr1more

nbohr1more

    Darkmod PR, Wordsmith

  • Development Role
  • PipPipPipPipPip
  • 9102 posts

Posted 28 November 2018 - 12:29 AM

Update 16 is up at Moddb:

https://www.moddb.co...tex-buffer-beta

* Mirror textures can now render in PortalSky views. Fixes the mission "Betrayal".

* Single Pass shadow maps are now the default: r_shadowMapSinglepass 1

* Some shadow map sampling artifacts fixed
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...)

#377 lowenz

lowenz

    Advanced Member

  • Member
  • PipPipPip
  • 1922 posts

Posted 28 November 2018 - 04:49 AM

So, the suggested (future default?) value for:

 

-shadowmapsize

-softshadowsradius

-softshadowsquality

 

are?


Task is not so much to see what no one has yet seen but to think what nobody has yet thought about that which everybody see. - E.S.


#378 lowenz

lowenz

    Advanced Member

  • Member
  • PipPipPip
  • 1922 posts

Posted 28 November 2018 - 06:25 AM

Some issues (The Warrens / maxed quality on a GeForce 750 Ti) - that ivy texture cast a not-intended -shadow:

 

1.jpg
 
2.jpg
 
3.jpg

Edited by lowenz, 28 November 2018 - 06:26 AM.

  • nbohr1more likes this

Task is not so much to see what no one has yet seen but to think what nobody has yet thought about that which everybody see. - E.S.


#379 nbohr1more

nbohr1more

    Darkmod PR, Wordsmith

  • Development Role
  • PipPipPipPipPip
  • 9102 posts

Posted 28 November 2018 - 03:31 PM

Some issues (The Warrens / maxed quality on a GeForce 750 Ti) - that ivy texture cast a not-intended -shadow:


This is a tough one. I think we should set this decal to noshadows (or DECAL_MACRO which includes noshshadows)
but I don't know if any mapper has used this texture as something other than a decal... :(
 
We do have preliminary support for alpha shadowing but it's unclear whether it will be included in 2.07 (I get the impression that it will)
so "You can un-comment the alfa part in shadowmapN.fs" to cure this type of artifact.
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...)

#380 nbohr1more

nbohr1more

    Darkmod PR, Wordsmith

  • Development Role
  • PipPipPipPipPip
  • 9102 posts

Posted 28 November 2018 - 03:44 PM

Further experimenting with lights. It seems parallel lights with shadow maps also have problems, the shadows do not display, or do only in part. This one's a bit harder to pin, no soft shadows are glitchy in a different way than with soft shadows, and it seems the higher the soft shadow quality the more diffused and weak the parallel light is.

 
 

Hmm. Parallel lights use a math trick to move the light center to a very far location.
It is meant to simulate moon light. This trick is in place no matter how large the light
volume is. If our softening algorithm is using this center distance then it would
certainly explain over-softening for stencil shadows (where we don't have contact hardening)
but it may also play into Shadow Maps if the map depth capture is predicated on this
false distance (thus you will ALWAYS have low resolution because you are sampling at the
far edge away from the light center).


OOF!

I forgot about something.

Duzenko made a change that auto sizes the "light center size" (softness) based on the overall size of the volume.
If you ARE using Parallel lights for the typical sky \ moon light scenario then the over-softening would
be courtesy of the auto-sizing but also would likely be compounded by the factors I mentioned above.

In a previous discussion about Parallel lights, I suggested just a small uniform blur rather than using
any complex method to divine the contact hardening (etc).
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...)

#381 nbohr1more

nbohr1more

    Darkmod PR, Wordsmith

  • Development Role
  • PipPipPipPipPip
  • 9102 posts

Posted 28 November 2018 - 05:01 PM

Just thought I'd pop in and say I get the aas out of date with Samhain Night as well.
New engine changes invalidating old map aas?


Added a comment to:

http://bugs.thedarkm...iew.php?id=4877
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...)

#382 Spooks

Spooks

    Advanced Member

  • Member
  • PipPipPip
  • 508 posts

Posted 28 November 2018 - 05:43 PM

 

Some issues (The Warrens / maxed quality on a GeForce 750 Ti) - that ivy texture cast a not-intended -shadow:

 

I tested the same location on the newest update. This is the SinglePass mode now defaulting to 1, it renders all apha materials opaque for the purposes of shadow casting. I already reported this, if you turn the cvar to 0 it fixes itself.

 

@nbhor, I don't know about the size of the light volume, my test was on a very conventionally sized one (~5123) and the shadows were straight up busted rather than over-softened - they just weren't there. With soft shadows on they disappear, with them off there are thin streaks of shadow that dis/appear as you move and look around. Parallel lights with (soft) stencil shadows don't look wrong from what I can tell.

 

I can also confirm the opaque blotches are now fixed but I can feel the optimization being gone, FPS dips to 40 now (down from, I don't remember ~50?), in my test scene with a bunch of alpha texture grates, with softshadow quality 16.


Edited by Spooks, 28 November 2018 - 05:47 PM.

My FMs: The King of Diamonds (2016)

 

Visit my Mapbook thread sometimes!


#383 nbohr1more

nbohr1more

    Darkmod PR, Wordsmith

  • Development Role
  • PipPipPipPipPip
  • 9102 posts

Posted 28 November 2018 - 05:48 PM

Hmm.

In Remembrance of Him uses parallel lights and I recall testing it not long ago and having
proper shadow rendering in Shadow Map mode.

I'll retest tonight to see if this is a vendor specific bug.

I was just speculating about "what could go wrong".

Edit: Do the same problems manifest if r_shadowMapSize is set to 1280 or higher?
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...)

#384 Spooks

Spooks

    Advanced Member

  • Member
  • PipPipPip
  • 508 posts

Posted 28 November 2018 - 06:04 PM

Yes, they do. Do remember r_maxShadowMapLight when testing! I blew up the parallel light volume during tests and it got sent to stencil shadows because it was too large, In Remembrance of Him's parallel lights may well go over your r_maxShadowMapLight value.


  • nbohr1more likes this

My FMs: The King of Diamonds (2016)

 

Visit my Mapbook thread sometimes!


#385 nbohr1more

nbohr1more

    Darkmod PR, Wordsmith

  • Development Role
  • PipPipPipPipPip
  • 9102 posts

Posted 05 December 2018 - 12:07 AM

Update 17:

 

https://www.moddb.co...tex-buffer-beta

 

This should be the last "informal" 2.07 package before the official 2.07 beta

 

HRTF Positional Audio!!!!

 

GUI Softness slider fixed

 

Fix for strange compass render issue

 

Improved OpenGL standards compliance.


  • Judith, HMart and Anderson 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...)

#386 Judith

Judith

    Advanced Member

  • Member
  • PipPipPip
  • 1727 posts

Posted 05 December 2018 - 01:45 AM

Didn't try HRTF but cf_level works when HRTF is off. 2 is pretty good value for both speakers and headphones.

 

Compass works now (no magnified background), although it still casts shadow on itself.

 

IMO it's still important to restore engine precision in drawing geometry (BSP holes, z-fighting between not overlapping surfaces), and the heat haze (with depth) program still displays weird artifacts.


Edited by Judith, 05 December 2018 - 02:11 AM.


#387 lowenz

lowenz

    Advanced Member

  • Member
  • PipPipPip
  • 1922 posts

Posted 05 December 2018 - 02:45 AM

Does HRTF require stereo (2.0) setting?


Task is not so much to see what no one has yet seen but to think what nobody has yet thought about that which everybody see. - E.S.


#388 lowenz

lowenz

    Advanced Member

  • Member
  • PipPipPip
  • 1922 posts

Posted 05 December 2018 - 03:13 AM

Comparison Single Pass ShadowMaps: 5% perfomance hit

 

*Single Pass SM OFF (less performance, no issues)

0.jpg
 
 

*Single Pass SM ON (more performance, alpha issue)

1.jpg


Edited by lowenz, 05 December 2018 - 03:15 AM.

  • Anderson likes this

Task is not so much to see what no one has yet seen but to think what nobody has yet thought about that which everybody see. - E.S.


#389 HMart

HMart

    Advanced Member

  • Member
  • PipPipPip
  • 747 posts

Posted 05 December 2018 - 08:19 PM

Don't know if is just the mess of modifications i have for TDM, but while playing "rightful property"  was unable to use water arrows to turn of the torches, also add the aas out of date error again. I'm playing with the latest 2.07 alpha update 17 and the unificial TDM patch 1.1. 

 

Outside of that game was smooth tho.  


Edited by HMart, 05 December 2018 - 08:20 PM.


#390 wesp5

wesp5

    Advanced Member

  • Member
  • PipPipPip
  • 641 posts

Posted 06 December 2018 - 03:12 AM

I'm playing with the latest 2.07 alpha update 17 and the unificial TDM patch 1.1.

The Unofficial Patch hasn't been updated for 2.07 yet, so if some of the light definitions changed in 2.07 this could cause your problem.



#391 Judith

Judith

    Advanced Member

  • Member
  • PipPipPip
  • 1727 posts

Posted 06 December 2018 - 03:29 AM

This should be the last "informal" 2.07 package before the official 2.07 beta

 

Stgatilov just fixed the dmapping / rendering precision bug, so I suggest we try that out too ;)



#392 lowenz

lowenz

    Advanced Member

  • Member
  • PipPipPip
  • 1922 posts

Posted 06 December 2018 - 04:45 AM

Does HRTF require stereo (2.0) setting?

Up (and I cant's see any switch to toggle it ON/OFF)

 

+1 for the a new beta package with the rendering precision bug solved (if possible, thanks)


Edited by lowenz, 06 December 2018 - 04:46 AM.

Task is not so much to see what no one has yet seen but to think what nobody has yet thought about that which everybody see. - E.S.


#393 Judith

Judith

    Advanced Member

  • Member
  • PipPipPip
  • 1727 posts

Posted 06 December 2018 - 04:51 AM

It's in the alsoft.ini file in the root directory. Look for hrtf = true, change it to false if you want to try out the crossfade setting (cf_level = 2).

 

Btw. it would be pretty neat to have reloadsounds read the changed .ini file as well, so we can experiment with different values without restarting the game.


Edited by Judith, 06 December 2018 - 05:00 AM.

  • stgatilov likes this

#394 stgatilov

stgatilov

    Lead Programmer

  • Active Developer
  • PipPipPip
  • 1126 posts

Posted 06 December 2018 - 05:47 AM

Btw. it would be pretty neat to have reloadsounds read the changed .ini file as well, so we can experiment with different values without restarting the game.

I suggest filing a feature request.

The problem is that openal-soft reads its own config inside its implementation.

I have no idea yet if it is possible to set this config programmatically.


  • Judith and Anderson like this

#395 Judith

Judith

    Advanced Member

  • Member
  • PipPipPip
  • 1727 posts

Posted 06 December 2018 - 05:52 AM

On a second thought, it's rather low-priority thing. I think most people will want to stick to one default config for all missions.



#396 lowenz

lowenz

    Advanced Member

  • Member
  • PipPipPip
  • 1922 posts

Posted 06 December 2018 - 06:15 AM

It's in the alsoft.ini file in the root directory. Look for hrtf = true, change it to false if you want to try out the crossfade setting (cf_level = 2).

 

Btw. it would be pretty neat to have reloadsounds read the changed .ini file as well, so we can experiment with different values without restarting the game.

But always with the stereo setup, right? (Soft OpenAL requires it for HRTF).


Edited by lowenz, 06 December 2018 - 06:16 AM.

Task is not so much to see what no one has yet seen but to think what nobody has yet thought about that which everybody see. - E.S.


#397 lowenz

lowenz

    Advanced Member

  • Member
  • PipPipPip
  • 1922 posts

Posted 06 December 2018 - 06:30 AM

Don't know if it's the correct thread where to post this but:

 

The-Dark-Modx64-2018-12-06-12-27-03-190.free image hosting

 

This blending issue "candle light vs water" can't be solved, right?


Edited by lowenz, 06 December 2018 - 06:30 AM.

  • Anderson likes this

Task is not so much to see what no one has yet seen but to think what nobody has yet thought about that which everybody see. - E.S.


#398 Judith

Judith

    Advanced Member

  • Member
  • PipPipPip
  • 1727 posts

Posted 06 December 2018 - 12:09 PM

But always with the stereo setup, right? (Soft OpenAL requires it for HRTF).

 

Yup, and that's the default value (i.e. even when that line is empty). As for the candle, that's transparency sorting problem, it should be done in materials.


Edited by Judith, 06 December 2018 - 12:11 PM.


#399 duzenko

duzenko

    Advanced Member

  • Active Developer
  • PipPipPip
  • 1814 posts

Posted 08 December 2018 - 03:08 AM

Comparison Single Pass ShadowMaps: 5% perfomance hit

 

*Single Pass SM OFF (less performance, no issues)

 
 
 

*Single Pass SM ON (more performance, alpha issue)

 

 

 

Quite puzzling to see it faster on your system

 

What is that decal material exactly?

 

@nbohr1more, do we want to switch shadows off for that decals?



#400 duzenko

duzenko

    Advanced Member

  • Active Developer
  • PipPipPip
  • 1814 posts

Posted 08 December 2018 - 03:11 AM

Don't know if it's the correct thread where to post this but:

 

free image hosting

 

This blending issue "candle light vs water" can't be solved, right?

Supposedly we could sort surfaces by distance to entity

Or force some shaders (water) sort priority different to others (candle halo) - right now they're the same






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users