Gamestudio Links
Zorro Links
Newest Posts
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
1 registered members (AndrewAMD), 1,089 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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 | 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