Three.js 3D Game Tutorial: In-Depth Course for All Levels

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 พ.ค. 2024
  • Ready to create amazing games? Join chriscourses.com to learn, grow and thrive from over 100 videos, quizzes and code challenges: chriscourses.com/
    Project setup code snippet: chriscourses.com/courses/thre...
    GitHub source code: github.com/chriscourses/three...
    Demo: chriscourses.github.io/threej...
    00:00 Intro
    00:52 Project setup
    7:14 Materials and lighting
    18:24 Shadows
    20:59 Gravity
    54:10 Movement
    1:10:22 Full collision detection
    1:29:16 End game senario
    1:41:24 Enemy spawning
    1:48:50 Fine tuning

ความคิดเห็น • 91

  • @ChrisCourses
    @ChrisCourses  ปีที่แล้ว +32

    If I missed any cards or anything, please lmk and I'll be sure to add them in. TY! Otherwise, hope ya'll enjoy this long awaited vid.

    • @isaacqadri
      @isaacqadri ปีที่แล้ว +8

      Thank you, Chris 🎉🙌🏻

    • @evilt521
      @evilt521 ปีที่แล้ว +5

      Is it possible to change the cube as a gltf 3d model without change other code? or I need to rewrite all the function in class Box?

    • @anikatasnimaurin4499
      @anikatasnimaurin4499 9 หลายเดือนก่อน +2

      when the green box falls from the platform ,the screen should be paused also.

    • @alykhan8359
      @alykhan8359 8 หลายเดือนก่อน +1

      Is it possible to change the cube as a gltf 3d model without change other code? or I need to rewrite all the function in class Box?

    • @edwinramirezmedina9756
      @edwinramirezmedina9756 5 หลายเดือนก่อน

      ​@@evilt521😊

  • @meta91rbx
    @meta91rbx หลายเดือนก่อน +103

    Who else woke up to this?😂
    Edit: woah thx guys for the likes!

    • @xk0tika
      @xk0tika หลายเดือนก่อน +4

      yo me too😂😂

    • @thoi99
      @thoi99 หลายเดือนก่อน +4

      Yo what how is this a thing I’m not even into coding at all 😂

    • @evanmiller1682
      @evanmiller1682 หลายเดือนก่อน +4

      No way this also happened to me 😂

    • @NirvanaSkulls
      @NirvanaSkulls หลายเดือนก่อน +1

      I don't understand how I went from serial killers to this 😂😂😂

    • @bengooo2287
      @bengooo2287 หลายเดือนก่อน +1

      LMAO

  • @kennyfully88
    @kennyfully88 7 หลายเดือนก่อน +3

    Thank goodness you're such a good instructor, Chris. This is exactly what I need to know for a project I'm working on.

  • @yoanurag
    @yoanurag ปีที่แล้ว +12

    thank you from the bottom of my heart for everything that you do.
    As a broke student
    Your videos have provided me with invaluable knowledge and insight that I wouldnt have been able to access otherwise
    the fact that you have shared your expertise and experiences with us for free is truly commendable
    and I am grateful for your generosity
    your videos have been a source of inspiration and motivation for me to keep learning and growing and I cant thank you enough for that
    im still learning 2d canvas , but this looks magical
    thakyou

    • @ChrisCourses
      @ChrisCourses  ปีที่แล้ว +3

      I see your comment and am very appreciate for it. Glad I've helped you learn and hope to keep doing so, thanks for tuning and watching, even if my posting is inconsistent 😂

    • @edwinramirezmedina9756
      @edwinramirezmedina9756 5 หลายเดือนก่อน

      Un
      🎉I🎉🎉🎉🎉🎉😂😂

  • @saronarabeds6517
    @saronarabeds6517 ปีที่แล้ว +1

    Thanks a lot chris, what a great thing to find someone gives you precious knowledge for free like this amazing youtuber !!!

  • @arjunbhandari2669
    @arjunbhandari2669 8 หลายเดือนก่อน +1

    I am pissed at how underappreciated this is. I think it's all such a niche requirement that all haven't stumbled on your work yet! Glad you're making this. Joined as ur patreon, keep going, keep growing!!

  • @creativeed6788
    @creativeed6788 10 หลายเดือนก่อน +5

    Hey man, just starting out the tutorial, but I checked your website and just wanted to appreciate what a platform you put together, so many tutorials, incredibly polished work, and all very accessible to everyone. Thank you. Great work!

  • @noahr1545
    @noahr1545 ปีที่แล้ว +4

    Hi Chris! This is such a great tutorial as always and you really helped inspire me to try and dabble into the world of game development and showed me how possible it actually is. At first I thought it was impossible but you've shown how easy it can be. Thanks so much for this and I might be interested in getting your Chris Courses subscription.

    • @nicolaskeroack7860
      @nicolaskeroack7860 10 หลายเดือนก่อน

      Same learning how to make a canvas

  • @JSLegendDev
    @JSLegendDev ปีที่แล้ว

    Looks awesome! Thanks for making this.

  • @diegocandido5361
    @diegocandido5361 ปีที่แล้ว +2

    great tutorial. class box idea is amazing

  • @garrettmandujano2996
    @garrettmandujano2996 10 หลายเดือนก่อน

    I sincerely appreciate you making this course available free here, thank you sir

  • @werwolfischekatharsis3266
    @werwolfischekatharsis3266 ปีที่แล้ว

    what a tremendously good timing! I bought bruno simon's threejs course a week ago, have planned to book a course from chris afterwards and hoped he release another threejs video again someday(btw great stuff!).. et Voila!
    Merci beaucoup!

    • @ChrisCourses
      @ChrisCourses  ปีที่แล้ว +1

      No problem, I wanted to make some games using normal Three.js and not having to get into the react three fiber stuff. I'm a vue user, so naturally, I'm adverse to the react stuff 😆

  • @HuynhLuong227
    @HuynhLuong227 ปีที่แล้ว

    wow, long time no see, verry happy when see you come back, especial make game with threejs

  • @theblueplanet3576
    @theblueplanet3576 9 หลายเดือนก่อน

    This was a truly masterclass tutorial 👌

  • @syuo5051
    @syuo5051 7 หลายเดือนก่อน

    Thank you, Chris! It is awesome.

  • @deFrontComOFer
    @deFrontComOFer 5 หลายเดือนก่อน +1

    To get the camera position, you just need to console.log(camera.position) inside your animate function (loop function) , then you can move the camera around with the mouse and just pick the values from the console, hope it helps someone!!

  • @wang-g7744
    @wang-g7744 11 หลายเดือนก่อน

    Well done, thank you for sharing. It's a very clear tutorial❤

  • @worldbest3097
    @worldbest3097 ปีที่แล้ว

    wow, where you have you been!! waited for so long time!

  • @gabluz
    @gabluz 10 หลายเดือนก่อน

    Goddamn! I was looking for this tutorial everywhere!!!!! Thank you so much!!!

  • @anmolchauhan3822
    @anmolchauhan3822 ปีที่แล้ว

    It was really fun and thank you for this video broo!!

  • @chrystian4517
    @chrystian4517 ปีที่แล้ว

    thank you very munch for the great information in your videos!

  • @--bountyhunter--
    @--bountyhunter-- ปีที่แล้ว

    love your vids man..❤️
    underrated

  • @321123580
    @321123580 ปีที่แล้ว

    Great tutorial, thank you

  • @Hawkborat
    @Hawkborat ปีที่แล้ว +1

    I can't figure out how to perfect the jumping, it works fine if you tap it, but if you hold the jump button or spam it it will let you fly. Which takes away the point of the game. Anyone know how to fix that?

  • @poki6041
    @poki6041 11 หลายเดือนก่อน +1

    what is "group" in update(group) for me that do nothing D: for me its working event without ground in update(ground)

  • @raystone06
    @raystone06 ปีที่แล้ว +1

    Amazing course Thank you,
    support from ivory coast 🇨🇮!

    • @ChrisCourses
      @ChrisCourses  ปีที่แล้ว +1

      Thank you sir from the ivory coast 🙌

  • @kienboy9999
    @kienboy9999 ปีที่แล้ว +2

    glad you came back. wish you well. your videos are amazing. keep do good job

  • @manukyanq
    @manukyanq ปีที่แล้ว +1

    Maaan, your content is more interesting that all chatGPT related topics 😂😂😂

    • @ChrisCourses
      @ChrisCourses  ปีที่แล้ว +3

      I'm sick of it too, only been a few months and I can't take anymore 😂

  • @Engineerly
    @Engineerly 4 หลายเดือนก่อน

    Hey Chris, how can i add the condition -> if our cube falls off the edge(left or right), it should still be game over!!

  • @meme-vw1vi
    @meme-vw1vi ปีที่แล้ว

    10/10 vid as always

  • @hihahahuhujs
    @hihahahuhujs ปีที่แล้ว +1

    Love your video
    Please make more video about three.js game😊😊

  • @AndrewTSq
    @AndrewTSq ปีที่แล้ว

    i dont understand why you did a class for the box? the second parameter in boxgeometry is the height, so you already have it? I guess I am missing something :)

  • @abdulazizaskaraliev6119
    @abdulazizaskaraliev6119 6 หลายเดือนก่อน

    Hey, a great video you put together. Just wanted to note that at 41:28 i think instead of updating every box's sides on every animation frame. It'd be better to use a get property function. It should save some extra computation... I gues, I'm not sure.

  • @reactor8502
    @reactor8502 ปีที่แล้ว +2

    Who remember SkyRoads?

  • @HoldenTudiks81
    @HoldenTudiks81 ปีที่แล้ว

    love all the projects❤. On this project when I run the project from( VsCode run debug chrome) everything works.
    But when I run the project on Live Server I'm getting an error ( THREE.WebGLRenderer: bgl_triggerblock is not defined) (Uncaught ReferenceError: bgl_triggerblock is not defined) is there a way to fix this error.
    I added a H1 and it shows on the screen just not any of the THREE stuff.
    I can also keep pressing space to stay in the air how would I prevent that?

  • @robertn2997
    @robertn2997 ปีที่แล้ว +1

    Cool video, 3D in the browser really interest me. I'm going to watch the full video in my weekend.
    I have only one question, why is almost everyone on TH-cam using Three js for there tutorials instead of Babylon.js?

    • @ChrisCourses
      @ChrisCourses  ปีที่แล้ว +1

      Only reason for me is because I started with Three.js and don't really want to switch off something I'm comfortable with. Don't know about everyone else though 🤔

  • @Cath_demian
    @Cath_demian 11 หลายเดือนก่อน

    Hi chris! I'm a student may I modify and reproduce this code for personal use?

  • @riza4329
    @riza4329 11 หลายเดือนก่อน

    thanks so much

  • @TiyaBhatt4-de8sq
    @TiyaBhatt4-de8sq 3 หลายเดือนก่อน

    Hey everyone, did we import any modules for this game?

  • @saronarabeds6517
    @saronarabeds6517 2 หลายเดือนก่อน +2

    50:51 hell .. oh noo .. vot me laughing too hard

  • @rajaryan7167
    @rajaryan7167 ปีที่แล้ว

    please make video on how you have setup sublime text for javascript

  • @Way_Of_The_Light
    @Way_Of_The_Light ปีที่แล้ว

    Long time no see bro!

  • @MrSunstar
    @MrSunstar ปีที่แล้ว +1

    great

  • @tone2812
    @tone2812 2 หลายเดือนก่อน

    If this is tutorial hell… I don’t mind it

  • @everettmusicdojo
    @everettmusicdojo 4 หลายเดือนก่อน

    Oh no the box is going to hell.

  • @infiteri6030
    @infiteri6030 ปีที่แล้ว

    Ill try to make it using a custom 3D engine made by me

  • @HuynhLuong227
    @HuynhLuong227 ปีที่แล้ว

    I think you need update this game, add tree house left road, right road, add models 3d for box main 🎉🎉🎉🎉

  • @siporoz
    @siporoz ปีที่แล้ว

    Found cheat code, alway press on space and you can fly

  • @robincampbell4945
    @robincampbell4945 ปีที่แล้ว

    *Promo SM*

  • @prashlovessamosa
    @prashlovessamosa ปีที่แล้ว

    After 4 months 🙄.

    • @ChrisCourses
      @ChrisCourses  ปีที่แล้ว

      next one's coming in 5 🫡

    • @poki6041
      @poki6041 11 หลายเดือนก่อน

      @@ChrisCourses lol