In this video, I explore the Power of Compute Shaders!!!
I start off learning the basics of programming in HLSL or high level shader language because its slightly different than programming in c#. HLSL and C# are both C based programming languages so the learning shader language wasn't too difficult.
Next I followed some compute shader tutorials to learn the basics of compute shaders in unity. One compute shader tutorial I watched showed that the CPU is much slower at large calculations than the GPU with colored boxes, and the second compute shader tutorial was about fractals.
Now I started writing some compute shaders by myself. The compute shaders I first started making weren't supper interesting, but very important for me to learn the basics of compute shaders.
I then took the dificulty up a bit with my compute shaders by adding agents and giving them blurs. In the process I may have made centillions of dollars by creating abstract art that I could see a filthy rich person buying as an nft.
After this I thought of an application of my new skill of writing compute shaders. In my statistics class we played a game called greedy piggy, and I programmed the game as a compute shader and ran over a million rounds because of it. This got me the correct strategy but I didn't end up winning. You'll have to watch the video to find out why though...
I then stumbled upon cellular automaton and thought it would be cool to try and program Conway's Game Of Life. After that, I added other colors to the game of life to see what would happen. I then looked into multi neighborhood cellular automata, and got some interesting but not crazy looking results. If I spent more time on it maybe I could've programmed new rules into the compute shader with the multi neighborhood cellular automata, but my interest shifted towards voronoi textures, aka worley noise, aka cellular noise.
Here are some tutorials / useful links I used (and remembered to jot down if you were curious on exploring the power of compute shaders yourself:
• Unity Compute Shader Tutorial - The M...
• Coding Adventure: Compute Shaders
• Getting Started with Compute Shaders ...
• How To Code a Falling Sand Simulation...
Chapters:
0:00 Intro
0:40 Learning with Tutorials
1:15 Writing some by Myself
2:14 Using compute shaders to make art
4:20 Greedy Piggy
7:06 Cellular Automata
9:38 Outro
Code: https://github.com/WillHess3/Compute-...
This is the first time I ever shared code via github and I have no clue if this is even remotely the best way to do it. I got a comment saying they'd want to see the code. Any suggestions on ways I can make this easier for you guys to see the code are very much appreciated. Also I tried literally putting the project folder in but that didn't work. Lastly the code is a disaster because I never expected anyone to see it soooo sorry in advance.
Subscribe: / @willhessgamedev
Instagram: / will_hess_yt
If you have any questions DM me over Instagram
Смотрите видео The POWER of COMPUTE SHADERS!!! онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Will Hess 24 Ноябрь 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 14,645 раз и оно понравилось 638 людям.