Search Unity

2d pixel art from 3d model?

Discussion in 'Shaders' started by Shadowblitz16, Feb 17, 2017.

  1. Shadowblitz16

    Shadowblitz16

    Joined:
    Feb 5, 2016
    Posts:
    75
    does anybody know if its possible to use shaders to achieve a level of 2d pixel like this from 3d characters?
     
    Last edited: Feb 17, 2017
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,435
  3. Shadowblitz16

    Shadowblitz16

    Joined:
    Feb 5, 2016
    Posts:
    75
    I know but that's not a shader it's a tool that renders models as 2d pixel art
    also its not for unity
     
  4. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,348
    There's a number of things in the asset store, as well as some games out there that use special shaders and careful art setups to create the look of 2D sprites. However matching the specific style of something like those on the link you posted would be very difficult as there's a lot of "cheats" that happen in 2D art to make things look good which can't be replicated just by using a shader.

    There's stuff like @kode80 's pixel render: http://kode80.com/blog/2016/02/23/pixelrender-for-unity3d/index.html
    Or @Howard-Day 's unreleased side project: https://forum.unity3d.com/threads/wip-small-works-art-thread.145172/page-105#post-2330367 http://www.hedfiles.net/PixelShader/
    And there's a ton of "toon" or "anime" style shaders out there that can be used to get similar results.

    There's a great talk from one of the Guilty Gear Xrd devs (which is not Unity, it's UE3 based actually) on the work they did to get their stuff to not feel 3D. A lot of the look was from not using animation blending, careful (but intentionally jittery) posing, and a lot of special case mesh swaps. And that's just to get a high resolution hand drawn anime look, pixel art is actually harder.
     
  5. Shadowblitz16

    Shadowblitz16

    Joined:
    Feb 5, 2016
    Posts:
    75
    I guess I will wait until @Howard-Day has released his hopefully it will support custom palettes
     
  6. Howard-Day

    Howard-Day

    Joined:
    Oct 25, 2013
    Posts:
    137
    ..You're gonna be waiting a while. :/ It does support whatever palette you want - it uses LUTs for the task. Basically, just run your standard Unity color correction LUT through photoshop's color indexing. Bam, done. Also, my system works far better on mechanical and non-organic shapes..it's also far from ready for release. At this point, it's a wide assortment of lightly-related scripts and shaders, not anything unified.
     
  7. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,348
    Btw, are you familiar with this trick? http://www.alkemi-games.com/a-game-of-tricks-iv-stylized-normal-mapping/
     
  8. oso_chetman

    oso_chetman

    Joined:
    Jan 23, 2020
    Posts:
    1
    yeah its completey possible but iv only seen it in unity (the programe it
    self)