How would I go about having a mesh only seeable by post process, but not the player?
I have a post process that pixelates a selected mesh based on a custom depthpass, producing a stylized 3d pixel look in a non pixelated world.
Example with exaggerated pixelation offset from model to highlight issue.
I've come up with some solutions but each one has stopped me.
I though I could just apply the post process as a mask to the original models opacity, but I can only call scene textures if the material is post process or translucent, and transparency had it's own issues such as overlapping meshs or hidden meshes showing.
I thought I could just hide the model off screen and offset the post process, but this doesn't work since if the model isn't actually on the screen it doesn't render the effect
So I figure the best way would just have post process to see the mesh, but not the player.
What are my options to hide any parts of the mesh not hidden by the pixelation
Replies
https://www.youtube.com/watch?v=PiQ_JLJKi0M
but i tihnk you're already doing that
I dont really understand what isn't working - is it that the pixelated version doesn't completely cover the un-pixelated version?
if so can you show an example without the offset
Two possible solutions occur to me.
First: use a rendertarget/second camera, one can see the character, one that can't . Then composite the result (not sure if unreal will let you do that)
Second: expand your mask one 'pixel' outwards using a sobel like filter - same principle as a toon outline