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,528 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
Fullscreen Postprocessing Pixelshader with free Lite-c? #247005
01/18/09 14:25
01/18/09 14:25
Joined: Feb 2006
Posts: 385
Oldenburg,Germany
Ralph Offline OP
Senior Member
Ralph  Offline OP
Senior Member

Joined: Feb 2006
Posts: 385
Oldenburg,Germany
Hi,
it is possible to use Fullscreen Postprocessing Pixelshader from this Page with Lite-C Free?
I want to put some effects on the screen, but i only find a way to put this shaders on a entity skin.
If it possible, someone could write me some lines of code how to use this shaders on the hole screen?

Sorry for my bad english.
Greetings Ralph

Last edited by Ralph; 01/18/09 14:26.
Re: Fullscreen Postprocessing Pixelshader with free Lite-c? [Re: Ralph] #247015
01/18/09 15:11
01/18/09 15:11
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
The free Lite-C version doesn´t support shaders and thus it is not possible.

Re: Fullscreen Postprocessing Pixelshader with free Lite-c? [Re: Slin] #247191
01/19/09 12:35
01/19/09 12:35
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Well you can't put shaders in the Free Lite-C but here you go:

Code:
camera.material = your_shader;


Re: Fullscreen Postprocessing Pixelshader with free Lite-c? [Re: Cowabanga] #247204
01/19/09 13:49
01/19/09 13:49
Joined: Feb 2006
Posts: 385
Oldenburg,Germany
Ralph Offline OP
Senior Member
Ralph  Offline OP
Senior Member

Joined: Feb 2006
Posts: 385
Oldenburg,Germany
Originally Posted By: Cowabanga
Well you can't put shaders in the Free Lite-C but here you go:

Code:
camera.material = your_shader;

I actually use this, but i cant use targetmap.
I only get a black screen if i want to do something with that.
Someone have a simple code to show me how that works with targetmap?

Greetings Ralph

Re: Fullscreen Postprocessing Pixelshader with free Lite-c? [Re: Ralph] #247206
01/19/09 13:51
01/19/09 13:51
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Did you set the material? (MATERIAL*)

Re: Fullscreen Postprocessing Pixelshader with free Lite-c? [Re: Cowabanga] #247211
01/19/09 14:05
01/19/09 14:05
Joined: Feb 2006
Posts: 385
Oldenburg,Germany
Ralph Offline OP
Senior Member
Ralph  Offline OP
Senior Member

Joined: Feb 2006
Posts: 385
Oldenburg,Germany
Yes.
Code:
camera.material=test_mat;

This is the material:
Code:
MATERIAL* test_mat={
	effect = "
	Texture TargetMap;
	sampler2D smpSource = sampler_state{texture=<TargetMap>;};
	
	float4 goldshader(float2 Tex: TEXCOORD0): COLOR0{
		float4 Color=tex2D(smpSource,Tex.xy);
		Color-=tex2D(smpSource,Tex.xy-0.001)*2.0f;
		Color+=tex2D(smpSource,Tex.xy+0.001)*2.0f;
		Color.rgb=(Color.r+Color.g+Color.b)/3.0f;
		Color.rgb=Color.rgb*3.0f;
		return Color;
	}
	
	technique shader{
		pass p1{
			PixelShader = compile ps_2_0 goldshader();
		}
	}
	
	technique fallback { pass one { } }
	";
}


Re: Fullscreen Postprocessing Pixelshader with free Lite-c? [Re: Ralph] #247217
01/19/09 14:31
01/19/09 14:31
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
And it is still a shader which isn´t supported by that version...
other than that you have to create view as a stage of camera which you are then assigning the shader to. Otherwize there is no postprocessing and no targetmap.


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