Information

Author:
    aeron
Rating:
    10 (3 votes)
Type:
    Example
Language:
    C/C++
Reviews:
    None
Submitted:
    February 26, 2013
Dev - DB/form (refering to updated - check code)
Download:
    DOWNLOAD (489)
Dev - make AJAX
Screenshots (5)
Dev - Also, on form submission, use GD to resize the image as a new thumbnail file
Dev - In the submission form, you can now upload a banner image
Psychic
Psychic is a program for viewing special animations implemented in GLSL. After including the proper uniforms, a normal fragment shader can be loaded and animated on screen. The speed of the animation can be adjusted and reversed. Psychic also supports seamless editing, automatically updating the loaded shader when changes to the source are made on the disk.

This is more of a prototype for what I envision this project to become, so configuration is still minimal. Eventually it will support rendering to disk, loop points, and a modular editor / custom file format, but this is all still in the works. For now, you're stuck writing the shaders by hand, but that doesn't mean they're any less fun to tweak ;)

If you don't know where to start, just look through the included shaders and poke around. Change some contants, replace cos with tan, take the square root, whatever your heart desires. If you don't know GLSL, fear not. When you think you've got the jist of it, start writing your own from scratch! And feel free to post it in the comments here. I'd love to see what others can come up with.

Oh, and if you have any suggestions for features to add, post them as well. Same with bugs, though I hope no one comes across any in normal operation.

Edit: Minor update. Cleaned up some of the included shaders, and added a modified Programmer's Notepad (portable) that supports GLSL syntax highlighting / keyword completion (so you have a better default editor than notepad).

Also, I'm working on refactoring the code, which will be made available on Github when I can get it to a more organized state.


Target platforms:



HOLY SHIT

IT TOOK ME A WHILE TO REALIZE YOU COULD DO GIFS FOR SCREENSHOTS

I GENUINELY THOUGHT THOSE WERE JUST REALLY GOOD OPTICAL ILLUSIONS

So I ran it and I starting drooling

Then I found the edit button and discovered the secrets of the universe

I have no idea what this actually does but I don't care

10/10 my wowies were zowied.
Posted by panzercretin February 28, 2013 19:12 - 1.6 years ago
| [#1]

It's beautiful...
Posted by melee-master February 28, 2013 20:24 - 1.6 years ago
| [#2]

Quote
IT TOOK ME A WHILE TO REALIZE YOU COULD DO GIFS FOR SCREENSHOTS

I GENUINELY THOUGHT THOSE WERE JUST REALLY GOOD OPTICAL ILLUSIONS

HOLY SHIT, HE'S RIGHT.

HAHAHAH I'm doing this for all my games now.
Posted by Kilin March 01, 2013 2:44 - 1.6 years ago
| [#3]

that was pretty entertaining 10/10
Posted by SteveKB March 01, 2013 13:23 - 1.6 years ago
| [#4]

All I see is a white screen. Hmm, so sad. It looked so tasty, too :(
Posted by Flea1991 March 02, 2013 11:46 - 1.5 years ago
| [#5]

Hel was having the white screen problem as well. In my experience, a white screen means the shader failed to compile.

Running the program from the command line should allow you to see the specific errors in the console.

Perhaps your graphics card is incompatible with the way version of shader SFML is trying to bind. OR, another possibility is that your card just has a picky shader compiler. I recently realized my poor coding style left a bunch of type mismatch errors in all the shaders but my card typically doesn't complain about them so they went unnoticed. You might have some luck after fixing these manually (Add a decimal point to all the constant integers that are added/multiplied/divided with float values, etc.). Let me know if you still can't get it to run.
Posted by aeron March 02, 2013 14:27 - 1.5 years ago
| [#6]

Recent Activity
 
Active Users (0)