nillerusr / source-engine

Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
Other
1.35k stars 216 forks source link

VTF 7.5 support #83

Closed klaxons1 closed 2 years ago

klaxons1 commented 2 years ago

It can be useful for recreations of games like Portal 2, CS:GO, Black Mesa, Left4Dead 2 and Alien Swarm. Reference: https://github.com/quiverteam/Engine/pull/65/commits/0133ca430907dfd2d4d77e684b256fa7dc126c3f

klaxons1 commented 2 years ago

Screenshot_2022-07-28-12-36-43-283_com valvesoftware source You should reopen the issue. @nillerusr

LegendaryGuard commented 2 years ago

Does this VTF commit support for older games (HLS, HL2, CSS, TF2)?
Looking as the version history says: https://developer.valvesoftware.com/wiki/Valve_Texture_Format#Version_history
Just asking, I still haven't tested the build and idk if I'll have time to test this kind stuff in a game.

klaxons1 commented 2 years ago

@LegendaryGuard I converted smg texture to vtf 7.5. The engine should support this version of vtf for newer source games.

LegendaryGuard commented 2 years ago

@LegendaryGuard I converted smg texture to vtf 7.5. The engine should support this version of vtf for newer source games.

Ok, so means if we use the engine and put old asset contents from an old version of HL2, for example, would work if there are older versions of VTF?

klaxons1 commented 2 years ago

@LegendaryGuard It will work by default.

LegendaryGuard commented 2 years ago

@davie504 Thanks for your reply.

We should try. I understand it isn't just a question of code, but also that the update will have to be experimented in terms of textures. I wonder if the artists and modellers are going to complain if the result is the same as what the wiki says:
v7.5

I hope it doesn't influence. 🙏

klaxons1 commented 2 years ago

@LegendaryGuard you misunderstood something. Vtf 7.5 doesn't compatible with ORIGINAL engine of tf2, css and hl2. And this commit provide us support of it to this engine.

LegendaryGuard commented 2 years ago

Ahh, ok, what a slight relief! 👍 I thought it could give us texture issues. Ok, I just understand, thanks.

klaxons1 commented 2 years ago

Result of https://github.com/nillerusr/source-engine/commit/eb78802b5de8870a9c4a82e280fe024bb072db6c : vhwRH81pnTs