Keying hair in Blender.

nice_comp.jpgThis is another excellent tutorial from BlendedPlanet. I'm sure you all remember the previous tutorials and resources we've posted from BlendedPlanet. This new one covers one of the most difficult things to key, hair.

The thing that I most liked about this tutorial is how enjoyable it is to read. Take these lines for instance:

Good news, friends - I do believe I have stumbled upon the ultimate greenscreen technique, and if you're willing to go with me on a slightly wild ride into the mathematical basis for a perfect matte, I think you will agree. And, believe it or not, we will NOT be starting out with a green minus red color difference matte!

Well, ok, that's not completely true, but humor me for a bit, and let's assume that you HAVE pulled a reasonably good color difference key, but you went ahead and blurred the matte and eroded the edges a couple pixels. So what you have is a great key of your subject, but basically, the edges suck.

From that auspiscious starting we point we ask ourselves - how to restore EXQUISITE edge detail, losing nothing in the process. Well, let's start with a little theory, some assumptions that can guide us on the way. This may not all make sense right now but try to stay with me.

Its very obvious the author is passionate about what he is sharing and it really reaches out to the reader and I know that it made me want to keep reading. The technique really results in some great keying, their appears to be little to no loss in quality and the soft edges of the hair.

Its recommended to download the .blend file as the article doesn't carry itself with a large amount of screenshots, rather the minimum to keep things understandable. Well I'm sure you'd like to check out the tutorial, it can be found here.



Related Posts


Related posts are selected automatically based on their content.


21 Responses to “Keying hair in Blender.”  

  1. 1 JohnB Edit Link

    impressive stuff- this is about as good a key as I've seen.

  2. 2 markus Edit Link

    Is it possible to group nodes into a single one? With that setup there's not much room for anything else…

  3. 3 Matt Edit Link

    markus: Node->Make Group (Ctrl G)

  4. 4 Matt Edit Link

    By the way, I wonder how easily this technique can be used in generalised situations. It looks like it's performing very well, I wonder if it could be turned into a node of itself?

  5. 5 rcas Edit Link

    To Matt:
    After trying out with different green screen footage I can say it doesn't always work.
    You need to adjust it and add more nodes considering the situation you're facing. I don't think it could be turned into a node by itself.

    You could however create a complex node that would allow you to tweak most of the parameters and get the desired effect. But that wouldn't really map directly to this node structure.

    – Rui –

  6. 6 tom Edit Link

    that's amazing! thank you!

  7. 7 Dave Weese Edit Link

    Apologies in advance for cruddy web site performance today!

    I noticed this morning my mail was coming in slow, and it occurred to me that BlenderNation must have posted my tutorial, because my server is choking.

    It should be better in a day or two when the big rush of views slows down. Meantime if anyone wants to mirror the tute, feel free.

    Dave

  8. 8 BFan Edit Link

    There is example green screen photos and other (?) matte files :(

  9. 9 Brian Edit Link

    Hehe. Sorry Dave. We should warn you when the BN-effect is in full force.

  10. 10 knellotron Edit Link

    Wouldn't it make more sense to use the "Seperate YUV" node and work in the YUV colorspace? That way you have luminance as a seperate channel, and the "losing contrast" thing isn't an issue.

    I made a complex node bundle that does it this way, and also includes a 4 pixel blur on the chroma channels to make keying 4:1:1 DV footage easier. Maybe I should share it.

  11. 11 rcas Edit Link

    To knellotron:
    Please do share it with us, I'm sure everyone likes to see each other approaches.

  12. 12 Dave Weese Edit Link

    Absolutely - this is just one approach, and many times keying is quicker in YUV space. The point here was actually the mindset of understanding what's going on with the pixels so you can apply a little mathematical common sense and get great results without throwing information away unneccesarily, no matter what the keying challenge is.

  13. 13 Kram1032 Edit Link

    The site is sooo slow :S
    And now, it doesn't work at all :(

    Seems to be cool, though :D

  14. 14 Arite Edit Link

    Thanks - a brilliant article! I have finally manged to get a decent composited output, and understand the theory in the process.

  15. 15 Chris Stones Edit Link

    I've been looking for something like this for YEARS. Hey, do you think he would let me make a video tutorial out of it?

  16. 16 Bob Holcomb Edit Link

    Dave, that is sweet! Great tutorial. Keep up the good work.

  17. 17 Brad Edit Link

    In the tutorial he mentions to sample the values of the viewer node in the image editor to get the float point. How in the world do you do that? Wondering if its a keystroke that displays that info. Any help would be awesome. Thanks

  18. 18 Gobs Edit Link

    This works amazingly well on my crappy DV footage. Thanks Dave.

    @Brad: Just hold down the mouse button when the cursor is over the viewer window.

  19. 19 Zanos Edit Link

    Can you get the same result using the photoshop cs3? I dont know that much about editing pictures and all that. Thanks.

  20. 20 WeWa Edit Link

    awesome tutorial. I love the example video at the bottom.

  21. 21 Bart Edit Link

    Link updated.

Tip: register on gravatar.com to show your own avatar with your comments instead of

Leave a Reply