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
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, 1 invisible), 1,086 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Postprocessing effect and AntiAliasing #223460
08/24/08 12:40
08/24/08 12:40
Joined: Sep 2005
Posts: 235
Switzerland - Zurich
sinnlos Offline OP
Member
sinnlos  Offline OP
Member

Joined: Sep 2005
Posts: 235
Switzerland - Zurich
Dear Conitec

We are trying to get postprocessing effects like a bloom or a sharpening shader working together with Anti-Aliasing turned on.

Since Version V7.08.1b beta (released 5-March-2008) this should be possible.
Quote:
bmap_zbuffer can be used to render into bitmaps bigger than the screen, and to use render targets even when d3d_antialiasing was enabled.
(quote from the beta features page)

Somehow we just can't get it working. We tried alot but failed. We also asked people from this forum (Slin for example) with no sucess yet. That's why we now contact you.

With this little Test-Demo you can see our problem.
<< Link (4MB) >>

Execute the "Main.c"-file when the application starts bloom is deactivated, by pressing "F1" you enable bloom on and off.
Without bloom we have a nicely AA, as soon as we enable bloom, you can see the stair-effect at the edges of the model.

Here are 2 screenshots of this issue.




What are we doing wrong?
We would be very thankful for your help, since we have another architecture visualisation-project coming up and we would like to use AA and Bloom together then.

Thanks a lot for your help,

Sinnlos & Zwecklos

Re: Postprocessing effect and AntiAliasing [Re: sinnlos] #223462
08/24/08 13:01
08/24/08 13:01
Joined: Sep 2002
Posts: 1,604
Deutschland
ChrisB Offline
Serious User
ChrisB  Offline
Serious User

Joined: Sep 2002
Posts: 1,604
Deutschland
Originally Posted By: JCL on the beta forum
Still, even with bmap_zbuffer() antialiasing only works on the screen, not in a target bitmap as in your code.



www.Swollen-Eyeballs.org
ICQ:169213431
#3dgs@quakenet
Re: Postprocessing effect and AntiAliasing [Re: ChrisB] #223470
08/24/08 14:02
08/24/08 14:02
Joined: Sep 2005
Posts: 235
Switzerland - Zurich
sinnlos Offline OP
Member
sinnlos  Offline OP
Member

Joined: Sep 2005
Posts: 235
Switzerland - Zurich
This means that the view which is rendered for the bloom, is not anti-aliased and combining the screens is resulting in stair effects?

then our question is: is there any way to anti-alias the bloom-screen?

Re: Postprocessing effect and AntiAliasing [Re: sinnlos] #223568
08/25/08 08:42
08/25/08 08:42
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
The problem is that antialiasing only works when rendering on the screen, not when rendering into a bitmap. You can not antialias a postprocessed screen because it does not contain edge information anymore.

It's theoretically possible to implement antialiasing for bitmaps also, but that's a little tricky.

Re: Postprocessing effect and AntiAliasing [Re: jcl] #223575
08/25/08 08:58
08/25/08 08:58
Joined: Sep 2005
Posts: 235
Switzerland - Zurich
sinnlos Offline OP
Member
sinnlos  Offline OP
Member

Joined: Sep 2005
Posts: 235
Switzerland - Zurich
dear jcl, thanks for your answer.

is there any workaround for this problem?
because in our architecture visuals we have alot of straight edges, when not antialiased they look very ugly.
And on the other hand we would like to have a bloom shader in it to get more "living" atmosphere.

Do you have a idea or could you point us in a direction what we could do to get an antialiased scene with bloom?

greetings

sinnlos - zwecklos

Re: Postprocessing effect and AntiAliasing [Re: sinnlos] #223576
08/25/08 09:03
08/25/08 09:03
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
The workaround I can think of at the moment is to render it on the screen, then do a screenshot into a bitmap, set the render_target pointer to that bitmap, followed by a view stage processing the render_target with a bloom effect.

This would probably only work with 7.2 however - the feature for a non-delayed screenshot into a bitmap was implemented only recently.

Re: Postprocessing effect and AntiAliasing [Re: jcl] #223676
08/25/08 21:25
08/25/08 21:25
Joined: Sep 2002
Posts: 8,177
Netherlands
PHeMoX Offline
Senior Expert
PHeMoX  Offline
Senior Expert

Joined: Sep 2002
Posts: 8,177
Netherlands
You might get away with not using anti-aliasing at all, but still achieving the same effect by using a stronger edge blur in your (post-processing) shader though.


PHeMoX, Innervision Software (c) 1995-2008

For more info visit: Innervision Software

Moderated by  old_bill, Tobias 

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