Announcement

Collapse
No announcement yet.

2D flat image shader UE4

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    2D flat image shader UE4

    Is there a way to create a shader in UE4 that would turn an object into a 2D silhouetted cut out of an image or of a video?

    I was inspired by these really interesting effects used in the game Killer 7. If you look in the image I've attached, the character I've circled in red is always seen as a 2D gradient from any angle in the game.

    Click image for larger version

Name:	free-killer-7-hd-desktop-wallpaper.jpg
Views:	1
Size:	63.6 KB
ID:	1136322

    Also, here are two video examples that illustrate this concept.

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

    https://www.youtube.com/watch?v=7OrT-Z0J9i4

    #2
    Heya Alucardac,

    World position is a wonderful thing:



    From here, you probably want to run that value into a ramp texture or some other function to shape it to get the exact gradient you're looking for.

    Cheers,
    Michael Noland
    Attached Files

    Comment


      #3
      Forgot to set the material to unlit, with that change it works a lot better:



      Click image for larger version

Name:	FunWithWorldPosition.png
Views:	1
Size:	213.1 KB
ID:	1052372

      Cheers,
      Michael Noland
      Last edited by Michael Noland; 07-03-2014, 08:30 PM.

      Comment


        #4
        Thanks so much for the insight, Micheal! I'm excited to try this out.

        The image on your last post didn't seem to load properly actually. Could you possibly repost it?

        Comment


          #5
          Not sure what happened there, it was showing up when I uploaded it. I've tried again, and I left the attachment on too.

          Cheers,
          Michael Noland

          Comment

          Working...
          X