Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, Grant, Neb), 908 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 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 | 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