Source-1-Games icon indicating copy to clipboard operation
Source-1-Games copied to clipboard

HL2 - Inaccurate Cubemap/Specular Reflections

Open milesrotaru opened this issue 13 years ago • 18 comments

Many materials don't have the same reflective properties as they did when HL2 was on the 2004 and 2006 engines. (maybe the cubemaps themselves are bad?)

Notable examples in current version:

Red seats in the train Chapter 1 starts in - Too reflective, it was more subtle before Combine civil protection uniforms - Little or no reflection, they used to be cubemapped and somewhat shiny, especially the gloves and boots Generic green dumpster prop - Little or no reflection, had cubemapping before. Buoyant blue barrels - Little or no reflection, had cubemapping before.

Compare to pre-2009 version of HL2, or, since it's impossible to install now, old let's plays.

Edit: Obligatory system info dump...

Processor Information: Vendor: GenuineIntel Speed: 2295 Mhz 8 logical processors 4 physical processors HyperThreading: Supported FCMOV: Supported SSE2: Supported SSE3: Supported SSSE3: Supported SSE4a: Unsupported SSE41: Supported SSE42: Supported

Network Information: Network Speed:

Operating System Version: Windows 8 (64 bit) NTFS: Supported Crypto Provider Codes: Supported 311 0x0 0x0 0x0

Video Card: Driver: NVIDIA GeForce 610M

DirectX Driver Name:  nvumdshim.dll
Driver Version:  9.18.13.2018
DirectX Driver Version:  9.18.13.2018
Driver Date: 12 May 2013
Desktop Color Depth: 32 bits per pixel
Monitor Refresh Rate: 59 Hz
DirectX Card: Intel(R) HD Graphics 4000
VendorID:  0x8086
DeviceID:  0x166
Number of Monitors:  1
Number of Logical Video Cards:  1
No SLI or Crossfire Detected
Primary Display Resolution:  1366 x 768
Desktop Resolution: 1366 x 768
Primary Display Size: 13.78" x 7.48"  (15.67" diag)
                                        35.0cm x 19.0cm  (39.8cm diag)
Primary Bus Type Not Detected
Primary VRAM: 2047 MB
Supported MSAA Modes:  2x 4x 8x 

Sound card: Audio device: Speakers (Realtek High Definition Audio Device)

Memory: RAM: 5581 Mb

Miscellaneous: UI Language: English Microphone: Not set Media Type: DVD Total Hard Disk Space Available: 714874 Mb Largest Free Hard Disk Block: 211147 Mb OS Install Date: Dec 31 1969 Game Controller: None detected

milesrotaru avatar Jun 05 '13 17:06 milesrotaru

I'm not sure if this is the same bug: 2013-05-31_00011

Some of the tiles near the center are reflective, but the rest are not.

JenniferPylko avatar Jun 05 '13 20:06 JenniferPylko

You can also see that thing with the tiles at the beginning of Half-Life 2 in the Train station. The floor has the same problem there.

Moop222 avatar Jun 05 '13 22:06 Moop222

You can also see that thing with the tiles at the beginning of Half-Life 2 in the Train station. The floor has the same problem there.

I thought so... but I couldn't find footage good enough to double check.

milesrotaru avatar Jun 06 '13 01:06 milesrotaru

The problem with the tiles is a limitation of environment mapping - only one sample point can be used per brush face, so what you get are hard transitions between faces.

https://drive.google.com/file/d/0B8l-2_JREU9IUGMzLWdvLVNYZU0/edit?usp=sharing

I speedily went through and fixed all I could find. I may have missed something, but I've hit pretty much all the noticeable ones. The dumpster and blue barrels never had their envmap settings changed, and in the case of the barrels, there never were any.

ghost avatar Jun 06 '13 08:06 ghost

I speedily went through and fixed all I could find. I may have missed something, but I've hit pretty much all the noticeable ones. The dumpster and blue barrels never had their envmap settings changed, and in the case of the barrels, there never were any.

Whoops you're right about he barrels, must have been thinking of something else. I managed to get an older build so I'm going to take another look, and get some screenshots.

milesrotaru avatar Jun 06 '13 17:06 milesrotaru

I'm back. I did a thorough comparison of some of the rendering differences between 2006 and Orange box in the first chapter of HL2. Here's an album with screenshots and annotations.

http://imgur.com/a/ynGhT#0

milesrotaru avatar Jun 06 '13 20:06 milesrotaru

@milesrotaru The puddle originally just used $envmapmask, but with the newer version of the engine it had to be changed to $translucent and $envmaptint for it to work correctly.

Alyx's new model is from EP1 - the extra geometry might be missing but the quality of the translucent hair bits has increased as well as the density.

Lighting appearing washed out - check your brightness settings. If you're running fullscreen you should be able to control it in-game.

The desk, train seats, metrocops - all things that had their materials changed in the update. My patch addresses these as well as others.

All the other things shown in that album seem to be side effects of the engine port. It's definitely different but I'm not sure it'd would be worth the time it'd take to fix it.

ghost avatar Jun 06 '13 21:06 ghost

Lighting appearing washed out - check your brightness settings. If you're running fullscreen you should be able to control it in-game.

Every video setting was identical, and both had gamma set at 2.2.

Anyway I figured at least some of this was due to assets that were remade for Ep1 and Ep2 then backported into HL2 as part of the engine upgrade. However, my understanding is that the Half-Life games don't share files anymore with the SteamPipe system. So a lot of the HL2 assets could be switched back to their legacy versions without affecting the newer games. If it were up to me I'd switch everything back from the ugly wrinkled vortigaunts to the cheesy billboard fire effect. The new elements just look really out of place among an environment that for the most part still looks like an eight year old game, and completely screwed up at worst. I doubt that's going to happen though.

milesrotaru avatar Jun 06 '13 22:06 milesrotaru

Half-Life games do share files - but only within HL2 and the episodes + lost coast. Since you already have an older version of the game installed, why don't you just play that instead? It's a better solution than forcing it on everyone who plays the game.

ghost avatar Jun 06 '13 22:06 ghost

@pepper314

Thanks for at least providing some technical insight into these version discrepancies. And providing a patch, I'll give it a try. I guess we're done with this issue unless a dev thinks otherwise.

milesrotaru avatar Jun 06 '13 22:06 milesrotaru

@milesrotaru: Where did you get a working copy of the 2006 version? I have a couple of other things I'd like to be able to compare.

stevethepocket avatar Jun 08 '13 06:06 stevethepocket

I THINK you should be able to use hl2's game data if you do create a mod from the source sdk, and then build that without modifying anything. (Actually that might be the 2007 version, I'm not sure).

JenniferPylko avatar Jun 08 '13 12:06 JenniferPylko

milesrotaru, I'd also love to know how you got the 2006 version to work again. It would be wonderful if I could play that again.

I agree with all your points in the album, including G-Man's new eyes and Alyx's new hair. The original HL2 models looked so much better.

McMasterGold avatar Jun 08 '13 15:06 McMasterGold

I'm sorry to say that I tried absolutely everything, from creating a mod based on the 2006 SDK base, (almost works but not perfectly) trying to install from Orange Box DVD's and playing without updating, (spent days on that, f---ing impossible) and extracting/decrypting Orange Box DVD files and playing them steamless. (Theoretically possible but I couldn't get it working nicely.) I had to look to more questionable sources for a complete copy.

milesrotaru avatar Jun 11 '13 03:06 milesrotaru

Thank you for the response. I hope that we will find a way to play the 2006 version again.

McMasterGold avatar Jun 11 '13 09:06 McMasterGold

Updated patch with corrected envmaptint on metalwall001a.

ghost avatar Jun 22 '13 06:06 ghost

Here's some comparisons between the pre-update and post-updated versions. For the pre-update screenshots I'm using a mod by lambdist that restores the game the way it originally was. Pre: 7b8d3bae-0942-11e3-9f05-e770241ef908 Post: 82a3acac-0942-11e3-9cf4-bbd991fda727 Pre: 9acede14-0942-11e3-9297-17422ae0cf62 Post: a9f0954a-0942-11e3-8392-c064f1a8d52e Pre: 47f33914-0943-11e3-9a7d-bd05011e9832 Post: 5226faec-0943-11e3-908e-d5de0c05cb49 Pre: 65aebc1c-0943-11e3-8f98-3a066960dfd3 Post: 6b4b0d2e-0943-11e3-9f4e-a6d5463120de

MrOrangee avatar Aug 20 '13 02:08 MrOrangee

It's been like this since the OB HDR update have been added in, the cube maps s have been overbright for many years now, even in games like Day of Defeat source.

PaulDixon avatar Apr 22 '14 08:04 PaulDixon