Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Creating a Rotoscoping Shader

Discussion in 'Shaders' started by kenaochreous, Sep 16, 2014.

  1. kenaochreous

    kenaochreous

    Joined:
    Sep 7, 2012
    Posts:
    395
    I want to create a rotoscoping shader. I don't know much about shaders but I have some ideas on how to achieve this effect. I think what I need to do is rapidly create randomly generated lines overtime. I'm a little unsure what range I want to go for with the randomization. I also don't know what parameters the randomly generated lines will require. For now I'm going to be using the tree bark shader for the base of my rotoscope shader since I want to go for this scratchy sort of feel with my shader. Am I going in the right direction with rapidly create randomly generated lines overtime or is there an easier way to create a rotoscope shader?
     

    Attached Files:

  2. imaginaryhuman

    imaginaryhuman

    Joined:
    Mar 21, 2010
    Posts:
    5,834
    Creating those lines within a shade could be fiddly... are you talking a vertex shader which moves line geometry?
     
  3. kenaochreous

    kenaochreous

    Joined:
    Sep 7, 2012
    Posts:
    395
    Yes, do you know what parameters I will need to generate and randomize the line geometry?
     
  4. aubergine

    aubergine

    Joined:
    Sep 12, 2009
    Posts:
    2,862
    When you say rotoscopic, do you mean like the modded doom 3 rotoscopic shader?
    If so, you can check my aubergines postprocess shaders pack, a combination of 2 shaders will give you this result.
     
  5. kenaochreous

    kenaochreous

    Joined:
    Sep 7, 2012
    Posts:
    395
    More like A-ha's Take on Me music Video or Linkin Park's music video Breaking the Habit. I want to capture the hand drawn feel, jagged edges and constant sense of movement in a shader.

     
    Last edited: Sep 16, 2014
  6. aubergine

    aubergine

    Joined:
    Sep 12, 2009
    Posts:
    2,862
    That would be charcoal shader with couple of animated brush textures. Previously adding motion blur and some sort of edge detection would improve the effect or make it worse.
    Or, charcoal shader with good lighting like; constantly and randomly moving the light(s) around. (This might be easier with a combination of object space shaders and image effects.)
    Either way, i never tried so i wouldnt know if it would look good or not.

    EDIT: Im talking about the first video.
     
  7. kenaochreous

    kenaochreous

    Joined:
    Sep 7, 2012
    Posts:
    395
    Can the shaders you sell on the asset store be bought individually? The Charcoal shader is the only one I'm interested in.
     
    Last edited: Sep 17, 2014