Adding Realistic Shadows to my 3D Python Game

  Рет қаралды 28,738

DaFluffyPotato

DaFluffyPotato

Күн бұрын

Пікірлер: 89
@DaFluffyPotato
@DaFluffyPotato 4 ай бұрын
To be clear, I meant that the concept behind shadowmapping is easy to understand, but coding it is more difficult (which is why I said "the implementation takes more thought"). If you're interested in implementing shadowmapping yourself, LearnOpenGL.com has a good tutorial: learnopengl.com/Advanced-Lighting/Shadows/Shadow-Mapping Also, wishlist Yawnoc: store.steampowered.com/app/2824730/Yawnoc :)
@unconcernedbeast9190
@unconcernedbeast9190 4 ай бұрын
how did you learn pygame
@Sashim1X
@Sashim1X 4 ай бұрын
DaFluffyPotato: Ahh yes its pretty easy anyone can understand Proceeds to pull up the code to the matrix
@DaFluffyPotato
@DaFluffyPotato 4 ай бұрын
The code for this one is quite complex, but the shadowmapping concept itself is rather simple.
@Sashim1X
@Sashim1X 4 ай бұрын
@@DaFluffyPotato ahhh yes shadowmapping mhm ---- *Frantically grabs dictionary*
@zellenny1784
@zellenny1784 4 ай бұрын
​@@Sashim1X LMAO imagine not knowing that haha panics cus cant find definition for 'depth buffer'
@nmflash8
@nmflash8 4 ай бұрын
someone who doesn't have a good grasp on coding will tell you what they are learning is complex and difficult, I often find the smarted developers will say what they are doing is simple and easy, you just have to learn the right languages and tools.
@DaFluffyPotato
@DaFluffyPotato 4 ай бұрын
When I say the concept, I specifically mean the idea of comparing what the player sees to what the light sees. At the top level, it's very simple. It just gets more complicated as you break it down (depth buffers, transformation matrices, framebuffers, etc.).
@plvr_strg
@plvr_strg 4 ай бұрын
Man, I think you've become so experienced dev you got "the curse of knowledge" cognitive bias, cause this is not easy.
@DaFluffyPotato
@DaFluffyPotato 4 ай бұрын
The code isn't, but the concept is. I was referring to the concept.
@therealbfg123
@therealbfg123 4 ай бұрын
AYOOOOO, YOU GOT A FUCKING SPONSOR!! LETS GOOOOOOOOOOOOOO
@theattic0098
@theattic0098 4 ай бұрын
I can't believe I caught this so fast. I love graphics programming.
@protosevn
@protosevn 4 ай бұрын
Next time someone says you can only make games with C/C++ or that interpreted languages are too slow I'll just link them this, excellent job!
@atiedebee1020
@atiedebee1020 4 ай бұрын
The problem starts when you start doing things that are even slightly more CPU dependent. Just like you wouldnt decode audio using python, its a lot slower to do things like chunk generation with it. Although i am sure most languages that are at least compiled will get adequate performance for these use cases, not just C/C++.
@protosevn
@protosevn 4 ай бұрын
@@atiedebee1020 yeah you’re right, just tired of people thinking C/C++ is the only way, I use C++ just because that’s the golden standard but it’s not the only fast language around the block anymore.
@TheSugarCherryDev
@TheSugarCherryDev 4 ай бұрын
​@@protosevnThats why I started use love2D and lua, and I got a lot of things to work on this, like an Engine and a programming language. sometimes I need C if I want low level control but most of the time, I use pure lua
@6IGNITION9
@6IGNITION9 2 ай бұрын
That grayscale foggy hills scene is a really nice aesthetic.
@Trojan073
@Trojan073 4 ай бұрын
Any video that aims to make a Minecraft style game is a banger tbh
@theyummydogo
@theyummydogo 4 ай бұрын
Voxel engines with teeny tiny voxels that have a color rather than a texture and use high definition scans of real world places must the coolest applications of voxel rendering.
@LoggyDev
@LoggyDev 4 ай бұрын
Bro, i love your worth ethic so much.
@6IGNITION9
@6IGNITION9 2 ай бұрын
"I'm doing that thing you're not supposed to do" You mean the thing Notch did? Turned out pretty well for him ;)
@costelinha1867
@costelinha1867 4 ай бұрын
FluffyPotato showcasing his projects while also desperately trying not to come across as just flexing.
@stoppls1709
@stoppls1709 4 ай бұрын
Congrats on the brilliant sponsor, love the tutorials
@mkdoz
@mkdoz 4 ай бұрын
this was very fun to watch :)
@xzippyzachx
@xzippyzachx 4 ай бұрын
Shaders go brrrrrrrrrrrrrrrrrr
@cinnamon3556
@cinnamon3556 4 ай бұрын
i cant begin to understand how youre doing this in python, its amazing, great job
@gracechan3039
@gracechan3039 4 ай бұрын
I’m not at a level to understand a lot of what you’re talking about but I like hearing you break down the concepts. Also, if this was the first video of yours I saw I could easily say, easy for him. He’s a genius. Maybe you are a genius but also, from your videos it’s clearly a lot of hard work for over ten years building on top of itself. It feels like a really candid view of how a talented normie becomes S tier.
@3ler4never
@3ler4never 4 ай бұрын
You should do a tutorial series, and show off everything you can make. This stuff is cool
@surgeonofdeath01
@surgeonofdeath01 4 ай бұрын
bro you are so good !!!!!
@seffffee1333
@seffffee1333 3 ай бұрын
If this game was a rts type strategy game like EU4 & total war & Vic 2 & manor lord I’d buy it and play it forever especially if it has mods and possible planet jumping ect
@Overlycomplicatedswede
@Overlycomplicatedswede 4 ай бұрын
My dude finally getting sponsors and pulling in the big money 🗣️ congrats
@Skeffles
@Skeffles 4 ай бұрын
This looks fantastic, although sounds like a huge project. How long are you expecting to work on this?
@DaFluffyPotato
@DaFluffyPotato 4 ай бұрын
Just a little on the side here and there. I don't have a specific end point in mind.
@ceo-potato
@ceo-potato 4 ай бұрын
bros brain is bigger than my head
@noTmeDev
@noTmeDev 4 ай бұрын
Bro is cooking as always
@Booshly
@Booshly 3 ай бұрын
Great vid mate
@sizzlet01
@sizzlet01 4 ай бұрын
Do you ever plan to release your planet generator like the rest of your games? I'd love to take a peek into how something like that is even done.
@DaFluffyPotato
@DaFluffyPotato 4 ай бұрын
It's on my Patreon
@aecl4287
@aecl4287 4 ай бұрын
Even though I don’t use python nor do I plan on doing so, I just can’t get enough of your videos man. Keep up the amazing work! ❤🎉
@vortexstudios_echo
@vortexstudios_echo 4 ай бұрын
i would reccomend getting mojo installed, its python and even backwards compatible but alot faster, im 99% sure ur using vs code and that even has its own mojo sdk!
@BloxedZ3R0
@BloxedZ3R0 3 ай бұрын
🔥
@arturmanarindejesus8950
@arturmanarindejesus8950 3 ай бұрын
Im planing to enter the game dev world, but i dont know the right way to approach... As you recommended, ill do It by the scratch, but what language should i use? Is python a useful 2d & 3d gaming language? Should i try some C# or C++? Thank ya and srry If my english sucks, its not my native language.
@ImaLearner-vr3gy
@ImaLearner-vr3gy Ай бұрын
Hi, how did you begin game dev? Im having a problem saving up for my game dev setup
@codecaine
@codecaine 4 ай бұрын
Nice work
@IvanPopelyshev
@IvanPopelyshev 4 ай бұрын
Is your point of origin fixed? In infinite world you have to shift shadow matrix correctly, otherwise there's unstability of shadows when the sun goes down
@DaFluffyPotato
@DaFluffyPotato 4 ай бұрын
It doesn't move in this demo, but it will in the project I'm working on next.
@The_Pabloburrito
@The_Pabloburrito 4 ай бұрын
I love your videos, youre such a huge inspiration for me! As always, great video!
@Pythonista24x7
@Pythonista24x7 4 ай бұрын
What are you using for networking? Websockets or custom stuff?
@DaFluffyPotato
@DaFluffyPotato 4 ай бұрын
My own framework built on sockets.
@HA11EYS_COM3T
@HA11EYS_COM3T 4 ай бұрын
Hey just saying it would be better to use fractal perlin noise as that would generate more natural and good-looking landscapes and is what Minecraft itself uses iirc
@official-phuh
@official-phuh 4 ай бұрын
I wonder if the GLSL and python coding could be combined into a usable shading module that could be pip installed for the less... "DaFluffyPotato" of us
@DaFluffyPotato
@DaFluffyPotato 4 ай бұрын
ModernGL is very easy to use. I have a tutorial for it.
@astrogamercraft
@astrogamercraft 3 ай бұрын
What resources did you use to get a 3d scene to render in moderngl?
@DaFluffyPotato
@DaFluffyPotato 3 ай бұрын
learnopengl.com
@cosmicdive
@cosmicdive 4 ай бұрын
Damn you're a wizard!
@KDDFKUFEI
@KDDFKUFEI 2 ай бұрын
What’s about performance
@Moltenbacon-t2k
@Moltenbacon-t2k 4 ай бұрын
how often do you use higher level math in basic game development?
@DaFluffyPotato
@DaFluffyPotato 4 ай бұрын
once every other month for what I do. almost never for "basic" stuff.
@StepTheGlow
@StepTheGlow 4 ай бұрын
bro u literally teach us better than 1 month of teacher lol
@zeperoxx
@zeperoxx 4 ай бұрын
You're insane
@gabrielward7289
@gabrielward7289 4 ай бұрын
i love you your the best
@Generic_Games
@Generic_Games 4 ай бұрын
Good vid
@Inkety
@Inkety 4 ай бұрын
The background music is Blue Dream by Cheel
@DaFluffyPotato
@DaFluffyPotato 4 ай бұрын
That's not the original. It's Blue Dream by Cheel.
@Inkety
@Inkety 4 ай бұрын
@@DaFluffyPotato oh, okay. that's where I found it first.
@S0ggyW3tW4t4r
@S0ggyW3tW4t4r 4 ай бұрын
Ok soo thats what a shader is
@epicgeometro
@epicgeometro 2 ай бұрын
Woah woah woah since when does python use semicolons?
@DaFluffyPotato
@DaFluffyPotato 2 ай бұрын
Those are shaders
@epicgeometro
@epicgeometro 2 ай бұрын
@@DaFluffyPotato oh okay I was very confused
@jeremynaumann3055
@jeremynaumann3055 4 ай бұрын
shadowmapping now seems to be less complex but plz try ray-tracing because it needs less buffers for some cool effects like reflections,transperency,shadows and portals.. you can stylize raytracing too that it looks like minecraft. or add it as a option. a compute raytracer isn't too hard to implement if you use ChatGPT
@Lighter7900music
@Lighter7900music 4 ай бұрын
Haven't watched the video yet but I see no python but C#
@lamanqo834
@lamanqo834 4 ай бұрын
Making a minecraft clone in python with moderngl is very frustrating and challenging, i suggest switching to c++ while you still can, it is much harder but offers so many more features.
@DaFluffyPotato
@DaFluffyPotato 4 ай бұрын
no
@lamanqo834
@lamanqo834 4 ай бұрын
@@DaFluffyPotato ok
@ImaLearner-vr3gy
@ImaLearner-vr3gy Ай бұрын
Lol. C++ fan, trying to change programming history by giving advice
@lamanqo834
@lamanqo834 Ай бұрын
@@ImaLearner-vr3gy xd
@obinho71
@obinho71 4 ай бұрын
I don't think you could say this is "just Python"... But it is remarkable anyway.
@brockdaniel8845
@brockdaniel8845 4 ай бұрын
Python, now I know why my pc burns with these mods 😮
@judef
@judef 4 ай бұрын
Minecraft mods aren’t in python
@DuoDevs-Studios
@DuoDevs-Studios 4 ай бұрын
hay how was your day?
@DaFluffyPotato
@DaFluffyPotato 4 ай бұрын
busy
@DuoDevs-Studios
@DuoDevs-Studios 4 ай бұрын
@@DaFluffyPotato i know that feeling lol just rember to take time to youself :)
@Merserissugoi
@Merserissugoi 4 ай бұрын
pls make a minecraft mmo.. i would hand over all my money
@dlanodspot
@dlanodspot 4 ай бұрын
First... I guess😂
@senex_0372
@senex_0372 4 ай бұрын
Bro stop it!! You are way too far. I’m feeling stupid
@totoshampoin
@totoshampoin 4 ай бұрын
When you said "actually just python", I expected you to replace glsl with python. Disappointed.
@3edr
@3edr 4 ай бұрын
9 views in 1 minute bro fell off
I made Games with Python for 10 Years...
28:52
DaFluffyPotato
Рет қаралды 335 М.
💩Поу и Поулина ☠️МОЧАТ 😖Хмурых Тварей?!
00:34
Ной Анимация
Рет қаралды 1,8 МЛН
Pygame's Performance - What You Need to Know
9:11
DaFluffyPotato
Рет қаралды 203 М.
My game is 262,000 times faster than Minecraft. I'll show you how.
12:20
IGoByLotsOfNames
Рет қаралды 967 М.
The Strange Graphics Of LETHAL COMPANY
15:59
Acerola
Рет қаралды 846 М.
Much bigger simulation, AIs learn Phalanx
29:13
Pezzza's Work
Рет қаралды 2,7 МЛН
Better Mountain Generators That Aren't Perlin Noise or Erosion
18:09
Josh's Channel
Рет қаралды 378 М.
What Is A Graphics Programmer?
30:21
Acerola
Рет қаралды 425 М.
Bedrock. Why?!
22:37
FundyLIVE
Рет қаралды 349 М.
How I designed Fruit Ninja
22:58
Luke Muscat
Рет қаралды 6 МЛН
Coding Adventure: Simulating Fluids
47:52
Sebastian Lague
Рет қаралды 1,8 МЛН