r/reflex•
Mitritch

Fullbright player model shader for Reflex

Posted Jun 5, 2016, 12:27 AM UTC

68
MitritchOP•

What it is all about

This shader allows to experience fullbright models in Reflex game right now. Provided algorithm works by detecting pixels in appropriate hue, saturation and luminocity range, and increasing luminocity of such pixels to fullbright value.

Why You Should Use it

Actually, you should not. There is absolutely no warranty that it will work on your PC, and you may just waste your time. Use it only if you are very motivated to see how fullbright models can potentially look in Reflex, but be warned, the road won't be smooth - please see Current Problems section at the end.

How to Install

    1. Go to http://reshade.me, click on purple Download button and after page scroll is complete, click on green ReShade2.0 button.
    1. Download ReShade ReShade 2.0.3f1.7z (it is important to use version 2.0)
    1. If you don't have 7zip archiver, take it from here: http://www.7-zip.org/
    1. Unpack ReShade 2.0.3f1.7z into any directory
    1. Now brace yourself, and run ReShade Assistant.exe from unpacked directory
    1. Click on Profiles tab on the right of the program. After that, click on + icon on top of Profiles section.
    1. Navigate to Reflex steam directory. Select Reflex.exe and click Open button or do double click on Reflex.exe.
    1. !!! Ultraimportant step! Solved crash on load for NVIDIA 940M. Make sure that you clicked on d3d11.dll radio button, if you have DX11 capable card! Writing this, because it is totally not obvious.
    1. Click on Confirm button in the bottom right section of application. Press Save just in case.
    1. Navigate to Steam/steamapps/common/reflexfps and check that d3d11.dll and ReShade.fx files are present there. Close ReShade Assistant.exe, you won't need it anymore.
    1. Download FullbrightFX shader: http://www.mediafire.com/download/lppe2bcdu9490od/FullbrightFx.1.0.zip
    1. Downloaded file should be around 3 kb because it contains only several text files, which contain fullbright shader, there is no binaries in this archive.
    1. Unpack FullbrightFx to any folder.
    1. Copy contents of unpacked FullbrightFx archive to Steam/steamapps/common/reflexfps. Make sure to overwrite default ReShade.fx with one from FullbrightFx archive.
    1. It is reccomended to download and install DirectX Runtime distribution: https://www.microsoft.com/en-us/download/details.aspx?id=8109
    1. You are ready to configure the game and shader.

How to Configure

    1. Determine, what color you want to use as fullbright. Any color can do, but I recommend to use pure ones (i.e like RGB(0,255,0) for green, RGB(255,0,0) for red, or combination of pure colors, like RGB(255,255,0) for yellow). Let's assume that you want to use pink color - RGB(255,0,255).
    1. Open HueDetection.fx file in Steam/steamapps/common/reflexfps directory and find line #define Fullbright_color float3(0.0, 255.0, 0.0)
    1. Change numbers (0.0, 255.0, 0.0) in this line to (255,0,255).
    1. Changed line should look like this now: #define Fullbright_color float3(255.0, 0.0, 255.0). Save this change.
    1. Start Reflex game and go to menu Options -> Game Options.
    1. Go to Color Overrides section, select Type: Relative, and click on color picker near Enemy Team.
    1. Enter 255 for Red, 0 for Green and 255 for Blue
    1. Right now there is a bug in color picker of Reflex, so if you cannot change value for some of the channels, first specify 1 or 0 for Red channel.
    1. If you changed HueDetection.fx correctly, you will see immediate changes in color picker.
    1. Click on Accept button. You are ready to play.

How to Turn Shader On/Off

  1. While in-game, press Scroll Lock key to toggle shader on/off.

How to uninstall

  1. Go to Steam/steamapps/common/reflexfps and delete FullbrightFx and ReShade directories and d3d11.dll, ReShade.fx and HueDetection.fx files.

Current Problems

Some of them will be solved by me in more advanced shader version, some of them will stay:

    1. Eats FPS.
    1. Can cause Reflex crashes.
    1. Tested only on Nvidia hardware with DX11 support.
    1. Artefacts in low saturated regions of the same hue as color selected .
    1. Artefacts in high saturated regions of the same hue as color selected (see any CTF map as example).
    1. Can cause all sorts of placebo effects (percieved input lag, stuttering, netcode problems to name a few).

Future Plans

Right now I working on implementation of more intelligent player model interest point detection algorithm, which will be 6th generation algorithm. The algorithm presented here is from 1st generation. If somebody interested, I already tried following approaches during last 4 months:

  • Analytical (hue and saturation detection, hue detection algorithm included in release 1.0)
  • Statistical (failed due to huge performance hit and limited applicability, however some ideas was used in next generation detection algorithms)
  • High and low saturation detection (moderate performance hit, good for reducing low saturation artefacts, bad for removing high saturation ones)
  • Saturation based edge detection (quite good feature recognition, but limited in scope, still has artefacts, especially in high saturation areas)
  • Saturation range calculation (moderate performance hit, produces no better results than analytical approach)
  • Interest point detection - in development, will use all the knowledge and tricks which I learned while developing previous algorithms.

Feedback

You can reach me on Reddit (https://www.reddit.com/user/Mitritch) or Gmail ([email protected])

Disclaimer

I'm not associated with ReShade development team in any way.

5
MitritchOP•

There is also a video of duel played by Lunokhod and no_il, with me spectating and fullbright shader enabled.

https://www.youtube.com/watch?v=zZu9l6mpWbA

2
fleabitten•

This was getting a bunch of reports and alarmed PMs -- it's really not something we want to encourage.

1
MitritchOP•

I think, you are overrreacting and acting too restrictive.

This is internet, there is alot of other places where I can promote this, and you, at least, should facilitate an open discussion among community whether it is a welcome thing or not. So far, I saw only positive (few) responces, before you censored the whole thing.

If you you are just want to censor things you do not like - ok, this is your right as a developer, but let me remember that there are a lot of other places where I can to promote the ideas of better model visibility in Reflex and where you do not have control. It can be just added to github of Reshade shaders, without any mentioning of Reflex, after all.

Again, it looks like the whole topic is sensitive to you, and this post was good possibility to explain your position and reasons to community. But instead you've chosed to go the easiest way and just shut the whole thing off.

I giving you time to re-think you decision and move the post back. If you don't do it, without any explanations - I will start to act more actively.

2
fleabitten•

It's Sunday here. I was out with my family and didn't particularly feel like dropping everything and heading home to write a lengthy reply. Believe it or not, I'm not on call 24-hours a day.

It should come as no shock whatsoever that injecting shaders into the game is considered cheating (with bonus 'makes the game crash a lot'), nor that we deleted a post promoting how to do it. If you feel the urge to post it somewhere we can't delete, go right ahead -- it'll still be considered cheating.

Lastly, as a developer I've never found threats endearing.

2
MitritchOP•

Hey, it is Sunday here too. But unlike you, Australians, we do not have an ocean and lots of sun here, so please, do not make me feel guilty. :)

You are wrong on several points here.

First, Reshade is allowed by VAC system of Valve. Even more, guys from Reshade took special measures in order to prevent it from being used as cheating tool (they have network traffic monitor and they disabled access to depth buffer, when such traffic is detected). It is used in thousands of games and nobody in sane mind call it as cheating engine.

Second, I honestly warned potential users about possible (rare) crashes and even discouraged from use of FullbrightFx tool anybody who is not sure that he really needs it. User who decided to install it have to do up to two dozens of manual steps, it is not installed automatically, heck, there are not even binaries that are coming from my side. :) What treat did you see?

Third, I understand, that you have some plans which somehow involve player model visibility in Reflex. Hopefully, you don't want to monetize it, because after such step the next logical one will be monetizing, for example, color-blindness presets. Yeah, it is a joke, but the border is very thin.

We can try to do it another way. I will post the video of fullbright model in Reflex reddit, without any instructions how to get it and we, as community, will have a civilized discussion about pros and cons of such solution, why it is good and why it is bad. What do you think?

2
fleabitten•

If you're not posting instructions, it won't be removed. I doubt the discussion will remain civilized for long, but you can try your luck.

Ultimately, if we wanted fullbright enemies, it would be 5 minutes work to do. But it looks like shit, so we don't. The automatic response to that is always 'just cvar it' but that cvars that give players an advantage suck ass.

1
[deleted]•

[deleted]

1