Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Ayumi, 1 invisible), 584 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
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 Offline OP
Expert
mpdeveloper_B  Offline 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 Offline
Expert
xXxGuitar511  Offline
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 Offline OP
Expert
mpdeveloper_B  Offline 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" smile. If you know what it could be I would also like to know laugh


- 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 Offline
Expert
xXxGuitar511  Offline
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 Offline OP
Expert
mpdeveloper_B  Offline 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] #232732
10/23/08 15:27
10/23/08 15:27
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
I'm going to do some tests. I'll let you know what I come up with...


xXxGuitar511
- Programmer
Re: Not sure what this would be called [Re: xXxGuitar511] #232749
10/23/08 17:27
10/23/08 17:27
Joined: Feb 2006
Posts: 2,185
mpdeveloper_B Offline OP
Expert
mpdeveloper_B  Offline OP
Expert

Joined: Feb 2006
Posts: 2,185
cool, i look forward to seeing your results. Good Luck smile wink


- aka Manslayer101
Re: Not sure what this would be called [Re: mpdeveloper_B] #234543
11/03/08 14:22
11/03/08 14:22
Joined: Feb 2006
Posts: 2,185
mpdeveloper_B Offline OP
Expert
mpdeveloper_B  Offline OP
Expert

Joined: Feb 2006
Posts: 2,185
how did it go?


- 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 Offline
Expert
xXxGuitar511  Offline
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 Offline OP
Expert
mpdeveloper_B  Offline 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
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