I Went on a Shader Adventure

  Рет қаралды 22,467

DaFluffyPotato

DaFluffyPotato

Күн бұрын

Пікірлер: 64
@DaFluffyPotato
@DaFluffyPotato 2 жыл бұрын
Ignore my curly braces. lol
@snesmocha
@snesmocha 2 жыл бұрын
um, just a fair warning for shaders, branch prediction and if statements are generally frowned upon due to if statements tanking performance of shaders dramatically, i'd suggest simply creating the shader then creating the logic outside in cpu to prevent the gpu from being forced to do if statement stuff
@DaFluffyPotato
@DaFluffyPotato 2 жыл бұрын
Since my games are pixel art, branch statements aren’t a concern. I can write a ton of spaghetti and get away with it due to the low fragment count.
@snesmocha
@snesmocha 2 жыл бұрын
@@DaFluffyPotato ah, I see, although just be careful of that in the future if you make more complex shaders, I remember this one time on a pixel art game that this stupid shader brought performance down nearly 30% from my garbage code lol
@yaazarai
@yaazarai 2 жыл бұрын
@@DaFluffyPotato for future reference. For your "baseColor," if statements you can just do "baseColor += texture2D(...).a" and after all of the direction checks just do: baseColor = vec4(...) * sign(baseColor). No branches, simplified code.
@NILLANEAB
@NILLANEAB Жыл бұрын
consider your braces ignored 😂
@notdouglas1966
@notdouglas1966 2 жыл бұрын
smart guy talks about complicated stuff way over my head for 10 minutes
@somebody31415
@somebody31415 2 жыл бұрын
Listen to the smart people that talk about complicated things that you don’t understand as much as you can! After a little while, you will understand! Sometimes, you should try doing the things that you don’t understand because it’s something that you aren’t comfortable with and that is exactly where learning happens!
@somebody31415
@somebody31415 2 жыл бұрын
To be honest, I don’t really understand this either… and I’m absolutely not taking down to you! It’s more like I’m giving myself a pep talk by saying it to you
@duckle3152
@duckle3152 2 жыл бұрын
@@somebody31415 I like the way you think
@russkydeutsch
@russkydeutsch 2 жыл бұрын
@@somebody31415 got a question for you. I'm learning programming (python, and now JS). I'm not an expert, only a beginner. I wanted to ask you about how you gain knowledge in programming: Is there a bad way to learn things? More specifically: I don't know any of the things DFP talks about, but I feel like I'm cheating if I learn to do something in programming that I didn't teach myself. Does that make sense?
@somebody31415
@somebody31415 2 жыл бұрын
@@russkydeutsch I’m not sure if I am the person who you should ask, I am anything but an expert. My programming knowledge is a combination of a few college courses and a lot of messing around on my own and teaching myself. At the best, it’s a quilt I have crafted mostly on my own. At the worst, it’s an idiot mostly bumbling about and groping in the dark.
@kingdev8688
@kingdev8688 2 жыл бұрын
The polish in this game is already crazy, can't wait to see what the game will look like finished
@petthepotat
@petthepotat 2 жыл бұрын
wowie its sSHADEARS!!!! 1. dat screenshake be saucy 2. dat ability be kinda saucy 3. shaders are most saucy 4. shaders r yummy 5. dat pygame opengl module is quite saucy love your content! you've been a great inspiration!!! next up: I implemented ray tracing? XD
@skysurfer_kon1641
@skysurfer_kon1641 2 жыл бұрын
You were actually the inspiration to the pygame community to start on shaders. Because of you, lots of people are adding their own documentation and implementations of shaders in pygame. I also think that perhaps you could use a normal blur shader for the bloom as the lens flare looks a bit dirty/smudged... it's nice to test, but I think the normal bloom has a cleanness to it. Really hope you add documentation or the frag/vert code someday!
@CarloObrad
@CarloObrad 2 жыл бұрын
hi man ive been watching since ur tutorials and im happy to see that ur channel has grown big time, hope u get to 50k soon
@SpacEagle17
@SpacEagle17 2 жыл бұрын
Great video. Your background shader gave me some inspiration for my own project. Shaders are fun
@ContagiousIP
@ContagiousIP 2 жыл бұрын
DFP, I can’t help but to congratulate you on how brilliant you are. I’m almost out of college, and I used to program religiously in python but lost the motivation a couple years ago. Recently I decided to commit and make my own game, and I stumbled upon your older videos which have helped so much. When I was in my teens I wanted so bad to grasp concepts of programming but couldn’t find any direction or passion, so I waited until I was in college. To be so talented is something I can only dream of. I hope you continue your game dev journey because you’re awesome, dude.
@Simon-ik1kb
@Simon-ik1kb 2 жыл бұрын
because of this guy I got back to python after a long time. I published couple games with Unity, made even some decent money from them. But I never enjoyed the process with engines like Unity. So now Im learning Pygame :D Not planning anything serious, just enjoying the process so much! Love this channel.
@AngelGonzalez-yy8dh
@AngelGonzalez-yy8dh 2 жыл бұрын
This guy is the reason why I know how to make games now
@mantiz192
@mantiz192 2 жыл бұрын
Everything looks great. I'm a huge fan of the blur and how it looks currently. However, I feel as if the background effect may be too busy and distracting. I find it hard to visually separate the foreground objects from the background. At 7:40 the roof structure and some of the foreground platforms can he lost to the background. I do like the shapes of the background, but I think the lighter colours of it need to be changed or maybe increase the overall size of the noise. Altogether though, I love the look, I just think the background needs some changes.
@Schnief
@Schnief 2 жыл бұрын
You're incredibly inspiring. please keep up the great work!
@fablefallen
@fablefallen 2 жыл бұрын
Not gonna lie since I'm new to all this stuff I find myself just watching you explain things that go over my head and show code that I just nod pretending that I have some idea what I'm looking at 😁
@somebody31415
@somebody31415 2 жыл бұрын
I’ve just recently started programming again and I appreciate the tutorials! I’m wondering if you would consider a really nerdy video tutorial on best practices for people who are not infants, but are also not wizards? Maybe something for those of us that have a lot to learn, but don’t want to ever take another college class again even if it kills them?
@DaFluffyPotato
@DaFluffyPotato 2 жыл бұрын
I’m still learning “best practices”. I may make a video about structuring games at some point though.
@somebody31415
@somebody31415 2 жыл бұрын
@@DaFluffyPotato Trust me, you know way more about best practices than I do! I came to programming through other venues, the physics and math professors are not interested in teaching you how to program, they just want you to make the computer solve the problem! I did have a couple of good professors who were interested in programming techniques, but most just said use Maple or Mathematica
@somebody31415
@somebody31415 2 жыл бұрын
Maybe something on better practices would be the order of the day?
@glitchedpixelscriticaldamage
@glitchedpixelscriticaldamage 2 жыл бұрын
A true passionate man. GZ 2 U!
@LookiePookie
@LookiePookie 2 жыл бұрын
great video!
@Kapcpa
@Kapcpa 2 жыл бұрын
Because of your first shader video i went on a quite a shader journey myself, learned alot of opengl and write my own version of your "opengl x pygame" engine, so thanks a lot because i probably wouldnt do any of that stuff
@JumpCatStudio102
@JumpCatStudio102 2 жыл бұрын
The if else in shader can be turned in to step/smoothstep function. It is better for shader and looks to me it will handle what you want just fine.
@smellyfrog2463
@smellyfrog2463 2 жыл бұрын
hype
@lupusnupus4887
@lupusnupus4887 2 жыл бұрын
How is this not viral yet
@graphicscode850
@graphicscode850 2 жыл бұрын
the day this game will finally release is the day that geometry dash 2.2 will release
@ZgavY
@ZgavY 2 жыл бұрын
Nah, even though this is impressive, GD Shaders are more complex than this
@kunsterman
@kunsterman 2 жыл бұрын
Buddy, please don't stop of creating videos never. Pygame is real thanks to you. My humble opinion.
@tuhkiscgibin6627
@tuhkiscgibin6627 2 жыл бұрын
We have sharerinos baby!
@freaper2048
@freaper2048 2 жыл бұрын
3:39, if-conditional branching is not inheritably bad but is slow and dumbs performance. There's a guide by theorangeducks that avoids shader conditionals. Helpfully this helps; I can't post links otherwise KZbin deletes them
@yasser7077
@yasser7077 2 жыл бұрын
can you pls show us how u convert your games to executables
@badgraphix9659
@badgraphix9659 2 жыл бұрын
I see a lot of if and else statements in your shader code. Might wanna remove these because they can impact performance sometimes. Maybe the compiler removes these branches, but I would get rid of them manually to be sure.
@spenceabeen
@spenceabeen 2 жыл бұрын
Gonk!
@themathforyou
@themathforyou Жыл бұрын
Wait a sec, if the gpu is idle (in means of calculations), does that mean I could use that to handle trig functions (like atan2) instead of using the cpu
@boxhead-zk7sn
@boxhead-zk7sn Жыл бұрын
Pls can you point on any example or documentary on pygame and shader
@DaFluffyPotato
@DaFluffyPotato Жыл бұрын
I have a tutorial on my channel.
@walkingpuppy3282
@walkingpuppy3282 2 жыл бұрын
When you gonna make a tutorial that covers shaders and opengl
@asterix...
@asterix... 2 жыл бұрын
Hey I really hope I can get your attention because there's something that I really don't get how you did, in your platformer with the sword how did you make the slashing? How did you do the collisions, I really want to learn to code stuff like that I just don't get it.
@DaFluffyPotato
@DaFluffyPotato 2 жыл бұрын
Animations and masks
@asterix...
@asterix... 2 жыл бұрын
@@DaFluffyPotato Thanks I'll check out your masks video
@desenhonopapel6931
@desenhonopapel6931 2 жыл бұрын
10:13 That chat is pretty sus 🧐
@joaovictor388
@joaovictor388 2 жыл бұрын
Relatable hmm commit
@papafranku5780
@papafranku5780 2 жыл бұрын
Hello, wh doy do u use numbers for the color and not just rgb?
@simonmaracine4721
@simonmaracine4721 2 жыл бұрын
OpenGL deals with colors in RGBA as usual, but in the range 0.0-1.0 (floats) instead of 0-255 (integers).
@abrarmasumabir3809
@abrarmasumabir3809 2 жыл бұрын
Where can I learn game physics? Please recommend me something.
@chigstardan7285
@chigstardan7285 2 жыл бұрын
Try pymunk
@costelinha1867
@costelinha1867 2 жыл бұрын
I must confess that it's still weird as fuck the idea of Potato using a language that involves curly braces and semi-colons in game development. But then again, that's due to him basically becoming "The Pygame Channel" to me. And this is still related to Pygame so...
@arbitervildred8999
@arbitervildred8999 9 ай бұрын
everything gives errors.... not even the basic tutorial from the video, and the examples in the git repository also blow up
@DaFluffyPotato
@DaFluffyPotato 9 ай бұрын
It depends on versions of a bunch of different things. This wasn't supposed to be a tutorial. See my ModernGL video if you want a tutorial since that's what I use for shaders now.
@arbitervildred8999
@arbitervildred8999 9 ай бұрын
omg, I'm sorry. I don't know how my comment got on your video, I was watching a completely different channel. Your stuff all good
@farpurple
@farpurple 2 жыл бұрын
So these game is pygame????
@the9tailsupersaiyan
@the9tailsupersaiyan 2 жыл бұрын
First lol
@nynx8269
@nynx8269 2 жыл бұрын
Fourth
@helengallagher7886
@helengallagher7886 2 жыл бұрын
𝕡𝕣𝕠𝕞𝕠𝕤𝕞 💕
How Games Make VFX (Demonstrated in Godot 4)
5:46
PlayWithFurcifer
Рет қаралды 379 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
Prioritize Polish Over Content
15:04
DaFluffyPotato
Рет қаралды 34 М.
Modern OpenGL Tutorial - Compute Shaders
11:27
Victor Gordan
Рет қаралды 65 М.
I'm making a VR Game Engine in Python
10:00
DaFluffyPotato
Рет қаралды 42 М.
Side-effects of doing VERY long runs in Noita
10:24
FuryForged
Рет қаралды 385 М.
Adding PLAYER ABILITIES to my Metroidvania - Devlog
8:02
Alex K.
Рет қаралды 5 М.
7 Examples Proving Shaders are Amazing
8:09
DesignCourse
Рет қаралды 45 М.
I Beat Minecraft From One Grass Block
35:27
Beppo
Рет қаралды 7 МЛН
BREAKING RobTop Levels with a PATHFINDING BOT!
14:16
Sdslayer
Рет қаралды 54 М.
Hand drawn is easier than pixel art | HD graphics vs low-bit vs Hi-bit
10:00
Adding Realistic Shadows to my 3D Python Game
8:26
DaFluffyPotato
Рет қаралды 30 М.