Interactive and Display 9&10

 To finish things up, I made an interactive demo where a person can turn on/off the various layers of the shader. Its very basic, the player can run up to a platform, hop on, and press E to toggle the effect. 


To start, create a blueprint actor for the platform, inside the blueprint you can add the mesh and the collisions(be sure to set the collisions as trigger), the color, etc, then make a second blueprint interface for the interaction. this allows you to create an interact function. int the platform blueprint you can add the interact function in the class settings. 


Then in the platform blupritnt you can use a flip/flop node sprouting from the event graph to toggle between on and off, to set the value of the shader, use the "set blend weight" node, with has a value of 1 or 0. to reference the shader, in the blueprint component tab, add a variable and set its type to post-process volume reference. once you drag the platform into the scene from the blueprint, there will be a slot to drop in which post-process volume you want. 


Before you can run around and start touching stuff, open the character blueprint, and create a node tree for the way you want the event to be called. My example I want the player to press E because it's standard, So get a node that references the E key and connect that to a player loop, the loop gets connected to a branch as there are two options the player has, on off. this branch feeds into the function we created earlier. in the loops array add in a node for overlapping actors, that way this function can only be called if the player is touching the platform collisions. 

I couldn't find any direct explanations as to how to do this, but I Frankensteined together these two tutorials to get what I needed. 

Lightswitch tutorial Nightvision tutorial

So the other bit I've been working on is setting up a small environment to show off what the shader can do, here's what the shader looks like at its default values on a real scene. 



Here is a more ideal look, with the edge detection fully turned off and the color distortion set to 30. 


here is a closer look at the cabin, with the edge detection back on and set to 55. Theres more detail and less scattering of strokes and colors thanks to the Kuwahara shader. 



Just for context here's the cabin with no post-process effects on it. 

SO! For finals, I'm going to package the file with the interactions, as well as clean things up in it so I can share this with other people. I would like to make a video showing what each component of the shader is and how to put it all together 

Comments