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

Поделиться
HTML-код
  • Опубликовано: 25 дек 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

  • @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.

  • @bluegreensomething
    @bluegreensomething 3 года назад +5

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

  • @ToshisanMotonaka
    @ToshisanMotonaka Год назад +2

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

  • @rakeshpk4991
    @rakeshpk4991 2 года назад +1

    Thanks! Fantastic introduction to React Fiber!

  • @GRsEditscape
    @GRsEditscape 3 года назад +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.

  • @Hiatuz4
    @Hiatuz4 2 года назад

    I love your bg music 🎶

  • @thakursaad9364
    @thakursaad9364 Год назад

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

  • @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

  • @999NRG
    @999NRG 3 года назад +4

    Long time no C
    only JavaScript

  • @hakanaki
    @hakanaki 3 года назад +2

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

  • @ankitsrivastava3972
    @ankitsrivastava3972 3 года назад +3

    Spectacular 💥💥💥

  • @964tractorboy
    @964tractorboy 3 года назад +1

    Always a great video.

  • @gocryptoyourself2423
    @gocryptoyourself2423 2 года назад +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

  • @johannranudd6671
    @johannranudd6671 3 года назад +1

    Great video! Thanks

  • @PatiparnPojanart
    @PatiparnPojanart 3 года назад

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

  • @mohammadjavadaghazadehfard7873
    @mohammadjavadaghazadehfard7873 2 года назад +1

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

  • @whiteseal5775
    @whiteseal5775 3 года назад

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

  • @aaronalquiza9680
    @aaronalquiza9680 3 года назад +37

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

    • @dinoscheidt
      @dinoscheidt 2 года назад +5

      …. and the internet is a homepage….

  • @diplo_yt
    @diplo_yt 3 года назад +1

    really cool, good content

  • @ujjalshill6442
    @ujjalshill6442 3 года назад +1

    Very helpful

  • @elwoseopenstepcrew1134
    @elwoseopenstepcrew1134 Год назад

    vi in visual code, susbcribed

  • @turing_machine544
    @turing_machine544 3 года назад +1

    Amazing 🔥

  • @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 : ruclips.net/video/1rP3nNY2hTo/видео.html

  • @Greatcoders
    @Greatcoders 3 года назад

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

  • @shaunpx1
    @shaunpx1 Год назад

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

  • @jornejongsma
    @jornejongsma 3 года назад +1

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

  • @nano_org
    @nano_org 3 года назад

    Thank you!

  • @jerzykepinski
    @jerzykepinski 2 года назад

    Thanks man!

  • @merictunc
    @merictunc 2 года назад

    Thanks 🙏

  • @mouadelbourkhissi9318
    @mouadelbourkhissi9318 Год назад

    Thanks, please how can drag and drop and manipulate OBJLoader

  • @rickharold7884
    @rickharold7884 3 года назад

    Beautiful. Thx

  • @renedescartes9876
    @renedescartes9876 2 года назад

    Try 1.25 speed for better experience 👌

  • @ecam90
    @ecam90 3 года назад +1

    Dope af!

  • @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!

  • @Brenosalv
    @Brenosalv 3 года назад +1

    Can react three fiber be used for AR?

  • @emmanueleboh868
    @emmanueleboh868 2 года назад

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

  • @ReflexWalaXD
    @ReflexWalaXD 3 года назад

    THIS IS GOLDDDDDDDDDDDDDDDD

  • @vishwajeetraj11
    @vishwajeetraj11 3 года назад

    Subscribed ❤️

  • @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)

  • @sajankumarvijayan811
    @sajankumarvijayan811 2 года назад

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

  • @sicfxmusic
    @sicfxmusic 3 года назад

    How to make Flappy Box in 10 mins 👏

  • @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"

  • @joaomendoncayt
    @joaomendoncayt 3 года назад +1

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

  • @City__Walker
    @City__Walker 2 года назад

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

  • @heavygustav
    @heavygustav 3 года назад

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

  • @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

  • @ralfwarnat9257
    @ralfwarnat9257 3 года назад +11

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

  • @hershdhillon
    @hershdhillon 3 года назад

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

  • @mateuszabramek7015
    @mateuszabramek7015 3 года назад

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

  • @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

  • @finenode8363
    @finenode8363 3 года назад

    Nice

  • @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

  • @neoazazello
    @neoazazello 3 года назад

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

  • @Brushberg
    @Brushberg 2 года назад

    you're definitely related to pewdiepie

  • @realcygnus
    @realcygnus 3 года назад

    Nifty

  • @jinzhichen5491
    @jinzhichen5491 3 года назад

    cool

  • @animanoir
    @animanoir 3 года назад

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

  • @mr_green8556
    @mr_green8556 2 года назад

    I had to use -Math.PI / 2

  • @MathewRenfro
    @MathewRenfro 3 года назад

    Fiber seems better than react360 (reactVR)

  • @mr.personman7426
    @mr.personman7426 2 года назад

    React is actually a library, not a framework.

  • @iamsebs
    @iamsebs 3 года назад +2

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

    • @tenj
      @tenj 3 года назад

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

  • @ttmmaacc
    @ttmmaacc 3 года назад

    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.

  • @AnthonyGarland
    @AnthonyGarland 2 года назад +1

    Thanks!