I Added Terrain Generation to My MINECRAFT Clone in C++ - OpenGL Gamedev - Devlog 3
Вставка
- Опубліковано 7 лют 2025
- The first 500 people to use my link skl.sh/kofybre... will get a 1 month free trial of Skillshare premium!
This time I added terrain generation to my Minecraft clone in C++ and OpenGL. I also used SFML for 2D terrain generation. I tried using the Perlin noise but I couldn't manage to make it work.
Previous part: • I Added 3D Lighting to...
Discord: / discord
Github: www.github.com...
Itch io: kofybrek.itch.io
Patreon: / kofybrek
Subreddit: / kofybrek
Twitter: / kofybrek
Code: / 114055036
This video is sponsored by Skillshare
#code #coding #programming
The first 500 people to use my link skl.sh/kofybrek10241 will get a 1 month free trial of Skillshare premium!
hello kofybrek
will see
k
Kudos for drawing the popcorn!
a
it starts looking like minecraft! im proud of you!!
fr
Looks cool! I saw that you care about performance. For better performance you could cull hidden faces, not just cubes (and if you aren't doing it yet, you could generate the chunks as single meshes, which results in fever draw calls, if you aren't doing any instancing). Maybe perlin noise would be faster than value noise, but I'm not sure about it, it surely heavily depends on the implementation.
EDIT:
I just saw that you tried to use perlin noise. You could use stb-perlin, which is very simple to use.
no, not one mesh for the whole world, if the whole world is a single mesh and you decided to update something then you have to update the whole world with it , instead you should generate a mesh for each chunk , each chunk updates its blocks and mesh , also this is good for frustum culling
@@walidyider7766 I just read my comment again, I meant a chunk, not the world, sorry I'm tired.
EDIT:
Not sure frustum culling is useful in his case because as far as I know it's quite expensive, it's only useful when handling very big amounts of voxels.
@@mibi88-code no no its not really expansive specially with AABB and sphere they are so fast, and the cost of using frustum culling for each chunk is lower than the cost of rendering the chunks themselves , you should know when to use it and not.
THIS IS MY FAVORITE CHANNEL!!! SUPER UNDERRATED
amazing video!!
didnt pay too much attention to the code, so idk if you know abt/tried placing the array on the heap. That should prevent the stack overflow :)
Awesome popcorn! I couldn't draw this well to save my life.
Why does this channel doesn't have 1 M subs??????? Amazing video
Good job on the noise implementation :D
Video is great, but I noticed that the popcorn is especially goog looking!
It helped me building this one .
Nice explain
ngl that popcorn looks so good!
Nice, popcorn drawing.
im happy, at least we got the terrain part of minecraft before he disappeared again lmao
0:28 in Minecraft there are cubes called sub-chunks, so its still similar to original
Seems cool, keep it up!
Awesome popcorn!!
I think adding frustum culling, Multithreading and using the power of GPU or iGPU will be a good optimization addon and you might even get libraries for that in c++.
Wow!!
nice popcorn
Great video.
6 nested loops is pro level 10x coder skills.
I love this channel. I love you, Kofybrek
Nice job ❤
7:09 germany spotted
wasted plug 0:12 harry styles
The mouse Kofybrek at 0:55 LOL
nice popcorn !
Nice
Nice popcorn tho
This is cool but the dirt and grass look completely deep fried
W vid
pretty cool, im also trying to make a similar thing using sdl2 i currently just added perspective projection and now trying to figure out how to map textures on the polygons do you have any ideas on how i can do that
Great popcorn
Se que no hablas castellano, pero solo quiero decirte que te quiero
Why didn't you use the more traditional face culling approach?
I did think about it. I just didn't have time to research it and write it. I'll probably do it in the next part.
@@Kofybrek I really hope you do! It isn't that hard, there are tutorials on UA-cam that explain it in under 15 minutes.
could you please share your linkedin profile ?
Second comment ( someone said not to comment first so yeah ....)
fifth comment
Such great video! I love your content :D
Especially this part: ua-cam.com/video/WTKvEgJj2Dk/v-deo.html
"Now you see, this is not a bug. The artist was clearly trying to express their deep feelings and desire--" 🤣
You know you can write the time code like this: 5:19
@@rhubarb5297 well now I do xD
Do it with faces hehehe not blocks hehe...
AND also do the trick with faces direction to not show faces that are behind!!!
This comment is to prevent someone comment "first"
This is the equivalent of people saying first
@@rhubarb5297 That's exactly what someone mad cuz they didn't get to comment "first" would say
first
I see a C++ Super Programmer, C# ⚔C++ who win?
Don't act like an amateur by comparing languages.
im cooler than you
2:43 So real. I should be coding and improving my coding skills but whenever i start a project im getting onto some shitty problem and i never come back to this. That is so frustrating and i dont know what should i do
Kudos for drawing the popcorn!