Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 470 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Outline shader! HELP!!!! #422636
05/14/13 01:06
05/14/13 01:06
Joined: May 2013
Posts: 4
F
FinalMyle Offline OP
Guest
FinalMyle  Offline OP
Guest
F

Joined: May 2013
Posts: 4
Hello! I am having some trouble and was wondering if anyone out there can help. This is, from what I can tell by surfing around the internet a simple request. Well, simple to what others have made. laugh I have a toon shader. I've been trying to alter it so it only draws an outline and does not shade the model. Leaving the model to be shaded by the enviroment. A simple outline shader for a model is all I need. I am not a programer, I have not studied. I'm usually good at figuring things out. However, with shaders....I'm am so lost. SO my question is, can onyone out there write a simple shader that will only outline a model? Credit will be given to the creator...as of right now that is all I can offer. laugh hopefully waiting.
I also feel I should mention that I am working in C-Script not Lite-C. grin thanks

Last edited by FinalMyle; 05/14/13 01:08.
Re: Outline shader! HELP!!!! [Re: FinalMyle] #422637
05/14/13 01:53
05/14/13 01:53
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Originally Posted By: FinalMyle
I also feel I should mention that I am working in C-Script not Lite-C.

Time to switch to Lite-C!

There are two toonshaders with outline in the wiki. Does that help?

http://opserver.de/nwik3/index.php?title=Simple_Toon_Shader_New

http://opserver.de/nwik3/index.php?title=Simple_Toon_Shading


Always learn from history, to be sure you make the same mistakes again...
Re: Outline shader! HELP!!!! [Re: Uhrwerk] #422651
05/14/13 10:41
05/14/13 10:41
Joined: May 2013
Posts: 4
F
FinalMyle Offline OP
Guest
FinalMyle  Offline OP
Guest
F

Joined: May 2013
Posts: 4
no, I have those. Thanks. I'm looking for one that doesn't SHADE the model...Just makes the outline around it.

Re: Outline shader! HELP!!!! [Re: FinalMyle] #422767
05/16/13 12:29
05/16/13 12:29
Joined: May 2013
Posts: 4
F
FinalMyle Offline OP
Guest
FinalMyle  Offline OP
Guest
F

Joined: May 2013
Posts: 4
I've tried altering those two shaders to just do an outline but as of yet, no luck. Can someone give me a tip? I've looked at other shaders that are not in c-script or lite-c and I have no idea how to convert them. (please don't reply, 'read a book') This isn't a comedy forum.

Re: Outline shader! HELP!!!! [Re: FinalMyle] #422769
05/16/13 13:10
05/16/13 13:10
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
I'm too stupid to do an outline shader, but if you have a working sample from a book you could post it here and I can help you make it work. Adapting shaders to gamestudio is by far not as hard as writing them yourself.


Always learn from history, to be sure you make the same mistakes again...
Re: Outline shader! HELP!!!! [Re: FinalMyle] #422786
05/16/13 21:28
05/16/13 21:28
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Originally Posted By: FinalMyle
just makes the outline around it


This seems to be an easy question but if you look at it, it is hard to solve, for several reasons. Maybe you can post a screenshot of a game in which you saw outlining that fits the style you want to achieve.

In the Gamestudio shader library is a toon shader, which creates an outline. If you want the model to be shaded regularily, comment the lines at the end of the "toon.fx" shader file (in ..\code) in which the PixelShader is called (lines 92 and 124). You can preview the shader in the shader viewer (see \projects\shadertest), but the model is too bright, you have to set the material settings to lower variables, I guess.

Re: Outline shader! HELP!!!! [Re: HeelX] #425776
07/10/13 22:40
07/10/13 22:40
Joined: May 2013
Posts: 4
F
FinalMyle Offline OP
Guest
FinalMyle  Offline OP
Guest
F

Joined: May 2013
Posts: 4
That shader doesn't work for me. frown it just makes the model completely black. I am currently using the toon shader that was mentioned above. I've had those since they were released. They work great for a simple toon shader.

I think maybe I'm posing this question/idea wrong. What I need isn't technically a toon shader....just an outline shader. something that does a thin black line around a model without affecting the coloring and shading from the environment. otherwords the model is still shaded and lighted by objects in the level (Static lights, Sun direction, dynamic light)

So just a shader that will outline ONLY laugh the model with out coloring it. That's what I need and I can't seem to write or figure out how to successfully alter someone elses shader.

Thanks all so far for your help! laugh

Re: Outline shader! HELP!!!! [Re: FinalMyle] #426038
07/15/13 17:45
07/15/13 17:45
Joined: Nov 2007
Posts: 318
Brasil, Paraná
NeoNeper Offline
Senior Member
NeoNeper  Offline
Senior Member

Joined: Nov 2007
Posts: 318
Brasil, Paraná
Digging up this topic!




I also have a lot of interest in a shader to do that

I think this is a solution, but do not completely understand.
http://answers.unity3d.com/questions/141229/making-a-silhouette-outline-shader.html

Someone has something?

Last edited by NeoNeper; 07/15/13 17:55.

Please! Use easy words to be translated. because my English is not very good! Grateful.
_______________________________________________________
Re: Outline shader! HELP!!!! [Re: NeoNeper] #426049
07/15/13 21:46
07/15/13 21:46
Joined: Mar 2003
Posts: 4,264
Wellington
Nems Offline

.
Nems  Offline

.

Joined: Mar 2003
Posts: 4,264
Wellington
You might find a starting point in the approach so, determine what could be done (create a stencil shadow effect [reproduce the model then flatten it], define the outline of the flattened model then draw a line around it...)

Im not saying this is the process but rather giving a possible course of action to pursue the effect.

Hopefully other members might remember stuff that could help too...

Cheers....

Re: Outline shader! HELP!!!! [Re: Nems] #429168
09/09/13 17:08
09/09/13 17:08

T
tolu619
Unregistered
tolu619
Unregistered
T



Did anyone eventually figure something out?

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