Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,633 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Aggro Cartoon Shader ( Sin City ) ?????? #260050
04/08/09 17:51
04/08/09 17:51
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..
It´s me again.. I wanted to ask if someone is able to create a cartoon shader, to let a model look like in Sin City ( hope you know the comic/movie )...

I need the shader to make everything black/white, like in screen 1 below. And everything that´s on Skin 2, has to be shown normal ( with colors..etc )..

Movie:
Screen:

Why do i need this?
I´m helping my Brother doing his Project. He wants to do a Fanfic of Sin City ( other city, other name.. but same style ).

If you can do the shading like in the comics, it´ll be better than like in the movie.

Why not using a black/white skin with some colored parts?
because in the light, the skin 1 should be like i created it ( full colored )
But outside of the light, the models should look like black/white.

I hope someone can help me.

Last edited by Espér; 04/08/09 18:01.

Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: Aggro Cartoon Shader ( Sin City ) ?????? [Re: Espér] #263273
04/28/09 20:54
04/28/09 20:54
Joined: Feb 2006
Posts: 385
Oldenburg,Germany
Ralph Offline
Senior Member
Ralph  Offline
Senior Member

Joined: Feb 2006
Posts: 385
Oldenburg,Germany
Okay this is not a real shader but I think this is okay...
Code:
MATERIAL* shadeall={
	effect="
		sampler2D g_samSrcColor;
		
		float4 MyShader( float2 Tex : TEXCOORD0 ) : COLOR0
		{
		   float4 Color;
		   float4 Color2;
		   Color2 = tex2D(g_samSrcColor, Tex.xy);
			if (Color2.r > 0.7f && Color2.g < 0.4f && Color2.b < 0.4f)
			{
				Color = tex2D(g_samSrcColor, Tex.xy);
			}
			else
			{
				Color.a = 1.0f;
				Color = tex2D( g_samSrcColor, Tex.xy);
				Color.rgb = (Color.r+Color.g+Color.b)/3.0f;
				Color.rgb -=0.1f;
			}
		   return Color;
		}
		
		
		technique PostProcess
		{
		    pass p1
		    {
		        VertexShader = null;
		        PixelShader = compile ps_2_0 MyShader();
		    }
		
		}

	";
}

//and in the main:
void main()
{
//...
camera.material = shadeall;



Moderated by  Blink, Hummel, Superku 

Gamestudio download | 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