@Violent Pigeon: Thats 100% Correct
@Everyone: I have just uploaded a very short level showcasing some of the shaders in action on the segments and characters etc. But before I get to that, I would like to explain to everyone how to get my shaders working (and their own custom ones etc) on segments. This may seem confusing, but stay with me.
Segment Shaders Tutorial
Often when people go to apply a custom shader such as Normal or paralax mapping to a segment, they encounter shader errors such as black pixelated walls etc. Not to worry, follow the below example, and you will be gawping at your screen in no time. For the perpose of this example, Im using the .fpe of the laboratory Full segment.
Navigate to the segment bank/Sci-Fi/Rooms/Laboratory Full.fpe and Open It. Okay, Now Basicly, you have to delete these lines all the way through the file :
textured1 = {DELETE THE PATH HERE]
texturen1 = [DELETE THE PATH HERE]
textures1 = [DELETE THE PATH HERE]
DONT Delete the word's "Textured, Texturen, Textures", JUST the path!
You are effectively deleting all the
paths corrisponding to _D, _N and _S Maps.
Leave the path for the
D2 Map. The reason for doing this is down to the nature of how the DarkLights system in FPSC Handles shaders on these maps when applied on segments. D2 Mpas work fine, The others combined with the D2 Map dont.
After you have done this, navigate to one of the 'effect =' fields. Lets say you want to apply my paralax shader, so you would copy this into
all of the effect fields in the file [Your folder locationNames for my shader might be different obviously]
effect0 == effectbankCoZShadersParalax.fx
The reason for the Double '=' sign is because [This might sound wierd I know] you need to trick FPSC into thinking that you don't have a shader applied (but it will show up when used etc). Do this for all effect fields in the file (effect0 =, effect1 =, effect2 = etc) all the way through. After you have done this, save the file, and
delete the segments
.dbo and
.bin files. Now you can relaunch FPSC. You will have to close FPSC, then restart for the changes to take effect. And vola!, the shader will (famous last words) work on that segment!. This technuiqe has been tested with All stock segments with my paralax shader that I posted and It works.
So Checklist: Have you?
*
Deleted All paths corrisponding to _D, _N & _S Maps
*
Enetered your folder location for the shader in all effect fields with 2 = signs.
*
Deleted the segments .dbo and .bin files.
If so and it works, you now have permission to gawp at your screen!
Now for the demo Link:
http://www.badongo.com/file/13413834
Remember to move objects around to get some lovely views of the shaders in action on objects etc. Also, its a good idea to just let the enemies walk towards you and admire the lighting on their clothes. You wont want to shoot them after you have seen how sweet it looks!
Stay tuned for more
CoZ