2 registered members (Ayumi, 1 invisible),
584
guests, and 1
spider. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Not sure what this would be called
#232494
10/22/08 00:08
10/22/08 00:08
|
Joined: Feb 2006
Posts: 2,185
mpdeveloper_B
OP
Expert
|
OP
Expert
Joined: Feb 2006
Posts: 2,185
|
Ok, this may be a bit difficult to explain, but I'm looking for a single pass shader that makes all the polygons of a model invisible unless the polygons overlap, then the polygons are shown in black.
I guess you could call it an "overlap" shader, the polys should only be visible when they overlap...I'm not sure how to begin this shader though...
- aka Manslayer101
|
|
|
Re: Not sure what this would be called
[Re: mpdeveloper_B]
#232501
10/22/08 02:01
10/22/08 02:01
|
Joined: Mar 2006
Posts: 2,503 SC, United States
xXxGuitar511
Expert
|
Expert
Joined: Mar 2006
Posts: 2,503
SC, United States
|
Very difficult. You'd have to specially draw a copy of the scene and somehow figure it out.
What's it for? There may be a better way to solve your problem?
xXxGuitar511 - Programmer
|
|
|
Re: Not sure what this would be called
[Re: xXxGuitar511]
#232508
10/22/08 05:29
10/22/08 05:29
|
Joined: Feb 2006
Posts: 2,185
mpdeveloper_B
OP
Expert
|
OP
Expert
Joined: Feb 2006
Posts: 2,185
|
well, i simply want to add it as an "inline" on another model, sort of a "anime" shader, like this one: notice how the character closest to the scene has a "crease" line across his back, although I don'g have a video to prove it, the lines change as the characters move and as polygons are put over other polys. My guess is that they have a shader that does toon shading, has a small outline and has an "inline" that is the model's polys rendered in this way, where they only show up when they are on top of other polygons. This is only a guess though, but I really want to get that "inline", I have a good toon shader "thanks to BoH_Havoc" . If you know what it could be I would also like to know
- aka Manslayer101
|
|
|
Re: Not sure what this would be called
[Re: mpdeveloper_B]
#232580
10/22/08 14:52
10/22/08 14:52
|
Joined: Mar 2006
Posts: 2,503 SC, United States
xXxGuitar511
Expert
|
Expert
Joined: Mar 2006
Posts: 2,503
SC, United States
|
You might be able to get a similar result by using the normals. If the face is over a certain point (facing towards the camera), then it's inline.
For example, anything below 80 degrees from the camera.
xXxGuitar511 - Programmer
|
|
|
Re: Not sure what this would be called
[Re: xXxGuitar511]
#232663
10/23/08 02:41
10/23/08 02:41
|
Joined: Feb 2006
Posts: 2,185
mpdeveloper_B
OP
Expert
|
OP
Expert
Joined: Feb 2006
Posts: 2,185
|
I'm not sure how I would do that...I think it would be like a CW culled normal, but that it would be shown all over
- aka Manslayer101
|
|
|
Re: Not sure what this would be called
[Re: mpdeveloper_B]
#234554
11/03/08 15:07
11/03/08 15:07
|
Joined: Mar 2006
Posts: 2,503 SC, United States
xXxGuitar511
Expert
|
Expert
Joined: Mar 2006
Posts: 2,503
SC, United States
|
Oh yeah, sorry. I forgot about this...
It looks alright. I don't have any good models to demonstrate toon shading though. If you could send me one, I'll post some screenshots, and if useful, I'll give you the code...
xXxGuitar511 - Programmer
|
|
|
Re: Not sure what this would be called
[Re: xXxGuitar511]
#234556
11/03/08 15:26
11/03/08 15:26
|
Joined: Feb 2006
Posts: 2,185
mpdeveloper_B
OP
Expert
|
OP
Expert
Joined: Feb 2006
Posts: 2,185
|
All it needs is a character to show that the lines work, here take this one.
- aka Manslayer101
|
|
|
|