Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
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
2 registered members (NnamueN, 1 invisible), 1,489 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
has anyone a HDR-Shader? #117140
03/13/07 13:09
03/13/07 13:09
Joined: Mar 2007
Posts: 99
Germany
zSteam Offline OP
Junior Member
zSteam  Offline OP
Junior Member

Joined: Mar 2007
Posts: 99
Germany
hello

has anyone a good HDR-Shader?
the shader from "BoH_Havoc" looks not so good.


=> www.alrik-online.de
A7 Commercial
Re: has anyone a HDR-Shader? [Re: zSteam] #117141
03/13/07 13:17
03/13/07 13:17
Joined: Jan 2007
Posts: 2,247
Deutsch Niedersachsen
Puppeteer Offline
Expert
Puppeteer  Offline
Expert

Joined: Jan 2007
Posts: 2,247
Deutsch Niedersachsen
23 Post Processing Shaders for A6 Com/Pro

search button!!!


Formally known as Omega
Avatar randomness by Quadraxas & Blade
http://omegapuppeteer.mybrute.com
Re: has anyone a HDR-Shader? [Re: zSteam] #117142
03/13/07 13:23
03/13/07 13:23
Joined: Mar 2007
Posts: 99
Germany
zSteam Offline OP
Junior Member
zSteam  Offline OP
Junior Member

Joined: Mar 2007
Posts: 99
Germany
Quote:

the shader from "BoH_Havoc" looks not so good.


^^


=> www.alrik-online.de
A7 Commercial
Re: has anyone a HDR-Shader? [Re: zSteam] #117143
03/13/07 13:28
03/13/07 13:28
Joined: Jan 2007
Posts: 2,247
Deutsch Niedersachsen
Puppeteer Offline
Expert
Puppeteer  Offline
Expert

Joined: Jan 2007
Posts: 2,247
Deutsch Niedersachsen
oops.... sry


Formally known as Omega
Avatar randomness by Quadraxas & Blade
http://omegapuppeteer.mybrute.com
Re: has anyone a HDR-Shader? [Re: Puppeteer] #117144
03/13/07 16:25
03/13/07 16:25
Joined: Mar 2007
Posts: 99
Germany
zSteam Offline OP
Junior Member
zSteam  Offline OP
Junior Member

Joined: Mar 2007
Posts: 99
Germany
I have found a shader, but the shader don't work .. can anyone convert it to slyex 3 or something else?

Code:

//
//---------------------------------------------------------------------- EXTERNAL PARAMETERS
//

float fExposure;
float fGamma;

//
//---------------------------------------------------------------------------- INPUT OUTPUT
//

sampler2D HDRImage : register(ps, s0);
sampler2D BloomImage : register(ps, s1);

struct VS_INPUT
{
float4 Pos : POSITION;
float2 TexCoord0 : TEXCOORD0;
};

struct VS_OUTPUT
{
float4 Position : POSITION;
float2 TexCoord0 : TEXCOORD0;
};

//
//----------------------------------------------------------------------------- VERTEXSHADER
//

VS_OUTPUT VS_Exposure( VS_INPUT input )
{
VS_OUTPUT o = (VS_OUTPUT)0;

o.Position = input.Pos;
o.TexCoord0 = input.TexCoord0;

return o;
}

//
//----------------------------------------------------------------------------- PIXELSHADER
//

half4 PS_Exposure( VS_OUTPUT input, uniform bool bloom ) : COLOR
{
half4 c = tex2D( HDRImage, input.TexCoord0 ) * fExposure;
if ( bloom == true )
{
c.rgb += tex2D( BloomImage, input.TexCoord0 ) * ( 1.0 - c );
}

return c;
}

//
//------------------------------------------------------------------------------- TECHNIQUES
//

technique Exposure
{
pass p0
{
VertexShader = compile vs_2_0 VS_Exposure();
PixelShader = compile ps_2_0 PS_Exposure( false );

MinFilter[0] = Linear;
MagFilter[0] = Linear;
MipFilter[0] = Point;
AddressU[0] = Clamp;
AddressV[0] = Clamp;
}
}

technique ExposureBloom
{
pass p0
{
VertexShader = compile vs_2_0 VS_Exposure();
PixelShader = compile ps_2_0 PS_Exposure( true );

MinFilter[0] = Linear;
MagFilter[0] = Linear;
MipFilter[0] = Point;
AddressU[0] = Clamp;
AddressV[0] = Clamp;

MinFilter[1] = Linear;
MagFilter[1] = Linear;
MipFilter[1] = Point;
AddressU[1] = Clamp;
AddressV[1] = Clamp;
}
}




=> www.alrik-online.de
A7 Commercial
Re: has anyone a HDR-Shader? [Re: zSteam] #117145
03/13/07 21:02
03/13/07 21:02
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline
Expert
Matt_Aufderheide  Offline
Expert
M

Joined: Oct 2003
Posts: 4,131
you need more than a shader for HDR, you need to change some things in how the engine renders. you nmust switch render targets in the engine to a floating point surface before anything is rendered, then switch back to athe normal render target, then do a series of a renderings of the final image to do tone mapping, etc.

It's not exactly an easy thing to do, and requires for certain a dll.


Sphere Engine--the premier A6 graphics plugin.
Re: has anyone a HDR-Shader? [Re: Matt_Aufderheide] #117146
03/13/07 23:50
03/13/07 23:50
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
+ It renders too slow...


xXxGuitar511
- Programmer
Re: has anyone a HDR-Shader? [Re: xXxGuitar511] #117147
03/14/07 01:02
03/14/07 01:02
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline
Expert
Matt_Aufderheide  Offline
Expert
M

Joined: Oct 2003
Posts: 4,131
well it can be optimized


Sphere Engine--the premier A6 graphics plugin.
Re: has anyone a HDR-Shader? [Re: Matt_Aufderheide] #117148
03/14/07 02:27
03/14/07 02:27
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
In your honest opinion, do you think it is not only possible [at a decent framerate], but worth using in 3DGS?


xXxGuitar511
- Programmer
Re: has anyone a HDR-Shader? [Re: xXxGuitar511] #117149
03/14/07 05:11
03/14/07 05:11
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline
Expert
Matt_Aufderheide  Offline
Expert
M

Joined: Oct 2003
Posts: 4,131
Sure. I had implemented a long time ago.. it worked fine more or less, on newer cards.. but its not for old cards anyway.


Sphere Engine--the premier A6 graphics plugin.

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