Learn Three.js while building a 3D game with physics
In this course, we create a 3D game with physics. We will use Three.js to generate the 3D graphics and Cannon.js to simulate physics in this game. This tutorial is primarily for beginners.
If you haven’t used these libraries before don’t worry. This is an introductory course both for Three.js and Cannon.js. We will go through everything in detail. We go through, how to set up the scene, how to add lights, how to set up the camera, how to add animation and event handlers, and finally, we will add physics. The only thing you need to be familiar with is JavaScript, but we won’t do anything crazy with that either. So if you have a basic understanding of JavaScript, and you want to learn Three.js then this is a good start.
👉 You can find the whole game and its source code on Codepen: https://codepen.io/HunorMarton/pen/MWjBRWp
0:00 Introduction
1:11 A first example
1:56 A scene with a box
3:16 Lights
5:31 Camera options
9:09 The renderer
10:20 Setting up our game
15:10 Event handling and animation
19:30 Splitting a box
27:40 Adding physics with Cannon.js
34:44 Next steps
The game in the video is heavily inspired by the mobile game Stack: https://apps.apple.com/us/app/stack/id1080487957
Website — http://hunormarton.github.io/
CodePen — https://codepen.io/HunorMarton
Twitter — https://twitter.com/HunorBorbely
#threejs #cannonjs #javascript #game #codepen
Видео Learn Three.js while building a 3D game with physics канала Hunor Márton Borbély
If you haven’t used these libraries before don’t worry. This is an introductory course both for Three.js and Cannon.js. We will go through everything in detail. We go through, how to set up the scene, how to add lights, how to set up the camera, how to add animation and event handlers, and finally, we will add physics. The only thing you need to be familiar with is JavaScript, but we won’t do anything crazy with that either. So if you have a basic understanding of JavaScript, and you want to learn Three.js then this is a good start.
👉 You can find the whole game and its source code on Codepen: https://codepen.io/HunorMarton/pen/MWjBRWp
0:00 Introduction
1:11 A first example
1:56 A scene with a box
3:16 Lights
5:31 Camera options
9:09 The renderer
10:20 Setting up our game
15:10 Event handling and animation
19:30 Splitting a box
27:40 Adding physics with Cannon.js
34:44 Next steps
The game in the video is heavily inspired by the mobile game Stack: https://apps.apple.com/us/app/stack/id1080487957
Website — http://hunormarton.github.io/
CodePen — https://codepen.io/HunorMarton
Twitter — https://twitter.com/HunorBorbely
#threejs #cannonjs #javascript #game #codepen
Видео Learn Three.js while building a 3D game with physics канала Hunor Márton Borbély
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Build a Mindblowing 3D Portfolio Website // Three.js Beginner’s TutorialI made an EVEN BETTER MinecraftI Tried Making a 3D RPG Game in JavaScriptBuilding a Simple 3D Scene with Physics in JavaScript & Three.jsWhat Is Three.js? How Can You Learn It? ft Bruno Simon | PrismicThree.js Game Tutorial: Learn Three.js while building a traffic run gameGetting Started With Three.jsBuild a 3D World in React with ThreeJS and React Three FiberGetting Started with THREE.JS in 2021!Spatial Hash Grids & Tales from Game DevelopmentCannon.js Tutorial For Beginners - Add Gravity, Collision, And Other Physics Laws To Your 3D Web AppThree.js Crash Course for Absolute Beginners - 3D in the BrowserThree.js Tutorial Crash Course - 2021Three.js Pixel Shader UpdateThree.js Tutorial For Absolute BeginnersSimple Third Person Camera (using Three.js/JavaScript)[ TUTORIAL ] ModelViewer Tutorial - ThreejsHow To Create A Rolling Sphere Simulation w/ Cinema 4DNeedlessly 3D Chrome Dinosaur Game (JavaScript/Three.js)Three.js coding tutorial: how to enhance a website by adding a 3D element? ft Bruno Simon | Prismic