UGOTAG | Videos with Chapter Markers  
  
× ANCIENT WORLD ANIMALS AQUARIUM ARCHERY ARCHITECTURE ART ARTIFICIAL INTELLIGENCE AUDIO BOOKS AVIATION BABY BEAUTY BIG THOUGHTS BIKING BIOLOGY BIRDS BLOCKCHAIN BUSINESS AUTOMOTIVE CATS CHRISTMAS COLD WAR COMPUTER SECURITY CRAFTS CRIME STORIES CRYPTOCURRENCY CSGO DIGITAL COMBAT SIMULATOR DINOSAUR DOGS EASTER ECONOMICS ELECTRONICS ENGINEERING ENVIRONMENT FAR CRY 5 FARMING FASHION FISHING FITNESS FOOD & DRINK FORTNITE BATTLE ROYALE FREEDOM OF SPEECH FUNNY GAMBLING GAMING GARDENING GEOPOLITICS GOD OF WAR GUITAR GUNS HALLOWEEN HARRY POTTER HEALTH & WELLNESS HISTORY YOUR HOME HOME REPAIR HOMEBREW INSECTS INTERESTING KIDS KITCHEN KNITTING LAWNCARE LEGO LIQUOR LOCKSPORT MARKETING MARTIAL ARTS MATH MENS STYLE MINECRAFT MOBILE DEVICES MOTORBIKES MOVIES MULTIPLICATION MUSIC MYSTERY NEUROSCIENCE OLYMPICS ORGANIZATION OUTDOORS PETS PHILOSOPHY PHOTOGRAPHY PHYSICS PI DAY POLITICS POTTERY PRIVACY PROGRAMMING PSYCHOLOGY RECIPE RED DEAD REDEMPTION RELAXING RELIGION REMOTE CONTROL ROCKCLIMBING SCI FI SCI FY SCIENCE SHOOTING SPORTS SKATEBOARDING SPECIAL FORCES SPEECHES SPORTS STAR WARS STEM STPATRICKS STYLE TECHNOLOGY THANKSGIVING TOYS TRAVEL TV VALENTINE'S DAY WAR WEDDING WOODWORKING WW1 WORLD WAR 2
HOME  |  TECHNOLOGY  |  HEALTH  |  FOOD  |  MORE

Episode Markers
  • 00:07
     
    #Programming Minecraft with C++ and OpenGL   
    In this video I'm going to be attempting to create Minecraft from one week using C++ and OpenGL. Of course this video greatly inspired by the Minecraft in one week programming challenge in Unity 3D by Shane Beck . So anyways the first day was mostly spent getting your C++ OpenGL boilerplate code out of the way... So, the first step of any opengl program is to get something to Draw onto the window so what I just did is created the model class which represents a draw OpenGL object... now the next step is to get some shaders to work where shaders are little programs that run on GPU which tell OpenGL how to process the vertices and fragments are seen for example giving stuff color see the quad is now orange So next step is to get shaders to work with textures which is very important because the Minecraft game would be very boring looking if there was no textures on the blocks. So the next step is to make the scene look 3D because of course Minecraftis a 3D game. This is a simplest doing some Matrix magic in the vertex shader which essentially converts the 3D vertex positions were seen Into by basically the 2D screen coordinates which makes it appear 3D. Likely for me there's a library which handles all the matrix math fully which makes scene 3d very easy So that's what the boilerplate out the way, and that was time to implement some gameplay such as a first-person camera. Programming Minecraft with C++ and OpenGL
  • 01:56
     
    #Programming Minecraft Blocks   
    And now it's time to implement some gameplay such as a first person camera can be seen in action right here. I created a cube renderer to you know render a cube. And this is obviously needed because the Minecraft world is made out of blocks which are cube shape. And then it was time to implement the Minecraft game itself starting off with the block system... a shell around the chunk which has the blocks and the block textures on it As per usual the first test of the mesh building didn't go very well at all so something has to be done about this. But now it's time to continue so now that I've got a single chunk section of an area of 16 by 16 by 16 Blocks to draw Programming Minecraft Blocks
  • 05:44
     
    #Programming Minecraft layers   
    However, it was now time to get the game to actually look like Minecraft. For example making the top layer grass the bottom three layers dirt and then the rest stone. Essentially it sends out the rays in the playerscurrent position and where hit the block of the players pressing the left mouse button It breaks that block however when they block changes in the chunk that means regenerating the sections... the first test exactly go great because you could clearly see the edges of the skybox and to make matters worse you could actually fly to the edge and go outside of it... is because getting rid of the view Matrix multiplication also got rid of the view matrixes on like Rotation which means the sky was not rotating so it fix this I've re-added a view Matrix once again Programming Minecraft layers
  • 10:05
     
    #Programming Player Objects Inventory   
    the time was that when you break a block it would add that block into the players inventory and when you place a block The it would remove the item so today I created multiple classes in first class which essentially holds data about whole tool materials. The second class was itemstack which essentially holds information about how many items are in a stack and a player sort of holds an array of these items stack objects and then the player dig events or handles was how the bloacks are removed and added into the player's inventory. Now honestly my implementation probably wasn't perfect but to be fair it is my first time doing something like this. I felt like I did an ok job and this can be see in action right now Programming Player Objects Inventory
  • 12:09
     
    #Minecraft Programming Optimizations   
    In the console layer I'm printing out how long it takes to build mesh. Here you can see it with the optimizations turned off where it's taking multiple milliseconds to build a chunk Which is not good and then with the optimizations turned on you can see it's taking a fraction of milliseconds ... can be seen here where the biome map was created using some very basic noise. This was the first tests were are spawned right into a desert with some grasslands in the background of course for now. But unfortunately the whole world is black, but luckily I know why the opengl typically only actually works in one throat so if you could openGL functions from two separate threads then you go Minecraft Programming Optimizations

Programming Minecraft with C++/OpenGL in One Week

Source: https://github.com/Hopson97/MineCraft-One-Week-Challenge ~~~~~ Download: NOTE: This MIGHT NOT WORK ON AMD CARDS i have no idea why, it just doesn't seem to work, sorry. Nvidia works fine. however. Note: Performance issues are excepted as this was made in only a week https://drive.google.com/open?id=0B-bhEaACRE65ZU5YSkZnU0RPZEE For a version that is more optimised and has some kind of collisions working: https://drive.google.com/open?id=0B-bhEaACRE65WF8ydkROS1hEMTg Note that this version WAS NOT made in a week, but rather more like 10 or 11 days ~~~~~~ Hello! In this video, I attempt to create a simple voxel game/ Minecraft clone in a single week. It doesn't have the best performance or the most features; but of course, there is only so much you can achieve in a single week. Hope you enjoy! Music: --Day one-- Stickerbrush Symphony - Donkey Kong Country 2: Diddy's Kong-Quest https://www.youtube.com/watch?v=W8zIaaU






Community tags: gaming minecraft     HOME     SIGN UP     CONTACT US