Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (dr_panther, Ayumi, 1 invisible), 877 guests, and 2 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
[Solved]Combine multiple shader blur together #444524
08/13/14 13:51
08/13/14 13:51
Joined: May 2008
Posts: 257
D
djfeeler Offline OP
Member
djfeeler  Offline OP
Member
D

Joined: May 2008
Posts: 257
Hello !

I'm new to shaders, I try to combine multiple shader blur together. I added that I programmed. Please help me by providing me with a small example.

Thank you in advance.

Djfeeler

link file

Last edited by djfeeler; 08/15/14 05:20.
Re: Combine multiple shader blur together [Re: djfeeler] #444525
08/13/14 14:56
08/13/14 14:56
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline
Serious User
DLively  Offline
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
Hi, you should put more details into what you are asking for.
Furthermore, I believe the wiki has what what you are looking for laugh

http://opserver.de/qwik8/index.php?title=Shaders


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: Combine multiple shader blur together [Re: DLively] #444534
08/13/14 16:05
08/13/14 16:05
Joined: May 2008
Posts: 257
D
djfeeler Offline OP
Member
djfeeler  Offline OP
Member
D

Joined: May 2008
Posts: 257
Hello,

I would like to see a blur shader and over another shader blur and over another shader blur and over an hour and gauss over a gauss V.

I use the render target, I just happen to do a shader to blur my scene, I actually would display multiple shader blur to better blur my scene but I do not know how.

Thanks in advance.

Last edited by djfeeler; 08/13/14 16:16.
Re: Combine multiple shader blur together [Re: djfeeler] #444556
08/14/14 06:47
08/14/14 06:47
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
maybe using more passes?


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: Combine multiple shader blur together [Re: sivan] #444571
08/14/14 10:35
08/14/14 10:35
Joined: May 2008
Posts: 257
D
djfeeler Offline OP
Member
djfeeler  Offline OP
Member
D

Joined: May 2008
Posts: 257
Thanks for your response ^^

Here is the shader blur with multipass. Is it well realized ?

link file

Thanks in advance.

Djfeeler

Last edited by djfeeler; 08/14/14 16:51.
Re: Combine multiple shader blur together [Re: djfeeler] #444602
08/14/14 22:32
08/14/14 22:32
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
I haven't looked into the code but this sounds like a job for multiple postprocessing shader stages (look into mtlView.c, stage, MATERIAL, VIEW in the manual)


Visit my site: www.masterq32.de
Re: Combine multiple shader blur together [Re: MasterQ32] #444611
08/15/14 05:19
08/15/14 05:19
Joined: May 2008
Posts: 257
D
djfeeler Offline OP
Member
djfeeler  Offline OP
Member
D

Joined: May 2008
Posts: 257
Thanks for your response ^^

I found how to do this.

Code:
#include <acknex.h>
#include <default.c>
#include <mtlView.c>

//****** Function main ******

void main()
{
	video_set(1920,1080,0,1);
	level_load("level.wmb");
	
	mtl_blur.skill11 = 25;
	pp_set(camera,mtl_blur);
	
	pp_add(mtl_sepia);
}



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