Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, ChrstphFr), 941 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Only Outlines...? I want no cartoon shading #238833
11/30/08 14:30
11/30/08 14:30
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline OP
Expert
Espér  Offline OP
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Hi..

I´m searching for a way, to give my Models only the Outlines around the visible charakter ( like in Comics or Animes ). I don´t want the characters to be shaded like cartoons.. just the outlines in a variable thick.

Hope you understand and know a way...


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: Only Outlines...? I want no cartoon shading [Re: Espér] #238856
11/30/08 19:56
11/30/08 19:56
Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
Drew Offline
Serious User
Drew  Offline
Serious User

Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
there is the inverted model trick...

basically you duplicate your mesh, epxand it just slightly and texture it black (push modifier in 3dmax).
Now flip all the normals on just the black mesh, you now have black lines only, since you only see the backfaces of the black mesh on the edges...

sorry this isn't a shader....


Drew Medina
Game Developer (Artist)
Personal & professional website
Deviant Art
My Blogspot
Re: Only Outlines...? I want no cartoon shading [Re: Drew] #238865
11/30/08 21:00
11/30/08 21:00
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline OP
Expert
Espér  Offline OP
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
i know that from an AU Tutorial..
But that won´t work on more complex models ( like models that inlcude rings or objects with holes inside ).

I don´t ask for those things for fun..

Last edited by xXReapeRXx; 11/30/08 21:01.

Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: Only Outlines...? I want no cartoon shading [Re: Espér] #238868
11/30/08 21:12
11/30/08 21:12
Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
im sure this can be achieved by editing some toon shaders, but i dont know how to write/edit shaders yet.


3333333333
Re: Only Outlines...? I want no cartoon shading [Re: Quad] #238915
12/01/08 05:23
12/01/08 05:23
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
well that's exactly how most toon-shaders work. they just do the copying, blackening, inflating and normal flipping for you in a second pass. others will use some sort of edge detection, but that can take a lot of work to look good in your game.

also i believe Drew was simplifying the process; you wouldn't want to just scale the entire model. you'd select convex parts and scale them individually.

since the shader automatically does it along the normals, it should work fine.

it's part of the toon shaders already on the wiki.

i highly recommend the official shader workshop that you should get with a7 (or find on the downloads page). you'll then know how to use HLSL, and the following will be relatively easy for you to do: render one pass with diffuse lighting or whatever lighting you want to use, then do another pass moving the position of each vertex along its normal, flip it, and render it black.

all in all it should take you about an hour, and you'll be able to write your own shaders wink

Quote:
I don´t ask for those things for fun.
oh come on, asking questions is heaps of fun!!

julz


Formerly known as JulzMighty.
I made KarBOOM!
Re: Only Outlines...? I want no cartoon shading [Re: JibbSmart] #238918
12/01/08 05:54
12/01/08 05:54
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
julz beat me too it, if you are using blender you can also use alt-s to scale along the normals.

Re: Only Outlines...? I want no cartoon shading [Re: lostclimate] #238929
12/01/08 08:38
12/01/08 08:38
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline OP
Expert
Espér  Offline OP
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
But I don't want the models to be shaded like cartoons...
I just want the outlines...
So I can't use a cartoon shader, because then it's shaded...

And: I just use MED... And scale all parts of my greater models individually, will make a lot of work that'll go much easier and faster with a scripted method.


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: Only Outlines...? I want no cartoon shading [Re: Espér] #238932
12/01/08 09:29
12/01/08 09:29
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline
Senior Expert
ello  Offline
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
you can just use the outline pass of any toonshader and the next pass has

vertexshader = NULL;
pixelshader=NULL;

and thus using engines default

Re: Only Outlines...? I want no cartoon shading [Re: ello] #238934
12/01/08 10:11
12/01/08 10:11
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
oh dear... i just told you to use the outline part. they're distinctly different and unrelated to each other, people just like to use them both in the same shader because people often want to use both effects together.

anyway, *what ello said*.

julz

EDIT: @lostclimate: didn't know that feature! thanks!

Last edited by JulzMighty; 12/01/08 10:12. Reason: oh... blender just got even cooler!

Formerly known as JulzMighty.
I made KarBOOM!
Re: Only Outlines...? I want no cartoon shading [Re: JibbSmart] #238986
12/01/08 16:39
12/01/08 16:39
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
@julz any time. It was funny because i used to use anim8r a long time ago, and its extrude scaled by normals, and for the longest time i couldnt find another modeling program that could do that, one day i accidently held alt while scaling in blender, and voila!

Last edited by lostclimate; 12/01/08 18:03.
Page 1 of 2 1 2

Moderated by  Blink, Hummel, Superku 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1