Halflife: [HL/CS 1.6] To v_ models add support for flag "fullbright" in $texrendermode

Created on 5 Jul 2019  路  8Comments  路  Source: ValveSoftware/halflife

Add support for use "fullbright" flag on v_ models (view model) like Sven Coop
with this you can block any shadow can be generated by any map on one texture from a model
and it always has full brightness

this is a example about how.this works.

glo09

Ty for yours answers

Feature Request

Most helpful comment

The flag already exists in the studiomodel spec, but was never implemented.

This is all of the code required to implement this flag:
https://github.com/SamVanheer/HL_Tools/blob/0a897b1bdfac8b26aeff6b06dbf104d45ba67d82/src/engine/renderer/studiomodel/CStudioModelRenderer.cpp#L1027-L1032

It shouldn't break any existing models unless they have the flag set, and they shouldn't since the original compiler didn't allow you to set it and model viewer only had support added a few years ago. Only models produced since 2016 have any chance of having this flag enabled, and those are trivially easy to fix.

I don't have the time to write a book on this. But HL is a very old game, just like Quake, it's simply unfair to radically improve it. Especially unfair to all the old mods that pushed the engine to it's limit. Now this feature would make it a joke to do what other people used beautiful tricks and hacks to achieve. I'm sure someone at Valve understands what I mean. Every old modder knows that the beauty of HL is in it's limitations. Release the source code and let people make their own features but HL itself should definitely remain as it is.

As a modder, what? If people want the challenge of making a new renderer they are free to do so, but don't act like they should be forced to do so to use a planned but unimplemented feature.

All 8 comments

I am really against such changes in the engine. And I love HL. I would like these things but it does not make any sense to keep changing the engine. Why don't these people just use Source? Enough mods have already been broken. HL is what it is and it should remain that way for that's why people like it. The only things worth changing would be the things that were removed at some point, like the ability to bunny hop, which was present for a long time and it's removal disappointed a massive amount of players and as far as I know it happened only because of Counter-Strike. I really hope the engine is left the way it is and people just move on.

I am really against such changes in the engine. And I love HL. I would like these things but it does not make any sense to keep changing the engine. Why don't these people just use Source? Enough mods have already been broken. HL is what it is and it should remain that way for that's why people like it. The only things worth changing would be the things that were removed at some point, like the ability to bunny hop, which was present for a long time and it's removal disappointed a massive amount of players and as far as I know it happened only because of Counter-Strike. I really hope the engine is left the way it is and people just move on.

I don't see how this change would make people dislike HL1.

I don't have the time to write a book on this. But HL is a very old game, just like Quake, it's simply unfair to radically improve it. Especially unfair to all the old mods that pushed the engine to it's limit. Now this feature would make it a joke to do what other people used beautiful tricks and hacks to achieve. I'm sure someone at Valve understands what I mean. Every old modder knows that the beauty of HL is in it's limitations. Release the source code and let people make their own features but HL itself should definitely remain as it is.

The flag already exists in the studiomodel spec, but was never implemented.

This is all of the code required to implement this flag:
https://github.com/SamVanheer/HL_Tools/blob/0a897b1bdfac8b26aeff6b06dbf104d45ba67d82/src/engine/renderer/studiomodel/CStudioModelRenderer.cpp#L1027-L1032

It shouldn't break any existing models unless they have the flag set, and they shouldn't since the original compiler didn't allow you to set it and model viewer only had support added a few years ago. Only models produced since 2016 have any chance of having this flag enabled, and those are trivially easy to fix.

I don't have the time to write a book on this. But HL is a very old game, just like Quake, it's simply unfair to radically improve it. Especially unfair to all the old mods that pushed the engine to it's limit. Now this feature would make it a joke to do what other people used beautiful tricks and hacks to achieve. I'm sure someone at Valve understands what I mean. Every old modder knows that the beauty of HL is in it's limitations. Release the source code and let people make their own features but HL itself should definitely remain as it is.

As a modder, what? If people want the challenge of making a new renderer they are free to do so, but don't act like they should be forced to do so to use a planned but unimplemented feature.

Those five lines of code are what's required in the engine right? CStudioModelRenderer in client.dll doesn't do per-texture rendering out of the box.

You also need a different depth func for overlapping polygons:
https://github.com/SamVanheer/HL_Tools/blob/0a897b1bdfac8b26aeff6b06dbf104d45ba67d82/src/engine/renderer/studiomodel/CStudioModelRenderer.cpp#L927-L928

It's not really necessary for fullbright to work, but some models were made for Sven Co-op under the assumption that polygons could overlap and they use fullbright. I implemented it at the same time to fully support those models.

This is all in the engine.

If it's possible without breaking anything then I'm strongly with it..

@mikela-valve check this one.
Rly need this, coz we should create more polygon's now for brighting in dark place, but thats not good for fps, or view on ss places.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

twisterniq picture twisterniq  路  4Comments

LuckyStrikeOriginal picture LuckyStrikeOriginal  路  4Comments

magister4813 picture magister4813  路  3Comments

ArmynC picture ArmynC  路  3Comments

CS-PRO1 picture CS-PRO1  路  3Comments