ValveSoftware / Source-1-Games

Source 1 based games such as TF2 and Counter-Strike: Source
635 stars 74 forks source link

[HL2] Rendering glitches in the explosion/G-Man ending sequence #783

Open dscharrer opened 11 years ago

dscharrer commented 11 years ago

In the ending sequence (d3_breen_01) right when the G-Man stops time and then says "Time, Dr. Freeman" the background turns black for a few frames:

Right before: before

Black background: black background

Afterwards: afterwards

Note that the glare effect from the explosion also disappears at the same time. Both of these don't happen in this video from 2006, however this video from 2008 also shows the glare effect disappearing abruptly.

If you angle the camera differently, the black plane actually intersects with the background: black plane intersecting background

Additionally, it seams there should be a small fade in effect between and while the change is instant for me.

Further, at the end right before the G-Man walks out of the door, he doesn't correctly fade between the posterized black/white effect and normal rendering like is shown in the linked videos. Instead, it changes instantly from to

Here is a save at the start of the ending sequence.

system information | hl2 video settings

ghost commented 11 years ago

The problem with the skybox doesn't happen if you extend the clip plane - so it seems that the effect doesn't work correctly with that isn't on the standard z-plane. A workaround would be to set farz to at least 100000 or so - but this can cause the level geometry to appear as part of the 3D skybox.

As for the effect cutting off abruptly - I'm not sure about that. I also experienced a lot of flickering.

Plagman commented 11 years ago

If you extend the clip plane, doesn't the plain skybox override the 3D skybox entirely before the cutscene kicks in?

matthewharvey commented 11 years ago

This is confirmed on Intel HD 4000 graphics card as well, so it looks to be Graphics Card independent.

ghost commented 11 years ago

@Plagman No, the 3D skybox is normally independent of of the clip plane, but it'll still fail to render no matter what.

No such variable "$alpha" for material "scripted/intro_screenspaceeffect" No such variable "$mode" for material "scripted/intro_screenspaceeffect"

These errors repeat endlessly in console. It uses the shader "introscreenspaceeffect" with no parameters.