JavaScript Game Development: Build an Airplane Flying Game with React Three Fiber & Three.js

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 มิ.ย. 2024
  • What's up youtube! welcome back to the channel! In this small javaScript game development tutorial, I'll try to show you how to create a simple, but exciting Airplane Flying Game using Three.js, a powerful 3D library, and React Three Fiber, often described as threejs on steroids. Wether you're a beginner or an experienced developer, this step-by-step guide will walk you through the entire process of building your own little flying game from scratch, and it will touch on a few new topics that we haven't explored in any of my previous tutorials, so strap your seat belts and get ready for takeoff!
    Timestamps:
    00:00 - Introduction
    00:34 - Blender setup intro
    01:06 - Landscape geometry nodes
    02:34 - Sculpt & weight paint
    02:57 - Trees
    04:16 - Landscape materials
    05:11 - End of blender process
    05:47 - VSCode setup
    07:00 - Camera & environment maps
    08:19 - Landscape component
    09:50 - Conclusion and next steps
    Try it on your browser (it will take a while to download)
    domenicobrz.github.io/youtube...
    Repo of the project:
    github.com/Domenicobrz/R3F-ta...
    Episode 1 branch:
    github.com/Domenicobrz/R3F-ta...
    Models & textures:
    github.com/Domenicobrz/R3F-ta...
    Dependencies list:
    npm i @react-three/drei@9.74.14 -E
    npm i @react-three/fiber@8.12.0 -E
    npm i @react-three/postprocessing@2.14.9 -E
    npm i three@0.153.0 -E
    Subscribe for more exciting webdev tutorials, JavaScript & react three fiber / threejs projects, and creative coding tips!
    If you find this tutorial helpful, don't forget to like the video and share it with your fellow developers. Leave your comments below if you have any questions or suggestions for future videos.
    Connect with me on social media:
    Twitter: / domenico_brz
    Instagram: / domenicbrz
    Website: domenicobrz.github.io/webgl/i...
    Thank you for watching, and happy coding!
    #react #threejs #javascript
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    Incredible as always

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

    Wow, bro. Don't stop. Thank you for sharing all of this. Your channel will grow for sure!!!!

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

      Thanks :) 4k is already an audience way bigger than I thought I would have

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

    nice game, i'm glad when see it. wait for next full lession (full make model in blender, full make in react three fiber). Thank you for sharing

  • @tangolpeando123
    @tangolpeando123 10 หลายเดือนก่อน +3

    I'm a full stack dev and getting to know more about the Blender processing is super interesting and I would like to dive more into it to be able to create my own designs and bringing then to life.
    Thanks for your great tutorials! I just discovered them but loving them already!

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

      Thanks for the compliments! People liked the blender process so I'll likely keep on showing a quick overview for my future projects

  • @buzbuz33-99
    @buzbuz33-99 10 หลายเดือนก่อน +1

    Thanks for sharing this! In my simulations and dioramas, I have often used 3D objects to create terrain features like large hills or (if over the ocean) islands. Not only does your demo show how to make some very impressive examples using Blender, but it also shows that they can be displayed at decent frame rates - which is always a big concern.

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

      it's my pleasure to share the process with the community, and you're right performance can be a big bottleneck when these models get larger and more detailed, in fact most times one has to compromise and find a balance

  • @user-yi3rq7jk2r
    @user-yi3rq7jk2r 10 หลายเดือนก่อน

    we waitng for more

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

    This is cool. I played a game that looks similar to this and wondered how it could be made (it was a bit technical).
    It was made by Sebastian Lague, a sort of geographic game where you're given a city's name and you fly to where you think it might be.
    I'll definitely follow this series throughout. Thank you.

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

      I've seen bits of his videos and that game is incredible :) definitely an inspiration. Usually I try to keep things short since my time is limited but it's cook to experiment with these little games and see how they look like after you play with the code for a bit
      Btw thanks ❤️

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

    This is so damm cool stuff.

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

    That's lit!

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

    the best the besth!!!! wow

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

    good work😍😍😍

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

    more great content

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

    Great

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

    Oh wow. I just heard about Fiber few weeks ago.

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

    Love seeing the Blender side of the workflow

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

      Thanks! Do you feel like the quick overview is enough? I'm not sure wether I should expand on that part or keep the channel focused on code and webdev

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

      @@irradiance730 I think in this context the quick overview works well. Anything more complex (ie baking, animation etc.) would probably warrant a separate video.
      Either way, dedicating time to cover it in some way at the start of a project is would be great.
      I find it helpful to know how models are created and why certain approaches were taken. Not only because it’s interesting but it can also inform the way you work with the model on the code side.
      Looking forward to the next one. Keep it up 💪

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

      Thank you for the feedback, I'm aligned with your point of view and would prefer to keep the blender overviews concise and focusing on the coding side, as that's where the channel specializes. Thanks! :)

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

    This channel is one and only nobody teaches theses keep it up🔥🔥🔥
    How about making a racing game ?

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

      thank you ❤ I recently posted a series where you can build the controls of a car on a small track :)

  • @animedreamz2009
    @animedreamz2009 4 วันที่ผ่านมา

    You can render the scene in a render texture and then feed it to the buffer prop. I used the meshTransmissionMaterial and ran into issue until I did that.

  • @HieuPham-ix7cs
    @HieuPham-ix7cs 10 หลายเดือนก่อน +1

    4 months !!! He's back now !!!😍😍😍😍

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

      I am! and hopefully I'll be more consistent moving forward :)

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

      @@irradiance730 i pray so!

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

    The blender model you created was gorgeous. Can you make a separate video on how to fully create it?

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

      Thanks for the feedback! Which parts do you feel I should expand upon?

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

    Soooo coooool❤❤

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

    Thanks for sharing! I have finished the walk thru, and is now trying to add some extra features to this game on my own. One thing I am hoping to implement is the collision between the landscape and the plane. Could you shed some lights on how to achieve this feature?

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

      Hello! You can definitely get close with a raycaster object and test it against the landscape, there should be plenty of tutorials on the internet on how to use a raycaster, hope this helps! :)

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

    OH MY GOSH THATS INSANEEEEEEE

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

      wtf thanks I love your videos!! You're an inspiration

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

      My next video is gonna be resources for creative devs like blogs, case studies, and youtube channels. You're gonna be the first channel on that list. You're literally so underrated! I hope you blow up!@@irradiance730

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

      wait that's too kind! thank you so much! you don't have to but it's definitely appreciated :) it's also refreshing to talk to other creators in the same space, I feel there's a huge amount of content that we're still missing in the threejs / cg for webdev ecosystem

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

      @irradiance730 yeah absolutely! we growing slowly and getting bigger though!!

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

      two nerds!

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

    so cool, really great. thank you so much. Please share your full video make terrain in blender?

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

      Do you think I should be going over a detailed explanation for the blender process?

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

      @@irradiance730 yes sir

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

      @@irradiance730 yes, please make it

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

    I'm struggling to change the airplane model to a spaceship model I found on sketchfab. Any tips?

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

    wow, that's amazing game. thanks for sharing. You draw everything in blender?

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

      Hello! for this project I made everything except the airplane, which I took from sketchfab from an amazing artist that I'll credit in the next video :)

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

      ​@@irradiance730 yes pro, can you share your make model (terrain, trees...) in blender?

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

    I will love to learn brender too

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

    it feels like forever since i saw your last upload

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

      it has been forever :) hopefully I can be more consistent moving forward

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

    That's so cool...can you please make part 2...where you go more in depth ??

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

      Hello! going more in depth for the blender process? or the rest of the video? the rest of the video hasn't been recorded yet and will hopefully go live next Monday :)

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

      @irradiance730 from my view ...I think that going a bit deeper with blender is great ...especially since you're explaining it with relations to r3f....certainly it can't hurt ....and again seriously cool project ...and your tutorials are on another level

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

      @@irradiance730 i want learn depth for the blender process for this project, wait for you. Thanks again

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

      @@irradiance730 i want more in depth for the blender part of this project.. GOD bless you sir!

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

    please my bro, please! can you make a detailed video on the blender workflow, geometry nodes is like chinese to so many of us.. Btw, you should teach blender if you've got a spare time, what?? you're damm good with/in blender! my goodness, how can u be so good with blender and R3F, do you practice everyday? and how many years have you been doing blender?

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

      You're too kind :) thanks for the compliments. I don't practice blender too often, but once you know the important computer graphics algorithms, they translate 1 to 1 on blender so it's like if a good portion of the program becomes familiar immediately
      Seems like more than one person is interested in the full blender process, I'll keep that in mind, thanks!!

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

    Do not take the blender part out of your coding videos. I’m diving into both blender and r3f and you explaining both sides helped

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

      noted, thank you for the feedback!

  • @user-yi3rq7jk2r
    @user-yi3rq7jk2r 10 หลายเดือนก่อน

    do more project please like website animation

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

      Will do! Web animations are also planned for future updates :)

    • @user-yi3rq7jk2r
      @user-yi3rq7jk2r 10 หลายเดือนก่อน

      @@irradiance730 focus on ecommerce website rather than game

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

    my brain overheat