Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Product Chat / B&W Fullscreen Shader?

Author
Message
Desecrated Studios
15
Years of Service
User Offline
Joined: 16th Jan 2011
Location: Kirtona
Posted: 23rd Jan 2012 22:06
This has probably been asked before and i apologize, but i was wondering if there was a fullscreen shader to make everything black and white? My character is color blind but through out the story he starts seeing items that have color which lead him to different things. It's a WIP, but that is not what the question is. Would it be easier to have a fullscreen shader? Or would it be easier if i just re-textured everything?

Thank you!
- Josh
Flatlander
FPSC Tool Maker
19
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 24th Jan 2012 08:19 Edited at: 24th Jan 2012 08:20
Desecrated Studios
15
Years of Service
User Offline
Joined: 16th Jan 2011
Location: Kirtona
Posted: 24th Jan 2012 21:19
Thanks for the comment, but i do not know where to place that. Do i make a script with that in it? Or do i add it to an already made script? Sorry, im quite bad at this -__-
BlackFox
FPSC Master
18
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 24th Jan 2012 23:36
Assuming you are using v1.19...

Look in your scriptbank\posteffects folder. There should be some scripts relating to the post effect shaders.

Place a trigger and set one of the scripts in the Main. When you walk into the trigger, it should apply that shader according to the script. Be sure that your setup.ini has postprocessing=1.


Twitter: @NFoxMedia
Flatlander
FPSC Tool Maker
19
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 24th Jan 2012 23:37
You can make a script of it and place it in a trigger zone main AI, or you can put it in another script.

:state=0,plrwithinzone=1:setposteffect=monochrome,state=1
:state=1:none

postprocessing has to be set to 1 in the setup.ini file for it to work. You may have to do some tweaking with the timing of when the script is executed.

Desecrated Studios
15
Years of Service
User Offline
Joined: 16th Jan 2011
Location: Kirtona
Posted: 25th Jan 2012 00:59 Edited at: 25th Jan 2012 01:29
Thank you very much guys, yes i am using version 1.19. I had forgotten that i had those effects in there! But there is still kind of a problem.. Is there anyway i could make an entity have color still with the effect on or no? Im guessing fullscreen shader means it covers the screen with the effect so everything behind it doesn't really change. But i guess i can still kind of make this work.

Thank you very much!


EDIT - I have another small problem. I placed the trigger zone at the starting position so it would appear when you start but it doesn't. I have to walk out of the zone and then re-walk into it for it to work. Does anyone know how i might make it always active?
BlackFox
FPSC Master
18
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 25th Jan 2012 01:32 Edited at: 25th Jan 2012 01:39
Quote: "Is there anyway i could make an entity have color still with the effect on or no?"


No. If you use the monochrome for example, everything on the screen is black and white. The shaders are "full screen" meaning it adjusts what you see in the dimension of the screen according to the shader. You can't have a color box using a monochrome shader.

Now you can use a shader "applied" to an entity where it is in black and white while another entity has color to it. So i can have a crate sitting on the floor and it is black and white while the truck parked to the right is color. But those are entity-specific shaders and quite different from full screen shaders.

Quote: "EDIT - I have another small problem. I placed the trigger zone at the starting position so it would appear when you start but it doesn't. I have to walk out of the zone and then re-walk into it for it to work. Does anyone know how i might make it always active? "


If you are using the shader scripts from the folder I mentioned, comment out the following line:



That will keep it always active once the player hits the zone.

If you want it to start right away and always stay on, use something like this (attach script to trigger- it can be anywhere):



The above example sets the film reel process to start.

Don't forget, you can also change the effect anytime in a script using the "setpsteffect=x", where x= the name of the effect (must be a shader in the effectbank\postprocess to match).


Twitter: @NFoxMedia
Desecrated Studios
15
Years of Service
User Offline
Joined: 16th Jan 2011
Location: Kirtona
Posted: 25th Jan 2012 01:46 Edited at: 25th Jan 2012 02:08
Quote: "Now you can use a shader "applied" to an entity where it is in black and white while another entity has color to it. So i can have a crate sitting on the floor and it is black and white while the truck parked to the right is color. But those are entity-specific shaders and quite different from full screen shaders."


I see, would i have to create a custom shader for each entity i wanted to be colored? Or is there already a shader that does that?

Quote: "That will keep it always active."


RE-EDIT - The script that you gave me to make it always active did not work. I was a bit confused, i didn't know whether to make that into a new script or to add it to the effect's script. So i created a new one, attached it to a trigger zone, and placed the trigger zone somewhere on my map. Even if i step into the zone it does not turn on, did i do something wrong?

Login to post a reply

Server time is: 2026-07-01 22:13:24
Your offset time is: 2026-07-01 22:13:24