Jump to content
The Dark Mod Forums
Sign in to follow this  
cabalistic

Testers and reviewers wanted: BFG-style vertex cache

Recommended Posts

I am currently testing the latest SVN build (7702) on an Intel Celeron notebook running Archlinux and the latest Mesa drivers. Lighting does not work at all, only ambient. Should this work or is that just the current state?

Share this post


Link to post
Share on other sites

I am currently testing the latest SVN build (7702) on an Intel Celeron notebook running Archlinux and the latest Mesa drivers. Lighting does not work at all, only ambient. Should this work or is that just the current state?

Any errors in console? Could be GLSL compiler issues.


Amnesty for Bikerdude!

Share this post


Link to post
Share on other sites

with this settings

 

r_testARBPrograms 1
r_shadows 2
r_softShadowsQuality 32
r_softShadowsRadius 5 // this controls shadow blurriness and at 11 like i add before it can cause shadows to almost disappear.
r_shadowMapSize 1024

 

Shadow maps look good enough to me and performance is much better, where i add 26fps before now i got 55+fps. :D

 

Btw I forgot to test this right now but i think you guys need to debug changing shadows at run time, on my last test when changing from stencil to shadow maps, some shadows vanished, perhaps caused by the high r_softShadowsRadius, but when returning to stencil, r_shadows 1, those shadows didn't return?! Perhaps it didn't changed to stencil like it was supposed to and i thought it did? But if so that would mean r_shadows 1 didn't worked.

Edited by HMart

Share this post


Link to post
Share on other sites

use vid_restart ;)

  • Like 1

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.

Share this post


Link to post
Share on other sites

with this settings

 

r_testARBPrograms 1

r_shadows 2

r_softShadowsQuality 32

r_softShadowsRadius 5 // this controls shadow blurriness and at 11 like i add before it can cause shadows to almost disappear.

r_shadowMapSize 1024

 

Shadow maps look good enough to me and performance is much better, where i add 26fps before now i got 55+fps. :D

 

Btw I forgot to test this right now but i think you guys need to debug changing shadows at run time, on my last test when changing from stencil to shadow maps, some shadows vanished, perhaps caused by the high r_softShadowsRadius, but when returning to stencil, r_shadows 1, those shadows didn't return?! Perhaps it didn't changed to stencil like it was supposed to and i thought it did? But if so that would mean r_shadows 1 didn't worked.

That would be great of course. Right now you need to quick save/load after shadow switch. A known issue.

  • Like 1

Amnesty for Bikerdude!

Share this post


Link to post
Share on other sites

Btw. by shadow maps you mean this? https://cloud.githubusercontent.com/assets/1278614/2939606/1b1f033a-d951-11e3-9ceb-d6e9849b9f7d.png

 

I can make a fence material with alphatest and the light behind it will cast proper shadow?

Share this post


Link to post
Share on other sites

What must I enable to test shadow maps? I made an alphatest fence, similar to what's in the picture, but when I use r_shadows 2, all shadows disappear.

Edited by Judith

Share this post


Link to post
Share on other sites

Any errors in console? Could be GLSL compiler issues.

OpenGL vendor: Intel Open Source Technology Center
OpenGL renderer: Mesa DRI Intel(R) Bay Trail
OpenGL version: 3.0 Mesa 18.2.1
Checking portable OpenGL extensions...
v - using GL_ARB_multitexture
Max texture coords: 8
Max active textures: 96
v - using GL_ARB_texture_cube_map
v - using GL_ARB_texture_non_power_of_two
v - using GL_ARB_texture_compression
v - using GL_EXT_texture_compression_s3tc
v - using GL_ARB_texture_compression_rgtc
v - using GL_EXT_texture_filter_anisotropic
    maxTextureAnisotropy: 16.000000
v - using GL_EXT_texture_lod_bias
v - using GL_EXT_stencil_wrap
v - using glStencilOpSeparate
v - using GL_ARB_vertex_buffer_object
v - using GL_ARB_map_buffer_range
X - GL_EXT_depth_bounds_test not found
v - using GL_ARB_framebuffer_object
v - using GL_ARB_pixel_buffer_object
v - using GL_ARB_draw_buffers
v - using GL_ARB_sync
Max vertex attribs: 16
Max env parameters: 256
---------- R_ReloadGLSLPrograms_f -----------
interaction VF
ambientInteraction VF
stencilShadow VF
shadowMap VGWARNING:shaderCompileFromFile(glprogs/shadowMap.gs) validation
@

F
oldStage VF
depthAlpha VF
fog VF
blend VF
cubeMap VF

Share this post


Link to post
Share on other sites

What must I enable to test shadow maps? I made an alphatest fence, similar to what's in the picture, but when I use r_shadows 2, all shadows disappear.

Quick save/load

 

Yes, but not correctly.

 

Do you use OpenGL's debug output feature (the KHR_DEBUG extension)?

Not ATM.

Try deleting your darkmod.cfg.

 

 

Yes, but not correctly.

Did 2.06 work on your system?


Amnesty for Bikerdude!

Share this post


Link to post
Share on other sites

 

Quick save/load

 

 

Didn't work on my system. Are there any mandatory cvars or GPU drivers I need to use? (nvidia GTX 1060 here, driver version 398.36, win 7).

Edited by Judith

Share this post


Link to post
Share on other sites

 

 

Didn't work on my system. Are there any mandatory cvars or GPU drivers I need to use? (nvidia GTX 1060 here, driver version 398.36, win 7).

Does the volumetric build also fail to show shadow maps? If so, try clearing your darkmod.cfg


Amnesty for Bikerdude!

Share this post


Link to post
Share on other sites

Using the volumetric build:

 

1) I deleted the darkmod.cfg, ran the game, set the resolution to 1440p / windowed, restarted the game

2) I launched the volumetric test map, entered r_shadows 2 in the console

3) Pressed Quicksave (F4) and Quickload (F9)

 

All shadows are gone, only the projection texture works.

Share this post


Link to post
Share on other sites

This is what I get.

It could easily be an nvidia compatibility issue, even though it was supposed to be fixed before the last alpha build.

The volumetric build could be based on an earlier svn version, so you can also try the same recreated darkmod.cfg with the last build @nbohr1more posted - that should work (even if it won't).

 

EDIT. I can confirm that the volumetric build seems like to be incompatible with nvidia implementation of GL_TEXTURE_COMPARE_MODE. The nbohr1more's build is supposed to work.

post-3508-0-70569200-1538124609_thumb.jpg


Amnesty for Bikerdude!

Share this post


Link to post
Share on other sites

Okay, I used the update 11 build instead of volumetric and deleted volumetric keyword from light materials to make them work. I see the pixelated shadows in the first example, but that alcove window on the right (alphatest plane) doesn't show any shadows.

 

Edit: that said, the shadow mapping works nice with higher values. I set the soft shadows quality to high, radius to 5 and map size to 2048, and it looks good.

Edited by Judith

Share this post


Link to post
Share on other sites

Okay, I used the update 11 build instead of volumetric and deleted volumetric keyword from light materials to make them work. I see the pixelated shadows in the first example, but that alcove window on the right (alphatest plane) doesn't show any shadows.

 

Edit: that said, the shadow mapping works nice with higher values. I set the soft shadows quality to high, radius to 5 and map size to 2048, and it looks good.

Then it must be something in your old .cfg that prevents the shadow maps to show?


Amnesty for Bikerdude!

Share this post


Link to post
Share on other sites

No idea, I only have this in my autocommands.cfg:

 

com_allowConsole "1"
con_noprint "0"
set g_fov "85"

r_postprocess_bloomIntensity "1"
r_postprocess_bloomKernelSize ".5"

 

Also, maybe I'm misunderstanding something, does having shadow maps equals having transparency shadow maps?

 

pic0295.gif --> pic0294.gif

 

http://www.rastertek.com/dx10tut49.html

Share this post


Link to post
Share on other sites

 

Also, maybe I'm misunderstanding something, does having shadow maps equals having transparency shadow maps?

 

 

 

http://www.rastertek.com/dx10tut49.html

Yes, it should work like on the right picture.

 

 

No idea, I only have this in my autocommands.cfg:

 

com_allowConsole "1"

con_noprint "0"

set g_fov "85"

 

r_postprocess_bloomIntensity "1"

r_postprocess_bloomKernelSize ".5"

I'm talking about darkmod.cfg, not the autocommands.cfg


Amnesty for Bikerdude!

Share this post


Link to post
Share on other sites

A quick comparison. Both shadow modes have quality set to very high and radius to 5.

 

Soft stencil shadows:

obraz.png

 

Shadowmaps with shadowmap size 1024:

obraz.png

 

Shadow maps fare better, because they get more blurred with the distance, although maybe they could have some better filtering. 1024 px shadow maps can look quite pixelated, 2048 px looks better. Still can't get the transparency shadow maps to work though.

Share this post


Link to post
Share on other sites

Oh, the hard-contact (in the second picture) :D

Edited by lowenz

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.

Share this post


Link to post
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.

Sign in to follow this  

×
×
  • Create New...