Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Fullscreen Shader?

Author
Message
easter bunny
12
Years of Service
User Offline
Joined: 20th Nov 2012
Playing: Dota 2
Posted: 5th Nov 2015 07:09
Trying to get shaders to work, never used them before so I don't have a clue what I'm doing lol.
I just want a simple pixel shader, just do a full screen blur that I can change the magnitude of. Seems pretty easy but I don't have a clue what to do. It looks like I need to use LoadFullScreenShader( ) but every time I use that I get issues, something about linking the pixel shader to the vertex shader. I'm using a shader that I found on the UCS project, go it working with sprites, but can't get it to work here.
Could anybody give me example of how to get LoadFullScreenShader() to work? If you could do it with a blur shader too that would be great

Thanks,
EB

Audacia Games - Latest WIP - AUTOMAYTE 2.1, AppGameKit one click deploy to Android
130,000 installs with AppGameKit and counting
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 5th Nov 2015 16:52
Here's a fairly basic example:
https://forum.thegamecreators.com/thread/213336
Using AppGameKit V2 Tier 1
easter bunny
12
Years of Service
User Offline
Joined: 20th Nov 2012
Playing: Dota 2
Posted: 5th Nov 2015 23:16 Edited at: 5th Nov 2015 23:17
Thanks the shader is compiling properly now, but I don't have a clue how to actually get it to render haha.

As far as I can figure out, I need to call CreateObjectQuad() , and use SetRenderToImage() to render to the Quad. Not exactly sure how to get it to display though... Could you point me in the right direction? or maybe just dump some working code here so I can figure it out haha


EDIT: Wow turns out the forum search function works haha. Found a few threads about it that helped a tonne.
I did actually use the search function before I posted this thread but I searched for "shader" which didn't give me any useful results. Searching for "fullscreen" worked much better

Audacia Games - Latest WIP - AUTOMAYTE 2.1, AppGameKit one click deploy to Android
130,000 installs with AppGameKit and counting
randalldall
9
Years of Service
User Offline
Joined: 30th Oct 2015
Location:
Posted: 12th Nov 2015 10:07
It's userful for me too

Login to post a reply

Server time is: 2024-11-25 15:18:03
Your offset time is: 2024-11-25 15:18:03