StrataSource / Engine

Issue tracker for Strata Source
46 stars 2 forks source link

Bug: (DX11) Model translucency darkening #643

Open tmob03 opened 1 year ago

tmob03 commented 1 year ago

Describe the bug

From certain angles, the prop models/props_c17/door02_double.mdl has dark pop-in on the translucent parts in DX11 mode. The vmt is:

"vertexlitGeneric"
{
    "$basetexture" "models/props_c17/door02a_skin2"
    "$surfaceprop" "wood"
    "%keywords" "c17downtown"
    "$envmap" "env_cubemap"
    "$envmapmask" "models/props_c17/door02a_skin2_mask"
    "$envmapcontrast" .1
    "$envmapsaturation" .2
    "$envmaptint" "[ 0.75 0.75 0.75 ]"
    "$translucent" 1
}

Also it seems the lines going through the translucent part are not showing up on the texture in P2CE Comparison: https://user-images.githubusercontent.com/33987871/210919949-2b11a594-be20-4025-9c8e-6aef31697aa8.mp4

To Reproduce

Open d3_c17_05 setpos 1672.333374 -6016.530273 384.031250;setang 1.777885 164.166641 -0.000000

Observe flickering

Issue Map

d3_17_05

Expected Behavior

The translucent part of the texture should not flicker, and the lines going through should render.

Operating System

Windows 10 Home 19045

SlidyBat commented 1 year ago

Can't replicate the flickering thing in momentum, although it does get darker if I noclip outside world. As for the missing lines, seems to be caused by bug in CS:GO rendering fast path, is fixed by cl_tlucfastpath 0. Happens on DX9 as well.