Sunday, March 12, 2006

HLSL Image Processing Cartoon Effect


A While ago( Jan 2005 I think =P ) I was playing Naruto on PS2. I found they had something more than just toon shading on their models. I could see slash lines easily on the shadow part of their toon shading; made the models look very similar to the ones in manga. I think the publisher called it "Naruto Shading" lol. And yea, not just Naruto Shading, there was also Dragon Ball Shading and others during that time to emphasis how special their toon shaing were. I thought that was some mysterious effect at the begining, but after some study and research and I realized it was not as hard as it sounded. All those fancy names were all from one effect called "Tone Shading" and its not hard to implement it too. All I had to do was combine the toon shading with a slashing line texture then I could make the slash lines only appear on the shadow part of the toon shading~.

During that time, DirectX9.0 + HLSL were released also, so I used tone shading as a chance to practice how to use HLSL. I used HLSL to write my shader codes and used Image Processing to re-do my cartoon effect. And wow, Image Processing was one very good technique!! With Sobel Silheouette filter, I can find perfect silheouette. Unlike those crappy lines I did before, this Silheouette is smooth and nice. And plus the tone shading, I can make the same effect as that Naruto game lol. Really, Image Processing can really make some nice effect and I think there are more and more games using this technique now like Glow, Blur...etc. I guess Image Processing will become a required technique in the future game industry. ^_^


HLSL Image Processing + Toon + Tone + Silheouette!!XD

20 comments:

nukacola said...

Good..

I am trying but not yet...

Septurion said...

Could you make it downloadable so i could integrate this shader into the torque game engine advanced and see how it looks in action?

Ray-X said...
This comment has been removed by the author.
Ray-X said...

I really like toon shading rendering technique and the one you showed is one of the very best toon shading i've seen, can you teach me how to do that.. .

Anonymous said...

You realize, what have written?

Anonymous said...

Thanks so much for the great post. I've been searching for blogs like this now for 30 minutes and i finall found one
that's worthwhile. I'm really into video games, do you have any information on the new Call of Duty? I know this
is off topic, but I thought I'd ask. Thanks...oh also, I have some video game writings if you want to check them
out. Here are a few of them

WoW Warlock
Arms Warrior Build

Anonymous said...

Hm hm.. that's interessting but honestly i have a hard time figuring it... I'm wondering what others have to say....

Anonymous said...

Hello,

can anyone tell me which is the best counter strike guide ? :)...i found this one :

http://www.downloadzdb.com/Counter_Strike_Best_Guide

What do you remember beside it ?

Thanx in advance

Sorry for my bad english :s

Anonymous said...

Nice fill someone in on and this enter helped me alot in my college assignement. Say thank you you on your information.

Anonymous said...

Sorry for my bad english. Thank you so much for your good post. Your post helped me in my college assignment, If you can provide me more details please email me.

Anonymous said...

We [url=http://www.onlineslots.gd]online casino[/url] have a corpulent library of absolutely free casino games for you to monkey tricks opportunely here in your browser. Whether you want to practice a provender round scenario or even-handed try elsewhere a few new slots before playing in the direction of genuine in clover, we be undergoing you covered. These are the rigid same games that you can engage at earnest online casinos and you can with them all for free.

Anonymous said...

Thеsе aгe also avaіlаblе ωith PTO
Delау feature whiсh automatісally
open tank internal νalve for 5 sесοnds
pгior to engаging ΡTΟ allowing
pump and product lines to сhargе
previewіng interνal valve slug. (Check out the аrticle: What's Really Out There in the Night Sky to see how some celestial objects appear at different EM frequencies. A MOBILE APP GIVES THE STATION A DIRECT MARKETING CHANNEL TO COMMUNICATE WITH THEIR LISTENERS.

Review my web-site; radio sender
My website: onlineradio

Anonymous said...

I realize that there is not a ton of variety in this list, since Rogue and i - Net - Hack are essentially the same and Sorcerer #1 and #2 are more overtly
the same. If you want to enjoy the game thoroughly then you need to get on board of a reliable
online bingo site to get the maximum enjoyment as
well as benefit of the game. In fact an ideal online casino will make the
entire gaming experience a pleasurable and a real experience to the
gamer.

My web site :: kostenlos spiele spielen

Anonymous said...

These arе alsο аvailаble with ΡТO Delay feature which autоmatіcally oρen tаnk intеrnal valve for 5 seconds ρгioг to еngaging
РTO allowing pump аnd ρroduсt lіnеs tο chаrge pгеviеwing interval vаlve slug.
The lіnе сomeѕ off the boat automatically once іt hіtѕ a fіsh, whiсh mеans that the user сan catch a fiѕh οf virtually any size.
Thіѕ not only allows listеners to liѕten to their faνoгite ΜP3 files
аlοng with their ЅIRIUS гаԁіo; it alѕo lеtѕ
them digitаllу rеcoгԁ theіr fаνoritе rаdio songs for inѕtant
plаybaсk.

Feel free to visіt my blog; http://echobj.com

Anonymous said...

The particular electronic cigarette ego basic starter kit
is fantastic for new users. As you lift out the screen you'll see it is still attached via a ribbon cable. Pingbatterys battery administration program (BMS) might have the line of Light emitting diodes visible.

Here is my site; youtube converter - skoopdo.fr

Anonymous said...

Thanks on your marvelous posting! I definitely enjoyed reading іt,
you may be a great author. I will еnsure that I bookmark
your blog аnd will come bаck dοwn the гοad.
ӏ want tо encourage continuе yοuг gгeat job, havе а nice holiԁay
wеekend!

my blog ρost; renowned doctor reveals what works for weight loss

Anonymous said...

In most cases they are, but when it comes to updates, patches, etc to
the mmorpgs. While having a passion for playing games is important, getting a rewarding career in game design
will require students to be a cut above the competition.
It is recommended that the golfers select those putters with which the golfers
feel good and works well with their gaming pattern.

Here is my weblog http://www.spielespielen24.de

Anonymous said...

Hellо! This is my fiгst visit to yοur blοg!
We are a collection of volunteers and starting a
new pгοjеct іn a сommunity in the sаmе niche.
Your blog provіded us beneficial informаtion to
wоrk on. Yоu have ԁone а outstanding job!


Check оut my blog; vitamin shoppe ultimate man gold multivitamin

Anonymous said...

Do you have any video of that? I'd love to find out some additional information. ageless male - ageless male supplements review - conversare.com.br

Here is my web page - ageless male germantown

Anonymous said...

Make sure your diet is a healthy one and you are getting lots of folic acid, leafy green vegetables, and are taking prenatal vitamins.
If your cycle length varies by more than a few days every month, you'll want to go to the doctor to be checked for any possible issues.
http://pregnancyhelper.in/societal-pressure.html