|
|
Outline shader! HELP!!!!
#422636
05/14/13 01:06
05/14/13 01:06
|
Joined: May 2013
Posts: 4
FinalMyle
OP
Guest
|
OP
Guest
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.  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.  hopefully waiting. I also feel I should mention that I am working in C-Script not Lite-C.  thanks
Last edited by FinalMyle; 05/14/13 01:08.
|
|
|
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
Expert
|
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
HeelX
Senior Expert
|
Senior Expert
Joined: Jul 2001
Posts: 6,904
|
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
FinalMyle
OP
Guest
|
OP
Guest
Joined: May 2013
Posts: 4
|
That shader doesn't work for me.  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  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! 
|
|
|
Re: Outline shader! HELP!!!!
[Re: Nems]
#429168
09/09/13 17:08
09/09/13 17:08
|
tolu619
Unregistered
|
tolu619
Unregistered
|
Did anyone eventually figure something out?
|
|
|
|