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 / Flames Shader

Author
Message
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 12th Jan 2015 16:39 Edited at: 12th Jan 2015 16:40
Found a cool wobbly shader on glslsandbox. Tweaked it to look like flames! This is my first attempt at playing with shaders. FUN!



vertex.vs


pixel.ps


main.agk


Attachments

Login to view attachments
JLMoondog
Moderator
15
Years of Service
User Offline
Joined: 18th Jan 2009
Location: Paradox
Posted: 12th Jan 2015 16:44
Wow, very nice. I've been looking into creating a cool backdrop for my Starvenger game, mind if I throw this in to see how it looks?

<a href="http://www.slidedb.com/games/kayak-escape" title="View Kayak Escape! on Slide DB" target="_blank"><img src="http://button.slidedb.com/popularity/medium/games/34310.png" alt="Kayak Escape!" /></a>
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 12th Jan 2015 16:57
It's not mine. I found it on glslsandbox.com and messed around with it to work with AGK. I think it's about time I learnt a bit about shaders. It would look smart as a backdrop though wouldn't it! Maybe with game logo in silhouette to start with before fading up? Oh baby!

V2 T1 (Mostly)
Uzmadesign
unlikely
12
Years of Service
User Offline
Joined: 5th Mar 2012
Location: Ohio, USA
Posted: 12th Jan 2015 16:58
Quote: "Maybe with game logo in silhouette to start with before fading up? Oh baby!"


That'd look pretty rad.

Using AppGameKit v2 T1 + T2!
Systems: Primary: Mac OS X 10.10
Secondary: Windows 7
JLMoondog
Moderator
15
Years of Service
User Offline
Joined: 18th Jan 2009
Location: Paradox
Posted: 12th Jan 2015 17:00
I was thinking the same thing! Lol

<a href="http://www.slidedb.com/games/kayak-escape" title="View Kayak Escape! on Slide DB" target="_blank"><img src="http://button.slidedb.com/popularity/medium/games/34310.png" alt="Kayak Escape!" /></a>
unlikely
12
Years of Service
User Offline
Joined: 5th Mar 2012
Location: Ohio, USA
Posted: 12th Jan 2015 17:05
And then a highlight moving across the logo once it's faded up!

Using AppGameKit v2 T1 + T2!
Systems: Primary: Mac OS X 10.10
Secondary: Windows 7
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 12th Jan 2015 17:22
Yeah! Made with those amazing looking normal map shaders I've seen around here recently! (here)

V2 T1 (Mostly)
Uzmadesign
george++
AGK Tool Maker
17
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 12th Jan 2015 21:02
It is not run for me
I am getting a Message: "Tried to draw a shader that is not valid"
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 12th Jan 2015 21:39
Are you using V2?

V2 T1 (Mostly)
Uzmadesign
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 12th Jan 2015 22:31
Here's the image I used. Not sure if it makes much difference. Make sure the image, and shader files are in your media folder.

V2 T1 (Mostly)
Uzmadesign

Attachments

Login to view attachments
george++
AGK Tool Maker
17
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 13th Jan 2015 20:51
Quote: "Make sure the image, and shader files are in your media folder."

The shader files, were not in the media folder
It works now, thanks!
Jukuma
21
Years of Service
User Offline
Joined: 18th Nov 2003
Location: Germany
Posted: 14th Jan 2015 01:16 Edited at: 14th Jan 2015 01:36
Nice! You can use "agk_time" or "agk_sintime" as uniform
in the pixel shader. Then you must don't from outside.

Login to post a reply

Server time is: 2024-11-25 15:31:17
Your offset time is: 2024-11-25 15:31:17