Build a 3D World in React with ThreeJS and React Three Fiber

Поділитися
Вставка
  • Опубліковано 18 лис 2024

КОМЕНТАРІ • 99

  • @MykhayloMusic
    @MykhayloMusic 3 роки тому +54

    Man, as a designer - this knowledge is gold

    • @sicfxmusic
      @sicfxmusic 3 роки тому

      Same but I can't use react so I just load 'script src=three.js' in header 😂

  • @Ra5h3d_
    @Ra5h3d_ 3 роки тому +9

    I don't know why, but I feel so calm, listening to him!

  • @ramonoliveira4968
    @ramonoliveira4968 2 роки тому +3

    My reaction to seeing this orbit control after developing 25 web applications knowing nothing about it: 😱🤯.
    Such a cool thing. Thank you for sharing this, bro.

  • @samsonxon
    @samsonxon 3 роки тому +11

    Thank you for speaking slowly!! I’m understanding it much better

  • @aaronalquiza9680
    @aaronalquiza9680 3 роки тому +37

    "React is a component framework"......

    • @dinoscheidt
      @dinoscheidt 2 роки тому +5

      …. and the internet is a homepage….

  • @PapaBonas
    @PapaBonas 3 роки тому +10

    For months I have been looking for something like this!!!!!

    • @AddyVDH
      @AddyVDH 3 роки тому +5

      Just curious, I've being dabbling with first person / third person game cameras, physics, and basic animations in THREE.js for a while now. Thinking about maybe making a couple videos since I see that there is some interest. All of the current videos are really basic and only really help you get a cube on the screen.
      What kinds of things are you looking for?

    • @PapaBonas
      @PapaBonas 3 роки тому

      @@AddyVDH for now I want to keep it as simple as possible, threjs always for me had a big learning curve, being a react dev this was amazing to see. I don't paln on becoming a web based game dev, but I have some very simple dongeon crawler ideas. I am looking at a simple box based rpg, a watered down version of the minecraft rpg minus the randomness for now. This is soo much fun however as there is tons of UI elements one can do for a enterprise app.

    • @DownTheRabbitHole341
      @DownTheRabbitHole341 3 роки тому +2

      @@AddyVDH I would really really appreciate a tutorial on making a basic map and just the functionality to walk around it whilst staying in the browser, I can find tutorials anywhere, I want to make a map in blender or another 3D tool and then be able to just walk around it!

    • @AddyVDH
      @AddyVDH 3 роки тому

      ​@@DownTheRabbitHole341 I've got a number of demos with this functionality. Perhaps I should slap something together showing how this can be done.
      I'm a react dev mainly is the only issue. I feel like using typescript + react doesnt lend itself well to tutorials.

  • @ToshisanMotonaka
    @ToshisanMotonaka Рік тому +2

    this was so straight forward, i really appreciate this tutorial thank you!

  • @999NRG
    @999NRG 3 роки тому +4

    Long time no C
    only JavaScript

  • @bluegreensomething
    @bluegreensomething 3 роки тому +5

    Oh, this looks so cool! I am going to play with this. Upvote!

  • @gocryptoyourself2423
    @gocryptoyourself2423 Рік тому +1

    Awesome starter tutorial. I could definitly see making a flying game with some simple keyboard listeners (wasd, spacebar) or even a first person shooter with wasd, spacebar, mouse tracking. Pretty crazy for in the browser.
    Should be fine for the 3d chess game im building :D

  • @klc3rd
    @klc3rd 2 роки тому +1

    I know react and am currently learning threejs, I didn’t know about react there fiber, thanks! Definitely beats using useRef on a canvas

  • @GRsEditscape
    @GRsEditscape 2 роки тому +6

    Fantastic tutorial! Can't wait to build something using this starting point.

  • @cheng-yutsai6807
    @cheng-yutsai6807 2 роки тому

    Thanks for this tutorial. Explained every detail is very nice for beginer like me.

  • @rakeshpk4991
    @rakeshpk4991 2 роки тому +1

    Thanks! Fantastic introduction to React Fiber!

  • @thakursaad9364
    @thakursaad9364 Рік тому

    12:26 man is impressed by his own works 🤣
    Awesome tutorial by the way

  • @mohammadjavadaghazadehfard7873
    @mohammadjavadaghazadehfard7873 2 роки тому +1

    Hi, Thank you 🙏 That's really cool 👌🌹 please make more videos like that 🙏🌹 good luck 🖐

  • @Hiatuz4
    @Hiatuz4 2 роки тому

    I love your bg music 🎶

  • @hakanaki
    @hakanaki 3 роки тому +2

    how did you get the boxBufferGeometry& meshLambertMaterial?? Was it imported ?

  • @Greatcoders
    @Greatcoders 3 роки тому

    Great knowledge, well I 'm a react developer, that's what we teaches to our students about reactjs.

  • @johannranudd6671
    @johannranudd6671 3 роки тому +1

    Great video! Thanks

  • @ralfwarnat9257
    @ralfwarnat9257 3 роки тому +11

    "drei" is just the german word for "three"

  • @PatiparnPojanart
    @PatiparnPojanart 3 роки тому

    Thx a lot!!! Your vid bring me to get a job!!!

  • @Retrocaus
    @Retrocaus 3 роки тому +1

    somethings outdated, what you need to do is use npm install @react-three/cannon and not npm install cannon because it has become depreciated

    • @zinx6809
      @zinx6809 2 роки тому

      Yes, and the drei too. You have to do "npm install @react-three/cannon"

  • @jornejongsma
    @jornejongsma 3 роки тому +1

    Yes, it's kinda cool. But how does it work with side effects, like loading a gltf, and than ways of interacting with that scene graph...

    • @jornejongsma
      @jornejongsma 3 роки тому +1

      Ok, next up is this video, it goes a bit deeper into what you can do with React Three Fiber : ua-cam.com/video/1rP3nNY2hTo/v-deo.html

  • @ankitsrivastava3972
    @ankitsrivastava3972 3 роки тому +3

    Spectacular 💥💥💥

  • @mouadelbourkhissi9318
    @mouadelbourkhissi9318 11 місяців тому

    Thanks, please how can drag and drop and manipulate OBJLoader

  • @shaunpx1
    @shaunpx1 Рік тому

    Do you have a video showing how to set three fiber up in nextjs?

  • @mateuszabramek7015
    @mateuszabramek7015 3 роки тому

    I saw this idea few years ago as game prototype. Seems full game never made it till the end.

  • @jornejongsma
    @jornejongsma 3 роки тому +1

    First question, does it have (Android) AR components too?!

  • @renedescartes9876
    @renedescartes9876 2 роки тому

    Try 1.25 speed for better experience 👌

  • @stuartallen2001
    @stuartallen2001 3 роки тому +4

    Wow awesome tutorial! I'm just curious why don't we have to add a scene or camera? Does react-three-fiber handle that for us

    • @latch1660
      @latch1660 3 роки тому +11

      It does exaclty as you predicted, it makes a default camera and scene for us.
      The reason being, to eliminate the boiler plate code that is needed just to set up your stuff.
      You can still set a camera and it's properties like you would in THREE.
      The Canvas component has a camera property that takes an object.
      for example like so:

    • @stuartallen2001
      @stuartallen2001 3 роки тому

      @@latch1660 thank you this is helpful!

  • @whiteseal5775
    @whiteseal5775 3 роки тому

    Wow This is why I'm learning programming o m g amazing

  • @sicfxmusic
    @sicfxmusic 3 роки тому

    How to make Flappy Box in 10 mins 👏

  • @ujjalshill6442
    @ujjalshill6442 3 роки тому +1

    Very helpful

  • @964tractorboy
    @964tractorboy 3 роки тому +1

    Always a great video.

  • @joaomendoncayt
    @joaomendoncayt 3 роки тому +1

    Ok, I'll make a game... be right back

  • @rickharold7884
    @rickharold7884 3 роки тому

    Beautiful. Thx

  • @Brenosalv
    @Brenosalv 3 роки тому +1

    Can react three fiber be used for AR?

  • @heavygustav
    @heavygustav 3 роки тому

    I create blender model and I wonder if I can import them and load them into the scene...

  • @sajankumarvijayan811
    @sajankumarvijayan811 2 роки тому

    Can you please make tutorial about how to load .stl and .3mf file using react-three-fiber?

  • @diplo_yt
    @diplo_yt 3 роки тому +1

    really cool, good content

  • @nano_org
    @nano_org 3 роки тому

    Thank you!

  • @chrisw.1252
    @chrisw.1252 3 роки тому +1

    Hey this was a great video. By chance, do you know if you can do this in NextJS as well? or does this only work in react?

    • @ilug5197
      @ilug5197 3 роки тому +2

      Yes, remember canvas is a api from browser, it will render in the client. Nextjs will output an html with canvas but the actual rendering of the 3d app will be on clients (browser)

  • @mr.personman7426
    @mr.personman7426 2 роки тому

    React is actually a library, not a framework.

  • @emmanueleboh868
    @emmanueleboh868 2 роки тому

    How do I use this in Next.js bro. Any idea?

  • @City__Walker
    @City__Walker 2 роки тому

    where finding working step by step code information how use procedural on Three

  • @jerzykepinski
    @jerzykepinski 2 роки тому

    Thanks man!

  • @Faisal-jo5vk
    @Faisal-jo5vk 2 роки тому

    how can i import more than 1 function??

    • @Faisal-jo5vk
      @Faisal-jo5vk 2 роки тому

      i have one function i want to usse for the layout, like navbars and stuff, and the other i want it as the main thing, and i want it to have animations

  • @turing_machine544
    @turing_machine544 3 роки тому +1

    Amazing 🔥

  • @merictunc
    @merictunc 2 роки тому

    Thanks 🙏

  • @neoazazello
    @neoazazello 3 роки тому

    Qaqaş konkret kayfdadı. Çəkib gəlib video çəkməyə. Amma danışdıqları peçatdı 👍👍

  • @ecam90
    @ecam90 3 роки тому +1

    Dope af!

  • @neoncut
    @neoncut 3 роки тому

    My are grey with a white background as a default - anybody know why or how to change it?

    • @matteothomas187
      @matteothomas187 3 роки тому +1

      in your .css file
      canvas {
      background-color: black
      }

    • @neoncut
      @neoncut 3 роки тому

      @@matteothomas187 Thank you! That works.
      Is there any notable difference between styling the canvas/root/body in the CSS and putting a directly in my scene?

    • @matteothomas187
      @matteothomas187 3 роки тому +1

      @@neoncut I'm not sure, I'm still new to Three.js

    • @ilug5197
      @ilug5197 3 роки тому +1

      @@neoncut I think css is faster because js have to do a lot off stuff before and after code execution

  • @elwoseopenstepcrew1134
    @elwoseopenstepcrew1134 Рік тому

    vi in visual code, susbcribed

  • @hershdhillon
    @hershdhillon 3 роки тому

    Can anyone link me with the credits music, please!!

  • @shivamsoni1737
    @shivamsoni1737 3 роки тому

    Heyoo, that's unbelievable what I saw, that's the whole new way of game development.
    Loved the video, awesome. Can anyone send me some through which I can contact MR. Daniel Bark

  • @ReflexWalaXD
    @ReflexWalaXD 3 роки тому

    THIS IS GOLDDDDDDDDDDDDDDDD

  • @Brushberg
    @Brushberg 2 роки тому

    you're definitely related to pewdiepie

  • @iamsebs
    @iamsebs 3 роки тому +2

    Sadly they changed the imports and libraries structures :) But great video!

    • @tenj
      @tenj 2 роки тому

      Where can I learn the new stuff ?
      Can you recommend a video ?

  • @mr_green8556
    @mr_green8556 2 роки тому

    I had to use -Math.PI / 2

  • @MathewRenfro
    @MathewRenfro 3 роки тому

    Fiber seems better than react360 (reactVR)

  • @finenode8363
    @finenode8363 3 роки тому

    Nice

  • @jinzhichen5491
    @jinzhichen5491 2 роки тому

    cool

  • @vishwajeetraj11
    @vishwajeetraj11 3 роки тому

    Subscribed ❤️

  • @realcygnus
    @realcygnus 3 роки тому

    Nifty

  • @ttmmaacc
    @ttmmaacc 2 роки тому

    x1.25 for sure

  • @furetosan
    @furetosan 2 роки тому

    very sleepy

  • @guymandude2774
    @guymandude2774 2 роки тому

    npm i chokidar

  • @allaws4062
    @allaws4062 3 роки тому

    Im first

  • @copyninja_03
    @copyninja_03 3 роки тому

    you talk too slow intro was like for 2mins pls don't do that.

  • @animanoir
    @animanoir 3 роки тому

    beautiful, thanks for the video, but the intro is damn too long. Here is the actual video: 2:14

  • @AnthonyGarland
    @AnthonyGarland 2 роки тому +1

    Thanks!