GLSL shader games month (30 games)

I ported some GLSL shader games from Shadertoy to Blender.
I will try to post every day a new shader game.
Because all games needs a FBO (except the first one) I have chosen UPBGE.

Here are my top 30, starting from simple (and buggy) to the eye candy ones.

  1. https://blenderartists.org/forum/showthread.php?435870-Key-Quest-GLSL-shader-game (need Blender not UPBGE)
    https://www.dropbox.com/s/zjol9fcuyzgvv4i/KeyQuestThumb.jpg?dl=1

  2. https://blenderartists.org/forum/showthread.php?435891-Find-the-restroom-GLSL-shader-game-UPBGE
    https://www.dropbox.com/s/8t3ctr4thistekm/FindTheRestroomThumb.jpg?dl=1

  3. https://blenderartists.org/forum/showthread.php?435942-Sapce-Invaders-GLSL-shader-game-UPBGE
    https://www.dropbox.com/s/btw7dhsab0qmfc3/SpaceInvadersThumb.jpg?dl=1

  4. https://blenderartists.org/forum/showthread.php?436003-Atari-puzzle-GLSL-shader-game-UPBGE
    https://www.dropbox.com/s/jovlmvjsk172zka/AtariPuzzleThumb.jpg?dl=1

  5. https://blenderartists.org/forum/showthread.php?436057-Quasi-Billiards-GLSL-shader-game-UPBGE
    https://www.dropbox.com/s/6zy7b8pphuawki1/QuasiBilliardsThumb.jpg?dl=1

  6. https://blenderartists.org/forum/showthread.php?436100-Sokoban-(Can-you-solve-me-)-GLSL-shader-game-UPBGE
    https://www.dropbox.com/s/dwnhusrnfjy4470/SokobanThumb.jpg?dl=1

  7. https://blenderartists.org/forum/showthread.php?436146-Bullet-Hell-GLSL-shader-game-UPBGE
    https://www.dropbox.com/s/8fnyoupx96gsn88/BulletHellThumb.jpg?dl=1

  8. https://blenderartists.org/forum/showthread.php?436187-Pacman-GLSL-shader-game-UPBGE
    https://www.dropbox.com/s/xvl67dzzx2k2nfz/PackmanThumb.jpg?dl=1

  9. https://blenderartists.org/forum/showthread.php?436236-Lunar-Lander-GLSL-shader-game-UPBGE
    https://www.dropbox.com/s/z9qib0c1vu72w1u/LunarLanderThumb.jpg?dl=1

  10. https://blenderartists.org/forum/showthread.php?436287-Snake-Game-GLSL-shader-game-UPBGE
    https://www.dropbox.com/s/btqfbyqc8rwvgb4/SnakeThumb.jpg?dl=1

  11. https://blenderartists.org/forum/showthread.php?436332-Minesweeper-GLSL-shader-game-UPBGE
    https://www.dropbox.com/s/ivoot8omozjp72k/MinesweeperThumb.jpg?dl=1

  12. https://blenderartists.org/forum/showthread.php?436382-Racing-Concept-GLSL-shader-game-UPBGE
    https://www.dropbox.com/s/u11uuancukoz2bv/RacingConceptThumb.jpg?dl=1

  13. https://blenderartists.org/forum/showthread.php?436439-Racing-Concept-(in-car)-GLSL-shader-game-UPBGE
    https://www.dropbox.com/s/mtslxxeb0mz5j1q/RacingConcept%28in%20car%29Thumb.jpg?dl=1

  14. https://blenderartists.org/forum/showthread.php?436509-Adventure-Game-GLSL-shader-game-UPBGE
    https://www.dropbox.com/s/y2tqvnt0a9vg614/AdvnetureGameThumb.jpg?dl=1

  15. https://blenderartists.org/forum/showthread.php?436571-2D-Verlet-Physics-Stunt-Car-Game-GLSL-shader-game-UPBGE
    https://www.dropbox.com/s/l6p44lx1w79bw1t/2DVerletPhysicsStuntCarThumb.jpg?dl=1

  16. https://blenderartists.org/forum/showthread.php?436621-Bricks-GLSL-shader-game-UPBGE
    https://www.dropbox.com/s/4uzqu8btucip3jf/BriksThumb.jpg?dl=1

  17. https://blenderartists.org/forum/showthread.php?436667-Pinball-GLSL-shader-game-UPBGE
    https://www.dropbox.com/s/k61cwz8rqj11u45/PinballThumb.jpg?dl=1

  18. https://blenderartists.org/forum/showthread.php?436718-Tetris-GLSL-shader-game-UPBGE
    https://www.dropbox.com/s/4fsxvycz7dydq74/TetrisThumb.jpg?dl=1

  19. https://blenderartists.org/forum/showthread.php?436752-Aliens-vs-Humans-GLSL-shader-game-UPBGE
    https://www.dropbox.com/s/xefztuwomntw1eb/AlienVsHumansThumb.jpg?dl=1

  20. https://blenderartists.org/forum/showthread.php?436825-Power-line-GLSL-shader-game-UPBGE
    https://www.dropbox.com/s/2nxqtuwutuvjdcp/PowerLineThumb.jpg?dl=1

  21. https://blenderartists.org/forum/showthread.php?436864-Adrift-GLSL-shader-game-UPBGE
    https://www.dropbox.com/s/ghgvsq6hceulg9g/AdriftThumb.jpg?dl=1

  22. https://blenderartists.org/forum/showthread.php?436923-Shader-Rally-GLSL-shader-game-UPBGE
    https://www.dropbox.com/s/xpdmo80jozslt8o/ShaderRallyThumb.jpg?dl=1

  23. https://blenderartists.org/forum/showthread.php?436974-HyperTunnel-GLSL-shader-game-UPBGE
    https://www.dropbox.com/s/l5nwlatr42u8usw/HyperTunnelThumb.jpg?dl=1

  24. https://blenderartists.org/forum/showthread.php?437037-Boulder-Dash-GLSL-shader-game-UPBGE
    https://www.dropbox.com/s/gkfnjvdkl5s8d21/BoulderDashThumb.jpg?dl=1

  25. https://blenderartists.org/forum/showthread.php?437097-Contra-GLSL-shader-game-UPBGE
    https://www.dropbox.com/s/jeuaq6o97urd78x/ContraThumb.jpg?dl=1

  26. https://blenderartists.org/forum/showthread.php?437138-Strubble-Bobble-GLSL-shader-game-UPBGE
    https://www.dropbox.com/s/t7fdegsp9qedle0/StrubbleBobbleThumb.jpg?dl=1

  27. https://blenderartists.org/forum/showthread.php?437193-Pixel-Shader-Dungeon-GLSL-shader-game-UPBGE
    https://www.dropbox.com/s/gqsi1nmxdfnq2nz/PixelShaderDungeonThumb.jpg?dl=1

  28. https://blenderartists.org/forum/showthread.php?437266-Escape-the-Gamegrid-GLSL-shader-game-UPBGE
    https://www.dropbox.com/s/r01nfnzvk5kbvdk/EscapeTheGamegridThumb.jpg?dl=1

  29. https://blenderartists.org/forum/showthread.php?437329-Crossy-Renguin-GLSL-shader-game-UPBGE
    https://www.dropbox.com/s/c79uxbt2x0hf79a/CrosssyPenguinThumb.jpg?dl=1

  30. https://blenderartists.org/forum/showthread.php?437375-Candy-Crush-GLSL-shader-game-UPBGE
    https://www.dropbox.com/s/uvn6yv5ai8vp4kn/CandyCrushThumb.jpg?dl=1

HG1

Wait what? So the meshes in the second demo for instance, they’re generated on the fly?

Yes, everything will be generated procedural. Everything based on mathematically calculated primitives which are added, subtracted, intersected, modified or blended.
http://iquilezles.org/www/articles/distfunctions/distfunctions.htm
More exciting 3D examples coming soon.

Wow :open_mouth: this is interesting.

These are awesome. Surely you’re using some sprites / textures for Contra and Bubble Bobble. Will inspect some of these for sure. Thanks for sharing btw.

I guess providing a tutorial for this would be very hard?

Another one already asks me the same question.

Normally you don’t do whole games in GLSL. Or generate the textures with it.
The normal way is to draw a 3D wire frame mesh or 2D images and load this into the graphic card. And only use the material shader to texture it or make same kind of 3D fake lighting effect (like normal mapping). After the image is rendered the 2D image, 2D filters effects (like bloom) are added.

It is not easy to explain it only with written words. The best would be that you look some GLSL coding videos or read some tutorials.
You can find a lot of material in the internet.
If you want to generate objects and textures in the shader you need to know some basic trigonometry, linear, curve and quadratic functions.

Here are some videos (from IQ) how to paint with math.



If you want 3D raymarching you can use this basic functions.
http://iquilezles.org/www/articles/d…tfunctions.htm

Shadertoy Basics (can be used as BGE 2D filter)
https://gamedevelopment.tutsplus.com…ers–cms-23313

Blender material shader.
https://en.wikibooks.org/wiki/GLSL_Programming/Blender

HG1

The thirtieth and last game is up now.

great and interesting work :cool:

Updated SoundCloud ID to get the games working with music again.