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
4 registered members (AndrewAMD, 7th_zorro, VoroneTZ, HoopyDerFrood), 1,264 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19053 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Anti-Aliasing / post processes #210946
06/14/08 00:44
06/14/08 00:44
Joined: Sep 2005
Posts: 274
Switzerland - Zurich
zwecklos Offline OP
Member
zwecklos  Offline OP
Member

Joined: Sep 2005
Posts: 274
Switzerland - Zurich
Hi fellows and dear community members!

A long time ago I had some problems using post process effects (like bloom) in combination with Anti-Aliasing.
Those pp-effects were using a quad (a transparent panel layed over the camera view) to realize effects like bloom-blur.
The delivered Lite-C bloom-blur script which came with A7 uses a diffrent technique.

I started to migrate my scripts to Lite-C, Im doing well so far and I was hoping that my problems with Anti Aliasing and the technique from A7 are gone then.
So I was to optimistic in that case and I still have the same problem.

Does anyone of you fellows using "d3d_antialias" to activate Anti-Aliasing by script and also using a post processing effect? If yes, what is your system spec.? cool

Here are my results:

scene without bloom-blur and no Anti-Aliasing



scene without bloom-blur and "d3d_antialias = 9;" (you can see the AA effect on the edges of the door for example)


scene with bloom-blur and no Anti-Aliasing:


scene with bloom-blur and Anti-Aliasing:



Its exact the same strange behaviour I had with A6 and C-Script.
Does anyone know what Im doing wrong? or anyone out there using "d3d_antialias" with a post-processing effect?

here my Lite-C code:
Code:
////////////////////////////////////////////////////////
// bloom.c
////////////////////////////////////////////////////////
MATERIAL* mtlBloom =
{
	effect = "pp_bloom.fx";
	//flags = AUTORELOAD;
}

VIEW* viewBloom =
{
	material = mtlBloom;
	flags = PROCESS_TARGET;
}

///////////////////////////////

function main()
{	
camera.stage = viewBloom;
	
video_mode = 8;
video_screen = 1;
video_depth = 32;
d3d_antialias = 9;
...
..
.




here the fx file:
Code:
Texture TargetMap;
sampler2D g_samSrcColor = sampler_state { texture = <TargetMap>; MipFilter = Linear;	};

float4 vecViewPort;
float4 vecSkill1;

float4 postprocessing_bloomblur( float2 Tex : TEXCOORD0 ) : COLOR0 
{
float facBlur = vecSkill1.x/20.;
float4 Color = tex2D( g_samSrcColor, Tex.xy);
Color += tex2D( g_samSrcColor, Tex.xy+vecViewPort.zw*facBlur);
Color += tex2D( g_samSrcColor, Tex.xy+vecViewPort.zw*facBlur*2);
Color += tex2D( g_samSrcColor, Tex.xy+vecViewPort.zw*facBlur*3);
return Color / 2.;
}

technique PostProcess 
{
	pass p1 
	{
		AlphaBlendEnable = false;
		VertexShader = null;
		PixelShader = compile ps_2_0 postprocessing_bloomblur();
	}
}


Im using A7.07 Pro
Does anyone have an idea on that issue?

cheers

Zwecklos

Re: Anti-Aliasing / post processes [Re: zwecklos] #211122
06/15/08 04:17
06/15/08 04:17
Joined: Jun 2005
Posts: 656
G
Grafton Offline
User
Grafton  Offline
User
G

Joined: Jun 2005
Posts: 656
I got the same z sorting errors with AA + PP, then I saw this in the manual
under d3d_antialias:

"Antialiasing must be disabled when render targets are used (e.g. for postprocessing). This restriction will be overcome in future versions."

So I guess JCL is already on it.


Not two, not one.
Re: Anti-Aliasing / post processes [Re: zwecklos] #211178
06/15/08 12:59
06/15/08 12:59
Joined: Sep 2005
Posts: 274
Switzerland - Zurich
zwecklos Offline OP
Member
zwecklos  Offline OP
Member

Joined: Sep 2005
Posts: 274
Switzerland - Zurich
Oh well, thank you for your reply.
I should read the manual more carefully laugh

cheers

Re: Anti-Aliasing / post processes [Re: zwecklos] #211188
06/15/08 13:57
06/15/08 13:57
Joined: Apr 2007
Posts: 582
Germany
Poison Offline
User
Poison  Offline
User

Joined: Apr 2007
Posts: 582
Germany
Have a look at this:

bmap_zbuffer can be used to render into bitmaps bigger than the screen, and to use render targets even when d3d_antialiasing was enabled.

But you have to wait until A7.08 is out for using bmap_zbuffer^^.


Everything is possible, just Do it!
Re: Anti-Aliasing / post processes [Re: Poison] #211388
06/16/08 12:54
06/16/08 12:54
Joined: Sep 2005
Posts: 274
Switzerland - Zurich
zwecklos Offline OP
Member
zwecklos  Offline OP
Member

Joined: Sep 2005
Posts: 274
Switzerland - Zurich
Ah thats great!
Is there any information available for when A7.08 comes out?

cheers and thanks.

Zwecklos


Moderated by  HeelX, Spirit 

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