The POWER of COMPUTE SHADERS!!!

Поділитися
Вставка
  • Опубліковано 15 чер 2024
  • 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 T...
    • Coding Adventure: Comp...
    • Getting Started with C...
    • How To Code a Falling ...
    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: 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
  • Розваги

КОМЕНТАРІ • 91

  • @tilengasparic6765
    @tilengasparic6765 2 роки тому +14

    My thought process:
    - eh it's a kid
    - atleast he's funny
    - prob has around 1k-5k subs
    - *checks subs*
    - subs
    deserved, even tho I didn't learn how tf to make compute shaders lmao

    • @WillHessGameDev
      @WillHessGameDev  2 роки тому +2

      Thanks, even though I taught myself compute shaders I don’t feel like I’m knowledgeable enough to explain them. Some of the links in the description proved helpful to me if it helps.

  • @ReedHarston
    @ReedHarston 2 роки тому +4

    Great video!
    I’m looking forward to following your channel’s growth!

  • @2000legobrick
    @2000legobrick 2 роки тому +1

    Just found this channel, wonderful stuff! Can't wait to see where your programming adventures go.

  • @bharath2633
    @bharath2633 11 місяців тому

    Just discovered this and you just made me crazy interested in computer graphics. Will explore and learn more; hoping to see more from this channel. Keep up the good work! :)

  • @ehnlyten844
    @ehnlyten844 2 роки тому +3

    I wish I had access to those tools at your age. You have a gift, keep at it and I have absolutely no doubt it will pay off ten fold brother.

  • @furkanmeric7228
    @furkanmeric7228 2 роки тому +2

    This is a well written video. I will be following your steps buddy.

  • @prestonwillis9824
    @prestonwillis9824 11 місяців тому

    Wicked smart and entertaining video. Looking for more of this content! Good job!

    • @WillHessGameDev
      @WillHessGameDev  11 місяців тому

      Thank you so much! If you have any topics you want to see me explore, let me know!

  • @sapbucry
    @sapbucry Рік тому

    Awesome vid buddy, keep em coming !

  • @Jupilogy
    @Jupilogy 2 роки тому +3

    Thank you! I might try learning HLSL over Christmas.

    • @WillHessGameDev
      @WillHessGameDev  2 роки тому +2

      Yeah I’d recommend it. I had fun making the stuff in the video, but the one bad thing is that if you’re writing HLSL in visual studio, there’s no intellisense.

    • @chaotickreg7024
      @chaotickreg7024 2 роки тому

      How did it go?

  • @chatsnoirblamo
    @chatsnoirblamo 2 роки тому

    Yay so glad I found a new cool channel! You're great!

  • @forginbits5457
    @forginbits5457 2 роки тому +8

    Nice work ! If you like abstract art and compute shaders, I'd recommand looking into chaotic attractors :)

  • @simonkallay9149
    @simonkallay9149 2 роки тому

    Damn! Such a cool video! Your funny just got you another subscriber!

  • @thecolgatemann
    @thecolgatemann Місяць тому

    sick content, love it 🔥

  • @silvia-narity
    @silvia-narity 2 роки тому +3

    You're way too underrated, this was really fun

    • @WillHessGameDev
      @WillHessGameDev  2 роки тому +1

      Thank you!!!

    • @arvidniklasson3739
      @arvidniklasson3739 2 роки тому +2

      Yeah, I wasn't even looking for compute shaders but watched the whole thing for the vibes and fun. Keep it up Will.

  • @pauloviniciuscoral1128
    @pauloviniciuscoral1128 Рік тому

    Can't stop laughing of "the things you can do with compute shader" list!😂
    Great Video!

  • @brianhorn5639
    @brianhorn5639 2 роки тому

    Awsome job, very impressive video.

  • @ChaoticNeutralMatt
    @ChaoticNeutralMatt 2 місяці тому

    Fun style on the video.

  • @percycreeper2733
    @percycreeper2733 2 роки тому +3

    Good old Subnautica Music ;)

    • @WillHessGameDev
      @WillHessGameDev  2 роки тому

      Haha ofc!!

    • @antonaparin
      @antonaparin Рік тому

      When I watched this video, I thought this music sounds familiar, and then I remembered it's from Subnautica

  • @harrazmasri2805
    @harrazmasri2805 Рік тому

    mad stuff, i love it

  • @danieldousek1368
    @danieldousek1368 2 роки тому +1

    Not to brag but I’m your 50th subscriber!!! :)

  • @squirrelcarla
    @squirrelcarla 2 роки тому

    Awesome content!!!!

  • @dylanparkour
    @dylanparkour 2 роки тому +3

    I think it's pretty darn ok too Will

    • @WillHessGameDev
      @WillHessGameDev  2 роки тому

      Thanks! I think it’s pretty darn ok too Dylan

  • @jeffg4686
    @jeffg4686 2 роки тому

    Ever thought of working for Blender Foundation? I bet they'd be happy to get you on board. They're redoing particles as "nodes" and maybe they are already into compute - idk. But, bet they'd hire you. Any tutorial?

    • @WillHessGameDev
      @WillHessGameDev  2 роки тому +1

      Lol I’m definitely not smart/experienced enough to work for the blender foundation yet, and I also feel like I wouldn’t be able to find time to do it anyways but that that would be sick

    • @jeffg4686
      @jeffg4686 2 роки тому

      @@WillHessGameDev - You may be surprised. Everyone has their specialties. I bet they'd love to have someone into compute shaders. They wouldn't need you to know everything. Couldn't hurt to try.

    • @WillHessGameDev
      @WillHessGameDev  2 роки тому

      true, I'll defiantly keep that idea in my back pocket, Thanks!

  • @goaway4991
    @goaway4991 2 роки тому

    I've learned one thing: I need to learn compute shaders

    • @WillHessGameDev
      @WillHessGameDev  2 роки тому

      Some advice then, they can be confusing at the start and just watching videos on how they work won’t help nearly as much as just messing around with them and struggling with them. Good luck!

  • @mortaldev4999
    @mortaldev4999 2 роки тому +1

    Did u use unity with c# and hlsl ?

  • @Pockeywn
    @Pockeywn 8 місяців тому

    8:15 bro just implemented racism and classism in conways game of life?? 😭😭

  • @jeebs101
    @jeebs101 2 роки тому +1

    Definitely option A

    • @WillHessGameDev
      @WillHessGameDev  2 роки тому +1

      Wow... Did you really just doubt my programming skills Jeevan????

    • @jeebs101
      @jeebs101 2 роки тому

      @@WillHessGameDev Neverrrrr

  • @Slackermanz
    @Slackermanz 2 роки тому +5

    Good video, and clear explanations! Got a sub from me!
    Also, if you're interested in Multiple Neighborhood Cellular Automata, I'd be happy to chat with you or offer any insights/code I might have in that regard :)

    • @WillHessGameDev
      @WillHessGameDev  2 роки тому +2

      Thanks for subscribing!!! I actually came across your channel when I was doing research for MNCAs and I was absolutely blown away with how crazy the results can look! Very impressive. And anyone else who happens to read this, check slakermanz out if u wanna see MNCAs done right

  • @tanchienhao
    @tanchienhao 2 роки тому +1

    cool stuff! can you make the code available please? I just started trying out shaders too :)

    • @WillHessGameDev
      @WillHessGameDev  2 роки тому +1

      Thank you! I’d be more than happy to make the code available, however I’ve never done it and have no idea what the easiest way for you to access it. I’ve seen code on places like git hub so is that the go to place? And also good luck on your compute shaders endeavors!

    • @tanchienhao
      @tanchienhao 2 роки тому

      @@WillHessGameDev yep github is the goto place for code sharing for projects! For single files u can use pastebin

    • @WillHessGameDev
      @WillHessGameDev  2 роки тому

      Alright, cool! I will definitely do this. It might not be up until tomorrow night and just a warning the code will most likely be a complete disaster. I never thought people would be interested in seeing it lol but I hope it will be helpful.

    • @WillHessGameDev
      @WillHessGameDev  2 роки тому

      Hey! I just uploaded the files to github, I hope I did everything right. Heres the link: github.com/WillHess3/Compute-Shaders-Video-Code its also in the description. I hope its helpful!

  • @mickyr171
    @mickyr171 Рік тому

    I keep trying to learn this stuff with no success, been programming since 1997 all different languages but cant seem to wrap my head around compute shaders, maybe im too old now lol

    • @WillHessGameDev
      @WillHessGameDev  Рік тому

      I feel that. Now, about one year later, I can confidently say I have no clue how to make / effectively use compute shaders. Obviously when I made the video I had some idea but after a year of not doing something, you tend to forget all about it lol.

    • @mickyr171
      @mickyr171 Рік тому

      @@WillHessGameDev Its a shame, i use processing which is a java based platform for vector flow fields and cellular automata but just doesnt have the power im looking for like compute shaders do, ill keep tackling them until they make sense lol, took me a few years to fully wrap my head around vector math now they make perfect sense, hoping compute shaders click the same way

    • @WillHessGameDev
      @WillHessGameDev  Рік тому +1

      Well, good luck with your compute shader journey! If you have any questions feel free to ask, but again IDK how much help I'll be lol

  • @swalscha
    @swalscha Рік тому +1

    Hey 👋 I just discover your channel, I love it ! Sub +1
    Do you have some references to share for someone also interested in learning compute shaders?
    Btw, if you want $10^21 arts, you should try to simulate reaction-diffusion systems, that's cool stuff 😉

    • @WillHessGameDev
      @WillHessGameDev  Рік тому

      Off the top of my head I remember starting by following along with a tutorial from game dev guide (UA-cam channel) and then I just searched around UA-cam to find other random compute shader tutorials. I would practice by making them and would make the result more complex each time. So biggest thing is practice. I recall finding some good tutorials by some less popular channels but I totally forget who they are, so make sure you don’t overlook videos based solely on view counts. I found Sebastian Lague’s videos helpful to but only for getting ideas for things to do next rather than figuring out how to do something if that makes sense. His videos felt more edutainment than educational but there definitely worth a watch if you haven’t already. Hope this helped! I also left a few helpful links in the description so those might help.

    • @swalscha
      @swalscha Рік тому

      @@WillHessGameDev thank you for taking the time to answer me and sharing your refs, it's really appreciated!
      I totally agree with you about Sebastian Lague's videos. It's nice to discover his projects but it isn't meant to follow along as a tutorial.
      If you have the knowledge for and are looking for some video ideas, I would love to see someone compare (stressed tests) unity DOTS system and compute shaders, or even try to use both in a game.

    • @WillHessGameDev
      @WillHessGameDev  Рік тому +1

      @@swalscha No, thank you for watching, subscribing, and leaving an insightful comment :) Regarding the video idea you had, I know literally nothing about unity dots and would have to obviously learn how it works before making that kind of video, but if one day I learn it well enough I’ll consider this. It sounds interesting at least.

  • @DaminGamerMC
    @DaminGamerMC 2 роки тому

    Pareciera que tienes 15 años menos que yo pero tienes 30 años mas de experiencia.

  • @MrDaanjanssen
    @MrDaanjanssen 2 роки тому

    I'm still hungry! Get back to programming

  • @Jkauppa
    @Jkauppa Рік тому

    sus

    • @WillHessGameDev
      @WillHessGameDev  Рік тому

      Ngl thinking back on this event, the teacher was definitely the sus imposter and sabotaged the game…

  • @matthewexline6589
    @matthewexline6589 Рік тому

    Kinda neat, but you really just showed off your experiments and never bothered to give any explanation as to how to write compute shaders . Kudos for experimenting with such advanced stuff at such a young age; that's promising for you, but if you want to grow your fanbase on youtube, you might want to consider how to make videos that an interested audience might be able to actually learn from. I'm not trying to sound overtly critical; this is meant to be constructive criticism. More info on *how* a person can go about writing interesting compute shaders would go a lot further than "this is all the random compute shaders I decided to make while playing with computer shaders so that I could learn how to write them.". You know more about compute shaders than I do, which is why I'm surfing youtube looking for vids to explain the concepts better. The video was interesting but imo not useful as far as giving info about shaders. Guess it just depends on what you were going for. I was expecting to see the code behind the shaders at some point, at which I was hoping to hear details on what variables did what, etc.

    • @WillHessGameDev
      @WillHessGameDev  Рік тому +1

      Thanks for watching and taking the time to write this. At that time my channel was in a weird spot, where most of the people watching me were family / friends and not other game developers, so I thought if I made a video about compute shaders and showed all of the code part they wouldn't watch, resulting in youtube not showing the video to other people. I didn't really expect for the video to get as many views as it did (mainly coming from people like you searching for it (I assume at least)). I definitely agree that the video isn't the most helpful if you were looking for a step by step tutorial for how they're made. I hope you eventually found what you were looking for, and thanks again for being so respectful and civil with your criticism, I appreciate it!

  • @stephenkamenar
    @stephenkamenar 2 роки тому

    you've learned everything about compute shaders, except how to pronounce it

  • @saturn7_dev
    @saturn7_dev Рік тому

    i think you may be dreaming too much....your work is basic - nothing great, try making something new that's actually useable like say in a computer game then you might get some interest.

    • @WillHessGameDev
      @WillHessGameDev  Рік тому

      Thanks for the support buddy! Challenge accepted! 🙃

  • @borzonstudios8638
    @borzonstudios8638 2 роки тому +1

    Hey, great video! I'm a fellow dev, it would be great to share contact details (discord perhaps?) and collaborate on something. Or even just share some knowledge

    • @WillHessGameDev
      @WillHessGameDev  2 роки тому +2

      First of all, thank you so much for watching and commenting! It means a lot, and if you wanted to get in touch, you can dm me over Instagram. Unfortunately I don’t use discord but probably should but as of now Instagram is the best way to contact me. Between work and school I doubt I’ll have a lot of time to do any collaborations but I’d definitely be interested in talking. It’s @will_hess_yt

    • @borzonstudios8638
      @borzonstudios8638 2 роки тому

      @@WillHessGameDev Great, will add you!

    • @WillHessGameDev
      @WillHessGameDev  2 роки тому

      So I actually just made a discord account, been meaning to do that for a while now, and it’s “Will Hess#9883”. So if you’d rather use discord I’d be fine.

    • @borzonstudios8638
      @borzonstudios8638 2 роки тому

      @@WillHessGameDev perfect, i'll add u on there