@pietepiet Game dev stream raids or riot ヽ༼ຈل͜ຈ༽ノ FrankerZ Kappa (Today)

RT @psychicteeth: I've just released Cottage of Doom, and it's 75% off for the Halloween weekend! GET IT OR ARE YOU SCARED t.co/o6Pw… (Today)

@rustym Yeah it's like "You got +150XP for doing something in the game, now your gun has +10% accuracy!" (Today)

@siegarettes I think Valve just focuses on making a really solid experience so playing the game itself is addicting. (Today)

@TheKazvon I'm sure that's coming some time after the game comes out x_x (Today)

@Anlysia Not familiar with Payday, but it's really similar to the modern Battlefield system. t.co/WMp1VbCehD (Today)

@siegarettes Yeah you level up your abilities based on XP you get from playing. t.co/WMp1VbCehD (Today)

I'm so mad about this because Evolve looked like a super fun asymmetrical multiplayer game, and it's fucked by a stupid progression hook. (Today)

@KurpUnderscore Cosmetic stuff, sure, whatever, but shit that effects the core game balance by how long you've played? Fucking bullshit. (Today)

Was pretty excited about Evolve until I saw the player progression screen. Fuck this stupid time sink for better shit bullshit fuck. >:I (Today)

@isabelboyd @VancouverAqua aahhhhhhhh <3 (Yesterday)

@adventureface the eternal spirit of macho man randy savage watches over you (Yesterday)

@infinite_ammo @MattThorson nooo it okay don't be anxiety t.co/9StKYrUHWu (Yesterday)

@amora_b @Chris_Rock @konjak AND THIS! t.co/MNY5O1dEsg (2 days ago)

@phubans consider yourself training in 100x gravity (2 days ago)

Coin Crypt is out on Steam now and you should def check out that hotness t.co/c9I5QnxS5Q (2 days ago)

@infinite_ammo @TommyRefenes @BeeMickSee and then eventually mr plinkett will review a movie that we're all in #endgame (2 days ago)

@BeeMickSee @TommyRefenes @infinite_ammo YES INFINITY WARS IS HAPPENING 2 MOVIES FUUUUUUCK (2 days ago)

@infinite_ammo Hahah this is like the opposite of how I feel about all of these movies. * o * (2 days ago)

@aeiowu being greg wohlwend (2 days ago)

follow
search

2013 - 6 - 5 / 1:14 pm / tools

Some Shader Resources

Some Shader Resources

As I've been messing around with C# and SFML, one of the major benefits is the support for shaders! I've been crawling the internet trying to find examples of shaders, but for awhile all I could find were types like this that created entire images, or produced super elaborate effects that I wasn't really interested in.

Image

After a quick trip to Twitter I realized that what I was looking for were post processing shaders. I want to be able to adjust an image that I've already drawn for the most part, instead of creating new imagery. A lot of people gave me suggestions (mostly Sven) so here's a quick list of what was found!

GeekXLab
There's a handful of post processing shaders here that all look pretty neat, but unfortunately I can only get some of them to work with SFML right off the bat. Others throw errors that I don't yet know how to diagnose. They also have some software you can use to demo the shaders in, which is pretty rad! A couple of them worked right off the bat, like Thermal Vision, Dream Vision, and Pixelation, but the rest I have to mess with to figure out.

nVidia Shader Library
It turns out the nVidia site has a bunch of shader examples but unfortunately none of them seem to be in GLSL. The CgFX shaders should be able to compile into GLSL though. I haven't personally tried any of the shaders here, but it seems like a good sampling.

Image

hunterk GLSL Shaders
Somewhere a mysterious mediafire folder full of shaders exists. This one was pointed out to me by Loren, and I haven't dug too deeply into this yet. It's a lot easier to browse the sites that have previews of all the shaders, but it looks like there's a lot of cool stuff to be found in the depths of these files.

Shaders for Game Programmers and Artists
This book was recommended by Sven, and the fact that it might be also geared toward artists is interesting. This was published in 2004 and I'm not sure how much has changed in the world of shaders since, and I'm also unsure on how much focus there is on post processing vs. other types of shaders in here, but maybe worth a look!

Pixel Art GLSL Shading
I was also pointed in the direction of this beautiful piece of work which uses shaders to light pixel art in an incredibly good looking way. I haven't checked out the real time demo yet, but just that preview image looks absolutely delicious!

Photoshop Blend Mode Math
Of course there is this classic post about Photoshop GLSL shaders that I first started looking at in the early days of Snapshot development. I really wanted Photoshop blending modes since I do all of my art in Photoshop anyway. I haven't tried these out in real time yet in SFML, but it looks promising!

Image

That's all I got so far! I'll see what happens in the coming weeks in shader town. I've had some fun just pixelating and blurring and warping stuff so far. One of my next game projects in C# will be having a lot of special effects (I hope) so I need to become a shader master as soon as possible. If you know of any awesome resources not featured here please let me know!

Oh also here's a pro tip for writing shaders: don't use Visual Studio C#. It seems to be adding funky white space characters that causes the shader compiler in SFML to fail. So on that topic, what is an awesome shader IDE?

1 Comment
Avatar

2013 - 6 - 5 11:11 PM

Tim Romero

Edit in your browser with WebGL, see changes in real time, plus tons of code examples: https://www.shadertoy.com/

Less practical but still a fun toy to have: an iPhone/iPad GLSL editor: http://glslstudio.com/

An unfortunately iOS-only reference app: http://graphicscodex.com/

Nvidia has FX Composer ( https://developer.nvidia.com/fx-composer ) though it doesn't support GLSL.

UDK has an interesting node-based visual material editor if you want to try something completely different.

Avatar

Post your comment!

POST COMMENT

about

About

Hi there, my name is Kyle, and I'm a 27 year old kid with adult powers. I'm making video games and living the indie game developer life in Tempe, Arizona. Here you will find my thoughts, games, websites, doodles, and other stuff like that. I worked on Snapshot, Offspring Fling, and a whole bunch of other games. I also created and maintain Otter, a 2d game making framework. If you want to get a hold of me use the form on the bottom of the page, leave a comment, or just tweet at me. I try to post three times a week. Thanks for stoppin' by! You're the coolest.

facebook

videos

Do you want to make a Let's Play of one of my games, or a just a video featuring footage of my games? You have my full permission to do so! Even if you are monetizing your videos, you still have my full permission to use any footage from any of my games. Go for it!

contact

Your message has been sent! Thanks :)
SEND MESSAGE