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 / GLSL Learning

Author
Message
MateiSoft
12
Years of Service
User Offline
Joined: 22nd Oct 2012
Location:
Posted: 31st Dec 2018 15:00
Hello community,

Is there any good payed or free (anything) tutorials or courses that I can follow on creating shaders and effects but that are also compatible with AppGameKit?

Thank you!
www.alexmatei.com
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 31st Dec 2018 15:30

The http://glslsandbox.com/ is a great place to start with 2D glsl shaders
and https://www.appgamekit.com/documentation/guides/13_shaders.htm
will help with what you need to change to get them to work in AGK

I also have this https://forum.thegamecreators.com/thread/222027 which
has shaders by me on it.

And the shader thread https://forum.thegamecreators.com/thread/214598
has many that the community have shared and got help etc. The thread is quite long
but there are many shaders and another good place to start

As for tutorials there are many GLSL tutorials online but none aimed at AGK
fubar
Golelorn
8
Years of Service
User Offline
Joined: 20th Nov 2016
Location:
Posted: 31st Dec 2018 16:33 Edited at: 31st Dec 2018 16:36
Nothing will be 100% applicable to AppGameKit, because the variable names will be different. But they are usually closely named.

So first start here(https://www.appgamekit.com/documentation/guides/13_shaders.htm) to learn the variable names. Or, at least, read it, and keep in mind what AppGameKit calls the world matrix, world normal matrix, the projection matrix, view matrix, and projection view matrix. posVarying and uvVarying are also extremely important variables that are passed to the pixel shaders(a variable passed from the vertex shader to the pixel shader is called a varying ). They are usually referred to as fragPos and texCoords in a lot of tutorials.

This is my favorite intro I have come across.
https://learnopengl.com/Introduction

While Unity doesn't use GLSL it is very close, and once you become familiar with GLSL you should be able to port it over pretty easily.
I recommend this after a bit of GLSL experience:
https://catlikecoding.com/unity/tutorials/rendering/


GameGuru has lots of shaders, and Janbo's shader pack. These are all excellent resources to learn.

PSY
Developer
8
Years of Service
User Offline
Joined: 3rd Jul 2016
Location: Laniakea Supercluster
Posted: 2nd Jan 2019 02:37
Shadertoy is also a good place to start

https://www.shadertoy.com/view/Md23DV


PSY LABS Games
Coders don't die, they just gosub without return
puzzler2018
User Banned
Posted: 2nd Jan 2019 12:52
I did a thread of building some too, taken from gslsandbox and made them load within code

https://forum.thegamecreators.com/thread/222754


MateiSoft
12
Years of Service
User Offline
Joined: 22nd Oct 2012
Location:
Posted: 4th Jan 2019 12:37
Thank you guys for the resources! I'll immediately go learning!
www.alexmatei.com

Login to post a reply

Server time is: 2024-11-23 09:17:49
Your offset time is: 2024-11-23 09:17:49