PDA

View Full Version : Toon Render


ArtGuyJoe
08-29-2006, 04:24 PM
Hey folks,

I have finally decided to go ahead and do a comic book. Been wanting to for some time. Right now, I love the way that Poser does a toon render, so I was wondering if anyone had figured out how to do that in Vue?

Tirjasdyn
08-29-2006, 05:12 PM
Do a search on cel shading in vue...I know I've seen some tutorials.


Of course Vue 6 is supposed to have access to Poser's shader tree so that might be another solution.

bsm3d
08-29-2006, 05:48 PM
In Vue 5 Infinite, watch into Material browser -> special effects, Non photo realistic there is Shaders looking cartoon...

Caine777
08-30-2006, 03:57 AM
In Vue 5 Infinite, watch into Material browser -> special effects, Non photo realistic there is Shaders looking cartoon...
I think we can do a little better than that. ;) Yes, you can use the cartoon material, but then you have to change colors around and things like that, unless you want all cartoon objects to be orange. And if you import textured objects from other programs, that would mean that the textures would be lost. Also, you would lose transparicies and things like that.

But since Vue can use Python scripts, you can simply use the script that is included with Vue to make toon renders - PictureFilter_Cartoon.py. Just set up your scene the way you want it to look, run the Python script and render. All you have to remember is that you must render using a mode that allows G-Buffer rendering, so you can't do toon renders in preview mode.

Here's a P51 Mustang rendered using this Pyhton script.

http://img90.imageshack.us/img90/7130/mustangbl2.jpg (http://imageshack.us)

ArtGuyJoe
08-30-2006, 07:22 AM
You guys so RAWK!

That is why I come here if I want a question answered. I have been so stuck in my way of using Vue that I completely for got about python scripting.

Caine777
08-30-2006, 02:16 PM
You guys so RAWK!

That is why I come here if I want a question answered. I have been so stuck in my way of using Vue that I completely for got about python scripting.
No probs, just glad I could help. :) I'm just a hobbyist, and I can't tell my vertices from my voxels, so I'm just glad that there is one program I know a little something about, and I'm happy to help.

What I'm not good at though, is Python scripting. So if anyone could modify the stock toon script to draw thin outlines around all edges of an object, that would be awesome.

Instead of a render like this: http://img82.imageshack.us/img82/3166/freakti6.jpg (http://imageshack.us)

I want a render like this: http://img245.imageshack.us/img245/2432/freak2cm7.jpg (http://imageshack.us)

Are there any Python scripts for Vue that can do that?

Mike.H
08-30-2006, 09:08 PM
im pretty tired and on my way to bed but that looks like the same image posted twice.

hope im not that tired :P

Caine777
09-01-2006, 03:26 PM
I made a custom toon shader that gives me the result I was looking for.

http://img230.imageshack.us/img230/6162/runningfreakcartoon000019py5.jpg (http://imageshack.us)

You can download a very short animation here (2 seconds, ~400k): http://www.megaupload.com/?d=ZRZVSTDG (http://forums.cgsociety.org/)

If anyone wants the shader, let me know and I'll upload it.

Rok4406
09-01-2006, 04:56 PM
Yes,please upload it.Thanks.

Caine777
09-01-2006, 06:17 PM
Here is the shader, and a short explanation how I made it. I love the function editro, because it reminds me so much of the procedural material generator in Bryce, just a lot more advanced.

Choose the object you want to add the toon shader to. Go into the material editor and into the function editor under Color production. Add an "Angle of Incidence" input node.

http://img507.imageshack.us/img507/592/function1du8.jpg (http://imageshack.us)

This will determine what color the object will be based on the angle of incidence. Next, add a Filter node and connect it to the Angle of Incidence input node. The shape of the filter determines the thickness of the outline, play around with it and you'll get the hang of it.

http://img360.imageshack.us/img360/6033/function2bm8.jpg (http://imageshack.us)

Next, add a 2 Color Output node and connect it to the filter node and the Color output node.

http://img47.imageshack.us/img47/5787/function3zt9.jpg (http://imageshack.us)

Finally, exit the function editor and go to the Effects tab in the material editor. Change "Contrast" to 100% to get the sharp contrast between light and shade - or change it to whatever suits your cartoon. Also, changing the highlight to 0% helps give a cartoon feel to the render.

http://img388.imageshack.us/img388/8827/function4pl9.jpg (http://imageshack.us)

If you make a mixed material you can use a texture map or a procedural texture on your object and still get the toon outline, just carefully dial in the right mix and edit the filter under "Distribution of materials 1 and 2" to get the right look.

Hope this helps. :)

IvanB
09-02-2006, 11:19 AM
There is a cell shader preset called "CARTOON" in the material selector under "Special Effects"/ "Non PhotoRelistic"..I think its a material update from e-on. I looks exactly the same as yours in the function editor..Sorry not trying to be smart.

Flog
09-07-2006, 10:23 PM
Is rendering this way much faster?

CGTalk Moderation
09-07-2006, 10:23 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.