View Issue Details

IDProjectCategoryView StatusLast Update
0005055The Dark ModGraphicspublic29.12.2019 11:34
ReporterMirceaKitsune Assigned Toduzenko  
PrioritynormalSeveritynormalReproducibilityalways
Status resolvedResolutionfixed 
Platformx64OSLinux openSUSEOS VersionRelease
Product VersionTDM 2.07 
Target VersionTDM 2.08Fixed in VersionTDM 2.08 
Summary0005055: Incorrect shadow mapping when using Stencil shadows + Soft shadowing
DescriptionThere seems to be an issue with shadow rendering in the engine: When enabling both Stencil Shadows and Soft Shadows, shadows get incorrectly mapped and are stretched across the screen in front of the camera. I have no issues when using Stencil Shadows without shadow softness, nor when using Map Shadows both with and without soft shadows.

I attached two screenshots from the FM Full Moon Fever: The first shows stencil shadows without softness (normal results) and the second is stencil shadows with softness (corrupt shadows).
Steps To ReproduceGo to: Settings - Video - Advanced - Experimental Features. In this menu set: Shadows Implementation = Stencil, Soft Shadows Quality > Off (Low, Medium, High, Very High). Linux users with AMD video cards using the amdgpu module and Mesa should notice the corrupt shadows.
Additional InformationI'm running TDM 2.07 x64. My operating system is Linux openSUSE Tumbleweed x64. Kernel 5.2.14. Mesa 19.1.7 (amdgpu module). My video card is an AMD Radeon XFX R9 390.
Tagsengine, rendering, shadows
Attached Files
fever_2019-09-24_03.37.34.jpg (236,001 bytes)   
fever_2019-09-24_03.37.34.jpg (236,001 bytes)   
fever_2019-09-24_03.37.42.jpg (242,841 bytes)   
fever_2019-09-24_03.37.42.jpg (242,841 bytes)   

Relationships

related to 0005085 resolvedduzenko r_fboResolution greater than 1: skybox and flame 

Activities

stgatilov

stgatilov

13.11.2019 02:53

administrator   ~0011863

Could you please attach darkmod.cfg and condump with soft shadows enabled?
Do you have the 2.07 hotfix version? (You can run tdm_update and try again to ensure it)
Given that 2.07 is out for quite some time, did this problem come up recently? Was/is it working in 2.06 (if you played it) ?
stgatilov

stgatilov

07.12.2019 17:26

administrator   ~0011897

Let's watch over this problem during 2.08 beta.
The rendering has changed a lot since 2.07, including the almost finished Core Profile.
Judith

Judith

14.12.2019 14:02

reporter   ~0011928

That looks like Render Scale set to something other than 1 with Stencil Shadows. That feature works with Shadow Maps only.
stgatilov

stgatilov

14.12.2019 16:40

administrator   ~0011930

Probably related: 0005068 (non-default r_fboResolution is buggy underwater).

It would be interesting to check if the problem can be reproduced with r_fboResolution + stencil shadows. Such case should either work properly or be impossible to set via menu graphical settings,
stgatilov

stgatilov

14.12.2019 16:59

administrator   ~0011931

Last edited: 14.12.2019 17:01

I can confirm that I see this issue with:
  r_fboResolution 2 (or 0.5)
  r_shadows 1
  r_softShadowsQuality 12
on any map.

With r_fboResolution > 1 I see some additional weird effects on skybox and torch flames.
These effects do NOT go away if I switch to shadow maps.

MirceaKitsune

MirceaKitsune

14.12.2019 17:02

reporter   ~0011932

Interesting. Indeed this sounds like it might be related to 0005068 which was also caused by having r_fboResolution set to a value above 1. I changed that in my config so I should no longer be getting this either.
stgatilov

stgatilov

14.12.2019 17:09

administrator   ~0011933

Here is the config file to be sure it could be reproduced.
Darkmod.cfg (12,742 bytes)   
seta r_legacyTangents "1"
seta gui_mediumFontLimit "0.30"
seta gui_smallFontLimit "0.15"
seta radiant_entityMode "0"
seta net_socksPassword ""
seta net_socksUsername ""
seta net_socksPort "1080"
seta net_socksServer ""
seta net_socksEnabled "0"
seta win_topmost "0"
seta win_maximized "0"
seta win_ypos "22"
seta win_xpos "3"
seta sys_lang "english"
seta s_decompressionLimit "6"
seta s_useEAXReverb "1"
seta s_numberOfSpeakers "2"
seta s_doorDistanceAdd "450"
seta s_globalFraction "0.8"
seta s_subFraction "0.75"
seta s_playDefaultSound "0"
seta s_volume_dB "0"
seta s_meterTopTime "2000"
seta s_reverse "0"
seta s_spatializationDecay "2"
seta s_maxSoundsPerShader "0"
seta s_device "default"
seta s_diffractionMax "10"
seta r_useFenceSync "1"
seta r_useBaseVertex "1"
seta r_frameIndexMemory "4096"
seta r_frameVertexMemory "4096"
seta r_useParallelAddModels "0"
seta r_maxShadowMapLight "1000"
seta r_postprocess_bloomKernelSize "2"
seta r_postprocess_bloomIntensity "1.997212"
seta r_postprocess "0"
seta r_cinematic_legacyRoq "0"
seta r_fboSeparateStencil "0"
seta r_shadowMapSize "1024"
seta r_fboSharedDepth "0"
seta r_fboDepthBits "24"
seta r_fboSRGB "0"
seta r_fboColorBits "32"
seta r_nVidiaOverride "1"
seta r_newFrob "0"
seta r_glCoreProfile "0"
seta r_uniformTransforms "1"
seta r_useGLSL "1"
seta r_useAnonreclaimer "0"
seta r_screenshot_format "jpg"
seta r_debugArrowStep "0"
seta r_debugLineWidth "1"
seta r_debugLineDepthTest "0"
seta com_smp "0"
seta r_forceLoadImages "0"
seta r_lightSourceRadius "0"
seta r_testARBProgram "1"
seta r_shadows "1"
seta r_shadowPolygonFactor "0"
seta r_shadowPolygonOffset "-1"
seta r_offsetunits "-0.1"
seta r_offsetfactor "-2"
seta r_clear "2"
seta r_useSoftParticles "1"
seta r_skipDepthCapture "0"
seta r_skipBump "0"
seta r_skipSpecular "0"
seta r_ambientGamma "1"
seta r_ambientMinLevel "0"
seta r_brightness "1"
seta r_gamma "1"
seta r_swapInterval "0"
seta r_softShadowsRadius "1"
seta r_softShadowsQuality "12"
seta r_fullscreen "2"
seta r_multiSamples "2"
seta r_glDebugContext "1"
seta r_glDebugOutput "2"
seta image_blockChecksum "0"
seta image_downSizeLimit "256"
seta image_ignoreHighQuality "0"
seta image_downSizeBumpLimit "128"
seta image_downSizeSpecularLimit "64"
seta image_downSizeBump "0"
seta image_downSizeSpecular "0"
seta image_usePrecompressedTextures "1"
seta image_useNormalCompression "1"
seta image_useAllFormats "1"
seta image_useCompression "1"
seta image_preload "1"
seta image_roundDown "1"
seta image_forceDownSize "0"
seta image_downSize "0"
seta image_lodbias "0"
seta image_anisotropy "2"
seta image_filter "GL_LINEAR_MIPMAP_LINEAR"
seta r_debugGLSL "0"
seta r_fboResolution "2"
seta r_shadowMapSinglePass "0"
seta r_useMultiDraw "1"
seta r_shadowMapCullFront "0"
seta r_cinematic_checkImmediately "0"
seta r_cinematic_log_flush "0"
seta r_cinematic_log_ffmpeg "0"
seta r_cinematic_log "0"
seta r_usePersistentMapping "1"
seta net_serverDlTable ""
seta net_serverDlBaseURL ""
seta net_serverDownload "0"
seta mod_validSkins "skins/characters/player/marine_mp;skins/characters/player/marine_mp_green;skins/characters/player/marine_mp_blue;skins/characters/player/marine_mp_red;skins/characters/player/marine_mp_yellow"
seta g_mapCycle "mapcycle"
seta g_voteFlags "0"
seta g_gameReviewPause "10"
seta g_countDown "10"
seta g_password ""
seta g_rotoscope "0"
seta g_testModelHeadJoint "Spine2"
seta g_testModelHead "atdm:ai_head_citywatch"
seta g_skipViewEffects "0"
seta g_fov "90"
seta g_showBrass "1"
seta g_showProjectilePct "0"
seta g_showHud "1"
seta g_showPlayerShadow "0"
seta pm_air_regainingSpeed "4"
seta pm_air "1800"
seta pm_modelView "0"
seta pm_thirdPersonDeath "0"
seta pm_thirdPerson "0"
seta pm_thirdPersonClip "1"
seta pm_thirdPersonAngle "0"
seta pm_thirdPersonHeight "0"
seta pm_thirdPersonRange "80"
seta pm_bobroll "0.0015"
seta pm_bobpitch "0.001"
seta pm_bobup "0.03"
seta pm_runroll "0.003"
seta pm_runpitch "0.001"
seta pm_runbob "0.35"
seta pm_walkbob "0.3"
seta pm_crouchbob "0.2"
seta pm_bboxwidth "32"
seta pm_crouchrate "0.87"
seta pm_deadviewheight "10"
seta pm_deadheight "20"
seta pm_normalviewheight "68"
seta pm_normalheight "74"
seta pm_crouchviewheight "34"
seta pm_crouchheight "38"
seta pm_maxviewpitch "89"
seta pm_minviewpitch "-89"
seta pm_noclipspeed "200"
seta pm_walkspeed "70"
seta pm_stepsize "16"
seta pm_jumpheight "48"
seta g_enablePortalSky "2"
seta g_showcamerainfo "0"
seta g_damageScale "1"
seta g_decals "1"
seta g_doubleVision "1"
seta g_bloodEffects "1"
seta g_projectileLights "1"
seta g_muzzleFlash "1"
seta gui_CenterY "0.5"
seta gui_CenterX "0.5"
seta gui_Height "1.0"
seta gui_Width "1.0"
seta ui_showGun "1"
seta ui_autoSwitch "1"
seta ui_team "Red"
seta ui_skin "skins/characters/player/marine_mp"
seta ui_name "Player"
seta si_serverURL ""
seta si_spectators "1"
seta si_usePass "0"
seta si_warmup "0"
seta si_teamDamage "0"
seta si_timeLimit "10"
seta si_maxPlayers "4"
seta si_map "game/mp/d3dm1"
seta si_gameType "singleplayer"
seta si_name "DOOM Server"
seta tdm_lod_bias "1.0"
seta tdm_voice_from_off_volume "0"
seta tdm_voice_player_volume "0"
seta tdm_music_volume "0"
seta tdm_ambient_method "0"
seta tdm_door_auto_open_on_unlock "1"
seta tdm_bow_aimer "0"
seta tdm_lp_debug_hud "0"
seta tdm_lp_pawlow "0"
seta tdm_lp_randomize "1"
seta tdm_lp_auto_pick "0"
seta tdm_lp_autopick_attempts "3"
seta tdm_lp_pick_timeout "500"
seta tdm_lp_sample_delay "10"
seta tdm_lp_base_count "5"
seta tdm_empty_model "models/darkmod/misc/system/empty.lwo"
seta tdm_lg_model "models/darkmod/misc/system/lightgem.lwo"
seta tdm_lg_weak "0"
seta tdm_lg_interleave_min "40"
seta tdm_lg_interleave "1"
seta pm_rope_snd_rep_dist "32"
seta pm_min_stepsound_interval "200"
seta pm_stepvol_crouch_creep "-7"
seta pm_stepvol_crouch_run "4"
seta pm_stepvol_crouch_walk "-2"
seta pm_stepvol_creep "-5"
seta pm_stepvol_run "8"
seta pm_stepvol_walk "0"
seta tdm_underwater_blur "3"
seta tdm_rope_pull_force_factor "140"
seta gui_objectiveTextSize "1.0"
seta gui_barSize "1.0"
seta gui_lightgemSize "1.0"
seta gui_bigTextSize "1.0"
seta gui_smallTextSize "1.0"
seta gui_iconSize "1.0"
seta tdm_inv_use_visual_feedback "1"
seta tdm_door_control "0"
seta tdm_inv_use_on_frob "1"
seta tdm_inv_loot_sound "frob_loot"
seta tdm_inv_hud_pickupmessages "1"
seta tdm_hud_hide_lightgem "0"
seta tdm_hud_opacity "0.7"
seta tdm_invgrid_hud_file "guis/tdm_invgrid_parchment.gui"
seta tdm_grabber_reverse_control "0"
seta tdm_bounce_sound_min_vel "80"
seta tdm_bounce_sound_max_vel "400"
seta tdm_throw_max_vel "900"
seta tdm_throw_time "1200"
seta tdm_throw_max "3500"
seta tdm_throw_min "600"
seta tdm_phys_show_momentum "0"
seta tdm_ai_hearing_hardcore "1.5"
seta tdm_ai_hearing_challenging "1.0"
seta tdm_ai_hearing_forgiving "0.6"
seta tdm_ai_hearing_nearly_deaf "0.2"
seta tdm_ai_hearing "2"
seta tdm_ai_vision_hardcore "1.005"
seta tdm_ai_vision_challenging "0.804"
seta tdm_ai_vision_forgiving "0.402"
seta tdm_ai_vision_nearly_blind "0.134"
seta tdm_ai_vision "1"
seta tdm_melee_difficulty "normal"
seta tdm_melee_max_particles "10"
seta tdm_melee_forbid_auto_parry "0"
seta tdm_melee_auto_parry "1"
seta tdm_melee_invert_parry "0"
seta tdm_melee_invert_attack "0"
seta tdm_melee_mouse_thresh_ "0"
seta tdm_dragged_item_highlight "1"
seta tdm_drag_encumber_max "0.4"
seta tdm_drag_encumber_maxmass "55"
seta tdm_drag_encumber_minmass "10"
seta tdm_drag_jump_masslimit "20"
seta tdm_drag_af_free "0"
seta tdm_drag_af_ground_timer "800"
seta tdm_drag_damping_af "0.4"
seta tdm_drag_damping "0.0"
seta tdm_drag_stuck_dist "38.0"
seta tdm_drag_force_max "100000"
seta tdm_drag_limit_force "1"
seta tdm_collision_damage_scale_horiz "0.5"
seta tdm_collision_damage_scale_vert "1"
seta tdm_frobhelper_ignore_size "40.0"
seta tdm_frobhelper_fadeout_duration "500"
seta tdm_frobhelper_fadein_duration "1500"
seta tdm_frobhelper_fadein_delay "500"
seta tdm_frobhelper_alpha "1.0"
seta tdm_frobhelper_alwaysVisible "0"
seta tdm_frobhelper_active "1"
seta tdm_frob_fadetime "100"
seta tdm_frob_width "10.0"
seta tdm_frob_distance_default "63"
seta pm_lean_toggle "0"
seta pm_lean_door_bounds_exp "8.0"
seta pm_lean_door_max "40"
seta pm_lean_door_increments "10"
seta pm_lean_to_valid_increments "25"
seta pm_lean_forward_stretch "15"
seta pm_lean_forward_height "0.4"
seta pm_lean_forward_time "400.0"
seta pm_lean_forward_angle "2"
seta pm_lean_stretch "2"
seta pm_lean_height "0.4"
seta pm_lean_time "400.0"
seta pm_lean_angle "15.0"
seta pm_shoulderDrop_angleIncrement "22.5"
seta pm_shoulderDrop_maxAngle "91.0"
seta pm_shoulderAnim_delay_msecs "0.0"
seta pm_shoulderAnim_dip_dist "5.0"
seta pm_shoulderAnim_rockDist "3.0"
seta pm_shoulderAnim_dip_duration "0.5"
seta pm_shoulderAnim_msecs "700.0"
seta tdm_reattach_delay "100"
seta tdm_crouch_toggle_hold_time "400"
seta tdm_toggle_crouch "1"
seta tdm_footfall_sounds_movetype_specific "1"
seta pm_ladderSlide_speedLimit "400.0"
seta pm_mantle_cancel_speed "150.0"
seta pm_mantle_pullFast_msecs "450"
seta pm_mantle_maxLowObstacleHeight "36.0"
seta pm_mantle_minflatness "0.707"
seta pm_mantle_height "0.2"
seta pm_mantle_reach "0.5"
seta pm_weightmod "1"
seta pm_softhinderance_run "1.0"
seta pm_softhinderance_walk "0.5"
seta pm_softhinderance_creep "0.2"
seta pm_softhinderance_active "1"
seta pm_push_max_mass "200"
seta pm_push_heavy_threshold "0.15"
seta pm_push_accel_time "1000"
seta pm_push_start_delay "1000"
seta pm_push_maximpulse "300"
seta pm_pushmod "0.15"
seta pm_swimspeed_frequency "0.8"
seta pm_swimspeed_variation "0.6"
seta pm_max_swimspeed_mod "1.4"
seta pm_crouchmod "0.54"
seta pm_creepmod "0.44"
seta pm_runmod "2.35"
seta tdm_savegame_compress "1"
seta tdm_force_savegame_load "1"
seta tdm_mainmenu_confirmquit "1"
seta tdm_debug_aastype "aas32"
seta tdm_allow_http_access "1"
seta tdm_proxy_pass ""
seta tdm_proxy_user ""
seta tdm_proxy ""
seta tdm_fm_restart_delay "0"
seta tdm_default_relations_def "atdm:team_relations_default"
seta tdm_show_trainer_messages "1"
seta tdm_menu_music "1"
seta tdm_wideScreenMode "7"
seta r_aspectRatio "1"
seta r_customHeight "1080"
seta r_customWidth "1920"
seta tdm_ai_show_aasfuncobstacle_state "0"
seta tdm_show_health "0"
seta tdm_ai_debug_greetings "0"
seta tdm_ai_debug_transition_barks "0"
seta tdm_ai_opt_nolipsync "0"
seta tdm_ai_opt_update_enemypos_interleave "48"
seta tdm_ai_opt_interleavethinkframes "0"
seta tdm_ai_opt_interleavethinkskipPVS "0"
seta tdm_ai_opt_interleavethinkmaxdist "0"
seta tdm_ai_opt_interleavethinkmindist "0"
seta tdm_ai_search_type "4"
seta tdm_ai_visdist_show "0.0"
seta tdm_ai_search_show "0.0"
seta tdm_showko "0"
seta tdm_showsprop_radius "0"
seta tdm_showsprop "0"
seta tdm_spr_debug "0"
seta tdm_sndprop_disable "0"
seta tdm_ai_acuity_L5 "1.5"
seta tdm_ai_acuity_L4 "1.3"
seta tdm_ai_acuity_L3 "1.1"
seta tdm_ai_show_conversationstate "0"
seta tdm_ai_show_enemy_visibility "0"
seta tdm_ai_sight_scale "1000.0"
seta tdm_ai_sight_thresh "1.0"
seta tdm_ai_showelevator "0"
seta tdm_ai_showdoor "0"
seta tdm_ai_debug_blocked "0"
seta tdm_ai_showAASarea "0"
seta tdm_ai_showgoalpos "0"
seta tdm_ai_showdest "0"
seta tdm_ai_showalert "0"
seta tdm_ai_showtasks "0"
seta tdm_ai_showanimstate "0"
seta tdm_ai_showko "0"
seta tdm_ai_showfov "0"
seta tdm_ai_debug "0"
seta tdm_ai_bumpobject_impulse "250"
seta tdm_ai_tact "20.0"
seta tdm_ai_sight_combat_cutoff "20.0"
seta tdm_ai_sightmin "15.0"
seta tdm_ai_sightmax "40.0"
seta tdm_ai_sight_mag "1.0"
seta tdm_ai_sight_prob "0.7"
seta tdm_ai_showname "0"
seta tdm_ai_showbark "0"
seta tdm_ai_sndvol "0.0"
seta tdm_player_wait_until_ready "1"
seta com_automation_port "3879"
seta m_strafeSmooth "4"
seta m_smooth "1"
seta m_strafeScale "6.25"
seta m_yaw "0.022"
seta m_pitch "0.022"
seta sensitivityMenuOverride "0"
seta sensitivityMenu "1.0"
seta sensitivity "5"
seta in_toggleZoom "0"
seta in_toggleCrouch "0"
seta in_toggleRun "0"
seta in_alwaysRun "0"
seta in_freeLook "1"
seta in_anglespeedkey "1.5"
seta in_pitchspeed "140"
seta in_yawspeed "140"
seta gui_configServerRate "0"
seta com_maxFPS "166"
seta com_savegame_preview_format "jpg"
seta com_numQuickSaves "2"
seta com_guid ""
seta com_fixedTic "1"
seta com_preloadDemos "0"
seta com_compressDemos "1"
seta com_product_lang_ext "1"
seta logFile "1"
seta com_showFPSavg "10"
seta com_showFPS "1"
seta com_purgeAll "0"
seta r_skipDynamicShadows "0"
Darkmod.cfg (12,742 bytes)   
duzenko

duzenko

29.12.2019 07:11

developer   ~0011953

I can repeat this on my side too
duzenko

duzenko

29.12.2019 08:51

developer   ~0011957

Completed: At revision: 8471
stgatilov

stgatilov

29.12.2019 09:15

administrator   ~0011959

The problem with r_fboResolution > 1 are still present:
  when I look at skybox, it becomes brighter every frame (getting VERY bright)
  when I look at flame, haze effect is broken
With r_fboResolution < 1 it does not look bad, but I guess it still does not work as intended.

Should I create anothenr issue for it?
duzenko

duzenko

29.12.2019 10:44

developer   ~0011964

Yeah, I think a separate issue would be great, because I can't repeat it yet

Issue History

Date Modified Username Field Change
24.09.2019 12:43 MirceaKitsune New Issue
24.09.2019 12:43 MirceaKitsune Tag Attached: engine
24.09.2019 12:43 MirceaKitsune Tag Attached: rendering
24.09.2019 12:43 MirceaKitsune Tag Attached: shadows
24.09.2019 12:43 MirceaKitsune File Added: fever_2019-09-24_03.37.34.jpg
24.09.2019 12:43 MirceaKitsune File Added: fever_2019-09-24_03.37.42.jpg
13.11.2019 02:53 stgatilov Note Added: 0011863
07.12.2019 17:26 stgatilov Status new => feedback
07.12.2019 17:26 stgatilov Target Version => TDM 2.08
07.12.2019 17:26 stgatilov Note Added: 0011897
14.12.2019 14:02 Judith Note Added: 0011928
14.12.2019 16:40 stgatilov Note Added: 0011930
14.12.2019 16:59 stgatilov Note Added: 0011931
14.12.2019 16:59 stgatilov Assigned To => stgatilov
14.12.2019 16:59 stgatilov Status feedback => confirmed
14.12.2019 17:01 stgatilov Note Edited: 0011931
14.12.2019 17:02 MirceaKitsune Note Added: 0011932
14.12.2019 17:09 stgatilov File Added: Darkmod.cfg
14.12.2019 17:09 stgatilov Note Added: 0011933
29.12.2019 05:41 stgatilov Assigned To stgatilov => duzenko
29.12.2019 07:11 duzenko Note Added: 0011953
29.12.2019 08:51 duzenko Status confirmed => resolved
29.12.2019 08:51 duzenko Resolution open => fixed
29.12.2019 08:51 duzenko Fixed in Version => TDM 2.08
29.12.2019 08:51 duzenko Note Added: 0011957
29.12.2019 09:15 stgatilov Note Added: 0011959
29.12.2019 10:44 duzenko Note Added: 0011964
29.12.2019 11:34 stgatilov Relationship added related to 0005085