UV Mapping with Pixel Bender

Posted on 21. Jul, 2009 by Jerzy Drozda Jr in Blog

Have you ever rendered out a sequence from any 3d application like Cinema 4D or 3D Studio Max and wanted to replace something in it after you rendered it out? It happened to me a couple of times. Not to mention that it would be super cool if you could blend you 3D objects better with your After Effects environment. There are tools to do that on the side of the 3D package, but what about After Effects? Shouldn’t we have a chance to change our minds and make changes inside our favorite compositing tool?

Update
The plugin is now available for purchace. Check out the Youveelizer tutorial for more info. Read on if you’d like to learn more about the concept of UV mapping, or just watch the Youveelizer tutorial.

UV Mapping (source: wiki)
UV mapping is a 3D modeling process of making a 2D image representing a 3D model. The map transforms the 3D object onto an image known as a texture. In contrast to “X”, “Y” and “Z”, which are the coordinates for the original 3D object in the modeling space, “U” and “V” are the coordinates of the transformed object. This creates the effect of painting the image onto the surface of the 3D object.

Every 3D application is capable of generating UV maps and rendering out a UV pass. What if we could use those UV maps in After Effects to change textures, replace 3D screens, change pictures hanging on our 3D walls, or even add reflections to our 3D models?

I did some tests and came up with a very rough Pixel Bender plugin for painting an image onto a surface of a 3D object using UV maps. Here is the result of the first test.
This technique opens up new opportunities to cutting down render times and making changes on the fly inside After Effects. There are some problems that need to be faced, but all and all it looks promising. I’ll keep you posted. The tutorial and plugin should be available after publishing all of the 4 tutorials I have already announced. Two of them are already online, so it shouldn’t be longer than two weeks. I’d do it now, but I’m a bit busy (for a change).

Update
The plugin is now available for purchace. Check out the Youveelizer tutorial for more info.

  • Twitter
  • Facebook
  • LinkedIn
  • StumbleUpon
  • Digg
  • Technorati
  • del.icio.us
  • Google Bookmarks
  • Wykop
  • Reddit
  • email
  • Print

Tags: , ,

66 Responses to “UV Mapping with Pixel Bender”

  1. Oregano

    21. Jul, 2009

    That’s awesome, really looking forward to see it.

    Try render the Dof pass and use it like a alpha channel to ad fog or stuff like that.

    regards

    Reply to this comment
  2. Mike

    21. Jul, 2009

    Impressive stuff. Keep up the good work!

    Reply to this comment
  3. vianz

    21. Jul, 2009

    Is there something you can’t do? amazing..

    Reply to this comment
  4. harry

    21. Jul, 2009

    wot? but, how ? This is simply stunning!

    Reply to this comment
  5. Rafael Guerra

    21. Jul, 2009

    Wow, how did you figure out something so brilliant like this?
    Nice!

    Reply to this comment
  6. illd

    21. Jul, 2009

    There is already a free plugin which can take “normalrenders” of a 3D app and remap shadows and even AE lights to relight the object. Check this out: http://www.minning.de/software/normality

    Reply to this comment
  7. Stefan Minning

    22. Jul, 2009

    Very cool technique – I like to use it a lot with a plug-in I wrote specifically for this purpose.
    Haven’t looked at Pixel Bender yet – is the speed comparable to a regular compiled AE plug-in?

    BTW, just to avoid confusion, I’d like to point out that Normality does not remap shadows at all.

    Reply to this comment
    • Jerzy Drozda Jr

      22. Jul, 2009

      Hey Stefan! Nice to see you. Hard to say if it’s faster, but it’s relatively fast. It;s GPU Accelerated. And the Pixel Bender is of course compiled in AE. It was actually used in CS3 as well under the hood for some effects, so I think it’s safe to assume it’s at least not slowing things down. BTW – I’m planning a huge tutorial on Normality and some of my own scripts. All of this coming in less than 3 weeks, so stay tuned.

      Reply to this comment
      • Stefan Minning

        23. Jul, 2009

        Looking forward to the tutorial! If there’s anything I can help with let me know!

        Reply to this comment
        • Jerzy Drozda Jr

          23. Jul, 2009

          Most of the stuff I’m dealing with is pure Pixel Bender. Sometimes things just do not work as they should – a simple find edges convolution matrix for example. Frustrating. Actually the plugin is done – I just want to introduce some smart smoothing as I described below in the response to RussellCroy.

          Reply to this comment
  8. RussellCory

    22. Jul, 2009

    Very excited to see you going in this direction!

    I’ve been playing with Normality & getting interesting glints and highlights with it. My main problem is getting C4D to render out a normal map that doesn’t have aliased edges on the geometry. Hopefully you will cover it in your upcoming tuts.

    Reply to this comment
    • Jerzy Drozda Jr

      22. Jul, 2009

      That’s the issue with rendering passes in general – not C4D specific. The edges shouldn’t be antialiased when you think about it, because theres no transition or blending going on between two objects, so the renders are fine. Same goes for depth maps and other passes.

      As depth maps do have some workarounds (like special materials and stuff) it’s really hard to find something working, so the very common way to fix that is to render out a given pass at 4x the resolution and then resize it down to the target resolution.

      Not very elegant way of doing things, but on the other hand the uv passes and most of other passes render quite fast, so for the time being you can try that.

      BUT – uv maps are a special case. If you make antialiasing like I described there will still be jitter after applying the texture, so the texture needs to be applied on the oversampled version and then the whole thing should be scaled down.

      I’m actually trying to implement some smart antialiasing into the plugin I’m working at, so keep your fingers crossed.

      Reply to this comment
      • Russell Cory

        23. Jul, 2009

        Thanks for the input, I’ll give it a run.

        BTW: Congrats on the new website, it looks great. You are a true asset to the global After Effects community!

        Reply to this comment
  9. joe

    23. Jul, 2009

    Reply to this comment
  10. Splette

    23. Jul, 2009

    Wow. that’s cool. I never thought that would be possible. Thanks.

    Reply to this comment
  11. [...] eins78 shared UV Mapping with Pixel Bender [...]

    Reply to this comment
  12. Феликс

    18. Oct, 2009

    Прикольно :) Надо это сообщение использовать в своих корыстных целях. Просто обязательно!

    Reply to this comment
  13. Deriksims

    04. Jan, 2010

    Да уж. По поводу коментариев – навеяла на меня где-то услышанная фраза:
    Ведь именно мы повернули вспять реки и счетчики электроэнергии.

    Reply to this comment
  14. пyпo

    06. Jan, 2010

    Хорошая тема, продолжайте. Иногда нахожу ответы, которые получить самому просто реально не хватает времени. Премного благодарен!

    Reply to this comment
  15. Youveelizer | CG Stream

    27. May, 2010

    [...] on Mac’s and PC’s. Enjoy! Further info This is the post where it all started – UV Mapping with Pixel Bender. If you’re completely new to the concept of UV maps and Normal maps check out Lutz [...]

    Reply to this comment
  16. cheap handbags

    09. Jul, 2010

    notice me!

    Reply to this comment
  17. Russian wife

    20. Dec, 2010

    Thanks for the post. I enjoyed the read. keep up the good work!

    Reply to this comment
  18. Chi

    10. Feb, 2011

    I wish there is a similar filter that can work in Photoshop.
    However, I couldn’t find any…

    Reply to this comment
  19. Taiwan Manufacturers

    19. Apr, 2011

    Thank you for your sharing, I like your post very much.

    Reply to this comment
  20. Radiis Shoes

    19. May, 2011

    The next step will be to change the law to require the regstered owner to pay the fine.

    And while they’re at it, require you to supply a credit card number to register the car so

    they can just charge the credit card.

    Reply to this comment
  21. Taiwan Suppliers

    25. May, 2011

    I like your post, thank you very much for your sharing.

    Reply to this comment
  22. ken griffey shoes

    09. Aug, 2011

    Happy to see your blog as it is just what I’ve looking for and excited to read all the posts. I am looking forward to another great article from you

    Reply to this comment
  23. Air Max 2010

    24. Aug, 2011

    Thank you for sharing
    I’m touched to be featured in your blog. Amazing. And I am so, so very excited to be chasing dreams

    out in the big city. Please do be in touch when you’re out there!
    Thanks for the kind words, Huang!

    Reply to this comment
  24. dsfer

    03. Sep, 2011

    From 1968,since the establishment of The North Face,the high quality feather winter jackets in The outdoor sports lovers enjoy great popularity,especially SIERRA PARKA by the love of the climbers down.SIERRA PARKA of winter coats series products originate in the 1970 s,so far SIERRA PARKA series winter clothes products are still in down and sales.

    Reply to this comment
  25. erfewrer

    03. Sep, 2011

    Celine bags and the new arrivals of celine handbags are always designed by its creative director Phoebe Philo who wishes to express a contemporary minimalist style through these celine luggage series.Here is the celine 2011 bags for you.

    Reply to this comment
  26. canada goose

    06. Sep, 2011

    Happy to see your blog as it is just what I’ve looking for and excited to read all the posts. I am looking forward to another great article from you

    Reply to this comment
  27. jordan xiii

    09. Sep, 2011

    You clearly know what you are doing. It’s good to see this information in your article.

    Reply to this comment
  28. tory burch bag

    17. Sep, 2011

    please come into our store and have a look

    Reply to this comment
  29. sac vuitton

    17. Sep, 2011

    Sacs Louis Vuitton

    Reply to this comment
  30. ugg laarzen

    17. Sep, 2011

    thank you

    Reply to this comment
  31. cheap ugg boots sale

    04. Oct, 2011

    Wow, you’re like a professional writer, I love your blog.

    Reply to this comment
  32. Ugg Boot Sale UK

    05. Oct, 2011

    like it,the article is great, thanks

    Reply to this comment
  33. north face denali jacket

    06. Oct, 2011

    It’s so lucky for me to find your blog!
    So shocking and great! Just one suggestion: It will be better and easier to follow.

    Reply to this comment
  34. canada goose

    15. Oct, 2011

    Fashional canada goose just show yourself now.

    Reply to this comment
  35. Chaussures De Sport

    18. Oct, 2011

    your blog!
    So shocking and great! Just one suggestion

    Reply to this comment
  36. shuijin

    18. Oct, 2011

    Reply to this comment
  37. Links of London fake

    20. Oct, 2011

    With gold

    Reply to this comment
  38. Moncler

    21. Oct, 2011

    Many workers enjoy Moncler vest sale on proffeshional cheap Moncler Hoodies online. there are fashion Moncler boots sale jackets of new styles.

    Reply to this comment
  39. After centuries eighteen, the dress in full dress developed to satisfy all the people who do not have different between the social classes and the cultures, and the black became to have the main color of the real class.

    Reply to this comment
  40. australia luxe

    04. Nov, 2011

    cheap luxe boots on sale for women and comfortable.

    Reply to this comment
  41. An argument broke out in our living room. If a case, the new phone? I tried to ask this question to my wife and son as a judge.

    Reply to this comment
  42. nike heels dunk

    11. Nov, 2011

    Today you wear high heels.
    As for Women and jordan high heels, this is the inseparable relations, Tom Ford master evidence: “don’t wear the high-heeled shoes woman how talk up sexy?” High heels and sex appeal is relevant? The answer is: “of course!” The temptation of high-heeled shoes Wear women nike heels online in a split second sexy, charm and confident outbreak, twisting the waist is born swaying pose. High heels as if the women winning weapons, a pair of high-heeled heels, the increase absolutely is not only highly, but from the heart of the confidence and poise. Jordan heels in the fashion circle constantly with different fancy beauty attracts the eye, Cheap nike heels for women with protean, or sexy, or restore ancient ways, or luxury…… High-heeled shoes so attractive, how to choose a pair of suitable for your high-heeled shoes need to consider. The beauty of high-heeled shoes is, and can immediately figure, spin crus line, is from the vision think proportion more slender, make body curve has the ups and downs. Wearing high heels is really not comfortable shoes, but want to choose to the shoe, is no imagination in so uncomfortable, besides the point little pain, rather than it can bring the benefits of it, again calculate what? 4 to 6 cm high-heeled for you Somen famous Health experts found that wear the high-heeled shoes of 4 to 6 cm the most help to reduce weight, this highly heels can effectively consumption waist abdomen is adipose metabolic rate, let you of the lower abdomen flat, sexy! But often wear the high-heeled shoes of 4 to 6 cm, the biggest problem is that it will make your back pressure, produce acerbity keenly feel, suggest you are sleeping in a soft mattress, reduce back pressure. In addition, when the back muscles when stiff, which is easier to hit in the back of the bladder throughout the so that you will be feeling cold hands, reduced immunity. Suggest you don’t wear low back pack, lest back cold!!!!!

    Reply to this comment
  43. マジコン

    18. Nov, 2011

    So much interesting contents here! You can go to see Eh bien, je vous remercie pour le partage

    Reply to this comment
  44. Wholesale Air Jordan

    08. Dec, 2011

    There are many other be stronger details on the shoe waiting you to find out.

    Reply to this comment
  45. Name (required)

    04. Jan, 2012

    Hem cinch-cord save and lock all the heat your body produce! Shop now!
    kangdaseo011post

    Reply to this comment
  46. wholesale mac makeup

    09. Jan, 2012

    such as mac brushes set, mac eyeshadows.

    Reply to this comment
  47. Roofer

    21. Jan, 2012

    Put over very well, excellent, easy to follow and read, i will be trying your technique, Thanks

    Reply to this comment
  48. ralph lauren hats

    31. Jan, 2012

    Gaskins says Locks of Love requires a 10 inch ponytail for a donation and that his hair is currently only 2 ½ inches long.

    Reply to this comment
  49. hollister uk outlet

    31. Jan, 2012

    Instead of Romney’s usual entrance song—”Born Free” by Kid Rock—”Panama,” Van Halen’s rock anthem, began to blare from the speakers at the event. Romney, sitting shotgun, wore a wide grin. David Lee Roth, Van Halen’s frontman, claimed he wrote “Panama” about his fast car—though the suggestive lyrics seem to be more about a fast girl.

    Reply to this comment
  50. “You know, I am running against Speaker Gingrich … a very nice fellow,” Romney said. “He’s a historian, but that doesn’t give him a right to rewrite history. He was given the opportunity to lead our party … He failed.”

    Reply to this comment
  51. These pandora uk would be nice investments for you in long term

    Reply to this comment
  52. pandora bracelets

    23. Feb, 2012

    Thank you for taking the time to publish this information very useful!I’m still waiting for some interesting thoughts from your side in your next post thanks These articles written too great,they rich contents ma le scarpe non ti donano. meglio dei sandali con stringe più sottili e caviglia libera Perfect! and data accurately.they are help to me.I expect to see your new share.

    Reply to this comment
  53. abercrombie milano

    13. Mar, 2012

    Well done, to Holly & Alex! I guess the right three couples are through to the final, although still think Jason is very lucky. With Alex gone, guess I’ll be supporting Harry in the final!!

    Reply to this comment
  54. glammeltfug

    17. Mar, 2012

    Как дела?Хотите кредит на дом? Тогда читайте новость – взять кредит он-лайн автокредит вклады кредиты кредит за 2 минуты кредит он-лайн кредитная карта он-лайн кредитная карта автокредит кредитные карты кредиты карты на самых выгодных условиях домашний он-лайн банк – кредит за 2 минуты взять кредит он-лайн домашний он-лайн банк кредит на дом … Хороших Вам процентов по кредиту!

    Reply to this comment
  55. sortescartego

    17. Mar, 2012

    Привет Всем!Оформить кредит выгодный для Вас! Тогда читайте новость – автокредит вклады кредит за 2 минуты автокредит кредит на дом кредиты взять кредит он-лайн кредитная карта он-лайн кредит без посещения банка кредитные карты кредит он-лайн взять кредит он-лайн вклады – кредитная карта он-лайн кредит на дом кредит за 2 минуты карты на самых выгодных условиях … Успехов Вам!

    Reply to this comment
  56. floarrarype

    17. Mar, 2012

    Как дела?У меня есть новость по кредиту он-лайн Тогда читайте новость – кредитная карта карты на самых выгодных условиях выгодный кредит вклады кредит за 2 минуты кредиты кредитная карта он-лайн взять кредит он-лайн кредит без посещения банка кредит за 2 минуты кредитная карта домашний он-лайн банк кредитные карты – домашний он-лайн банк кредитные карты взять кредит он-лайн автокредит … Всем пока рад был сообщить…

    Reply to this comment
  57. Irriniarsef

    22. Mar, 2012

    Привет!У меня есть хорошая новость Тогда читайте новость – автокредит кредитная карта он-лайн кредит на дом карты на самых выгодных условиях кредитные карты кредиты взять кредит он-лайн вклады кредит он-лайн домашний он-лайн банк кредит за 2 минуты кредит на дом кредитная карта он-лайн – кредиты кредит на дом вклады кредитные карты … Всем пока рад был сообщить…

    Reply to this comment
  58. adidas wings

    26. Apr, 2012

    Adidas jeremy scott comes correct with a new colourway of his increasingly iconic JS Logo model. Jeremy Scott’s adidas Originals by Originals footwear is not for everyone, but the JS Wings has a large fan base. Look for the camouflage JS Wings to hit adidas Originals retailers Fall/Winter 2011. adidas js wings Further features are found in the oversized Trefoil logo tongue, JS lace jewellery, signature laser engraving and a logo sock liner. A bold statement and guaranteed head turner.The upper is constructed from debossed leather in a metallic colourway, complementing the high yellow and lemon peel highlights. adidas wings If your child wear on their feet looked pretty cute to the public .adidas ObyO x Jeremy Scott Leopard Tail SneakersMaterial as a whole covered with wool leopard shoes , leopard elements full version and boom no less presents , but to join in the shoes behind the cheetah tail the jeremy scott wings to push to a more realistic realm.Further features are found in the oversized Trefoil logo tongue, JS lace jewellery, signature laser engraving and a logo sock liner. A bold statement and guaranteed head turner.Jeremy Scott comes correct with a new colourway of his increasingly iconic JS Logo model. jeremy scott adidas The upper is constructed from debossed leather in a metallic The removeable metallic leather flaps, single colour upper and JS lace jewels are the perfect synthesis of fashion and sport – these golden wings will make you so high, you wanna touch the sky! Adidas Jeremy Scott 2.0 colourway, complementing the high yellow and lemon peel highlights.The Jeremy Scott collection for Adidas mixes ’80s basketball with an offbeat, angelic look that’d even snap necks in heaven!Jeremy Scott’s sneaker designs for Adidas can usually be counted on for some wild looks, Adidas Jeremy Scott colours and patterns, and the JS Africa is no exception. The shoe takes a classic basketball design and spices it up with some bold colours and stylish touches. When it comes to bold, creative sneaker designs, look no further than Jeremy Scott’s latest creations for Adidas. Jeremy has brought back the over-the-top JS 3 Tongue, Adidas Jeremy Scott 2.0 Women which puts a daring spin on the classic Adidas Attitude High.

    Reply to this comment

Leave a Reply