I wish I knew this before using React Three Fiber

Поділитися
Вставка
  • Опубліковано 30 тра 2024
  • Sometimes the best way to understand a library like React Three Fiber is to compare it to the original 3D web library, Three.js. We’re going to walk through a side-by-side, one-to-one build of a Three.js project and a React Three Fiber project at the same time. After watching this video you will understand:
    - Scene creation (cameras, renderers, meshes, animation)
    - R3F JSX syntax and special props
    - Componentization
    - Rendering tricks
    The goal is for you to learn exactly how everything works under the hood so that you can be confident building your next React Three Fiber project.
    Source code is available at:
    github.com/rabbit-hole-syndro...
    00:00 Why?
    00:33 Agenda
    00:59 Create our scene in Three.js
    5:29 Understand the same scene in React Three Fiber
    9:18 How JSX works
    17:53 Componentizing
    18:41 Animation
    19:54 Refs in React Three Fiber
    21:05 Disposing
    21:58 Add lights
    22:33 Rendering appearance
    24:18 Add color
    25:17 Position vectors as array triplets
    28:03 Thanks for watching!
  • Наука та технологія

КОМЕНТАРІ • 300

  • @TheInuyashaGuy
    @TheInuyashaGuy 29 днів тому +2

    This is a lovely introduction! I love that you compared the two libaries side by side. Your explanations are concise and effective. Thank you!

  • @shiftstage7892
    @shiftstage7892 Рік тому +65

    Hey, this is absolutely fantastic. As someone who has avoided video explanations and would rather dive and hack in the source code for the longest time, this type of quality content is what developers should strive for. Not the forgettable and template-y one-size-fits-all setup, but a deep dive into the limits of the code, render cycle, performance, and the mindset of the authors of both libraries and what they were attempting to accomplish. I wouldn't mind it to be longer. This channel might be the Jon Gjengset of frontend if you keep it up!

  • @threeveloper
    @threeveloper 2 роки тому +9

    Great video, good luck with your UA-cam channel! ✌️

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

    Incredibly helpful, can't wait to learn more from these under-the-hood videos you make.

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

    This channel gonna blow up. Thanks, man. Keep up the quality content.

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

    This content quality is insane
    Please keep going!!

  • @omelhorcanaldemodsparamine8231

    this is great, I looked all around for it. Thank you very much!

  • @Tyler-zb6ec
    @Tyler-zb6ec Рік тому +1

    Great documentation! Seeing the vanilla and react js side by side helps a ton

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

    Great vid, high quality and organization of the material is on point 👌

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

    thanks
    coming from react, three js it was going a bit over my head and this differences will be really helpful for me.... I have saved this video so that I can refer to it whenever I will be stuck...

  • @ferrazf9
    @ferrazf9 2 місяці тому +1

    Thank you so much for this video. A solid explanation on all of these concepts is an absolute godsent.

  • @jx4172
    @jx4172 Рік тому +3

    Great video!
    Showing different ways to achieve the same things in react-three-fiber was very helpful for my understanding!
    And thanks for digging into the renderer code and figuring out what was happening! The explanation was really helpful!
    ps. Nice to see someone not using the * as THREE default import for once. Your code looks so much nicer!
    pps. subscribed!

  • @user-bv4xr3yd8w
    @user-bv4xr3yd8w 7 місяців тому +5

    This is an absolutely awesome overview. Your explanations are crystal clear, despite me not having used Three in about a year.

  • @neneodonkor
    @neneodonkor 8 місяців тому +2

    R3F seems simple and concise. Thank you for the explanation

  • @alamin-yu9mm
    @alamin-yu9mm Рік тому

    I am glad that there are people like you, who can help beginner streamers. Thank you brother, I appreciate your support. Always fresh updates

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

    Great intro to R3F, thanks!
    Worth mentioning drei is probably pronounced "dry", as in the German word for Three, rather than "forgot about drei":)

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

      Thanks for watching! And really good point about the pronunciation, I’ve made sure to get that right in other videos.

  • @MD-vc7oh
    @MD-vc7oh Рік тому +1

    what an amazing explanation video keep it up you deserve more views

  • @Manny-mc3rx
    @Manny-mc3rx 4 місяці тому +1

    Great Explanation! Thanks for this video

  • @ryanritten1977
    @ryanritten1977 Рік тому +3

    Great video! Subscribed! Looking forward to more content!

  • @ooogabooga5111
    @ooogabooga5111 Рік тому +7

    I'm half way into this video, Im just going to say "this is channel is my hidden gem". You have 10/10 explanation style. So easy to understand.

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

    Incredible Video! Your amazing for creating this!

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

    really good wish I had this one year ago, bumped into much of these issue you are addressing.

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

    great video. looking forward to watching more of your tutorials. nice side by side. and glad you keep going deeper

  • @aj35lightning
    @aj35lightning Рік тому +3

    incredible, been pretty deep on vanilla three for a long time, been looking at cool stuff done with r3f and i love how quickly it looks like you can develop without a lot of boilerplate, but needed someone to bridge me between the two in exactly this way. this helps so so so much, thanks again

  • @dvikauglaumishrauca
    @dvikauglaumishrauca 4 місяці тому +1

    One of the best videos I've watched ever on animation, information, presentation and सरल

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

    Excellent! Please keep posting other videos about R3F if you feel like to! :)

  • @mananshah3248
    @mananshah3248 Рік тому +4

    By far one of the best online dev tutorials I've ever seen! Seriously - great work.

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

    This it by far the best tutorial for someone to start their three.js/R3F journey.
    Godd job man!

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

    Love this man, keep the videos coming

  • @milesrae2950
    @milesrae2950 Рік тому +17

    I think this is the best development tutorial ive ever seen. The structure of the video and depth you go into is something no other channel seems to do!
    Cant wait to see more videos! 🙌🏻

  • @LuisFelipe-td8qk
    @LuisFelipe-td8qk Рік тому

    I'm so grateful for you taking your time to spread this knowledge! Thank you so much, hope for more videos on React Three Fiber! 😁 Love from Brazil!

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

    subscribed, would love to see all of the videos you've got lined up for the future

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

    this is such a great find on youtube, sir Bruno Simon's videos are gems also but most of the people are into functional components now so this is a good balancer, though the approach of sir Bruno is very great specially with the simpleton which is sir Andrew Woan also uses. Such great channels for ThreeJS enthusiasts. Keep making more of this please

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

    Really excellent demonstration!! Thanks so much for creating this video and sharing it with us.

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

    Subbed! I'm learning three js/fiber/webgi keep the videos coming.

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

    I love that you go into the details. This is explanation, not just demonstration. Thank you for the video!

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

    Very good material, thank you!

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

    this not fair at all man you make this awsome and that's it !!! keep up the good content

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

    My man! This is incredible. Like Tony, you were a MASSIVE factor in my development as a full stack. Your mentorship was invaluable. Looking forward to seeing more!

  • @dylanking165
    @dylanking165 Рік тому +4

    I expected to look at your channel and see tons of videos only to realize this was just uploaded!! This was incredibly well done. Thank you so much for this it really helped me understand how the two work together. Looking forward to more content!

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

      Thanks for the kind feedback 😀. Glad it helped!

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

      @@RabbitHoleSyndrome No problem! If you're looking for another video idea, I'd love one about how to get an emissive material to actually shine light onto surrounding objects - can't seem to get it to work.

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

      specifically with a which I understand might not be possible. I can do it in blender so I know it's ~possible~ but it might not be an option in R3F

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

    Awesome video! Really helped me to understand the relationship between react-three/fiber and three ❤

  • @byGDur
    @byGDur Рік тому +6

    23:53 is such a good call of the fiber developers. Another very important effect of the correct gl settings is that: the more intense the white light is, the more white every object gets, as it does in real life. (without these settings, colors would flip e.g. from red to yellow)

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

    I like your idea of deep diving everything. I'm hoping that you're making more videos!

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

    the side by side is perfect for my learning style. thank you so much

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

    This video really enlighten me. And the way your teaching and the organization of the video is profession. I really hope to see more about three.js and react three fiber video .Keep producing! It's great!

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

    Finally content we all are lookig for!

  • @kwongster
    @kwongster 9 місяців тому +1

    extremely helpful to have - thank you for breaking down the concepts to better understand three/fiber

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

    Superb tutorial, really helped me to understand rtf

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

    BROO this is exactly what I was looking for!

  •  Рік тому +1

    Wow I was waiting to see this comparison and I have found it , Thank you man 👍👍You have a new subscriber, good content, hope you can make more and share

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

    This is the video I was looking for all along, took me a while to get the right keywords on the UA-cam search field to finally get to this point.

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

      Glad it helped! Curious which search terms worked & didn't work for you?

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

    Amazing video, good to see something more fundamental than other more pratical, hands-on tutorials out here.

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

    Great video man. this was something i struggled with for months to understand when I started working in R3F. great explanation. wish I would have had this video last year when I started.

  • @zeenuexe8362
    @zeenuexe8362 11 місяців тому +1

    loved it. never touched 3js, but you're making me wanna try.

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

    Wow, the video and the explanation was awesome!!! THANKS 👍We wish to see more tutorials in your channel!

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

    this program works great! exactly as I wanted

  • @RobertWildling
    @RobertWildling 7 місяців тому +1

    I am not a React nor a React Fiber user, but this comparison is an absolut insight! - Thank you for that! Subscribed!

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

    Genuinely the video I needed to get me started at ThreeJS. I have not been able to wrap my head around this library for the years I have wanted to try it. Thanks a lot 😄

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

    My first time seeing a video from this channel! Very engaging content. Subbed 5 mins in

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

    Thank you for this excelent video. Very helpful 👍

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

    really helped me understanding the core of three js, thanks !

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

    This video is amazing. Where I get lost translating between fiber and threejs. This helped a bunch. This video could be much much longer and I’d watch.
    Pretty please do a video on Spring in Fiber!

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

    Amazing video! Really helpful 👌

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

    awesome, thanks. Greeting from Colombia

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

    I actually learned something from this video -- very well done.

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

    This is soo good! Thanks!

  • @spinoff2011
    @spinoff2011 3 місяці тому +1

    Great video thanks a lot! Help understand many things of both package!! 😊😊

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

    at 5 min in the video I said to myself that I must subscribe to this channel, and then I that this only have 430 subs ?! how can this be!
    This is top notch content and production.
    chapeux! and thanks for the video

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

    Excellent one, really 👌🏻Please make other ones on the same topic

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

    The tutorial is really helpful, thank you. I'm looking forward to see more of three fiber tutorials from you. Would be nice to see tutorial on ARCanvas as well.

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

    My fellow developers, you have come to a good mentor 😌

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

    Dude, you are amazing!!! 💯💯💯💯💯

  • @valentinkrajzelman4649
    @valentinkrajzelman4649 6 місяців тому +1

    incredible vid man thanks

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

    Amazing job comparing these two, thank you

  • @idcemail123
    @idcemail123 Рік тому +6

    Great video, I am intermediate at React and i wanted to just hop into r3f, but a lot of the abstractions got me confused between the documentation between threejs and r3f. This video helped a lot man

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

    Excellent!!! Your video cleared up all confusion I had when implementing Three.js into React apps with React Three Fiber. Saved me hours of reading through documentation. Thanks so much and keep doing what you do!

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

    The video is more than helpful to give us a basic understanding on how React Three Fiber works, thank you for the good work sir, subscribed!

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

    So cool this was. Do more!!

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

    Instant sub. Great stuff!

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

    Thank you. This video helps me a lot, who knows nothing about React, while I'm following Bruno Simon's new lessons on React Three Fiber in his Threejs Journey course. Looking forward to watching new tutorials like this and learn from you.

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

    Organization is a key to success

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

    Holy.... wow. Ran into all those issues learning Fiber coming from three and knowing React... thank you so much. I was most torn up about the defaults changing... after this, I never understood the jsx components and how they worked. Thank you.

  • @stingray2107
    @stingray2107 2 роки тому +2

    Great video at the perfect time. I just started moving my three.js project from vanilla js to react, literally yesterday. I was searching for a good resource on r3f vs three.js and didn't find much, then this video suddenly pops up in my feed.

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

      Glad this was helpful!

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

      @@RabbitHoleSyndrome I followed your instructions and made some great progress, thanks so much, this video is truely an amazing resource.

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

    Amazing dude!

  • @pawan.choudhari
    @pawan.choudhari Рік тому +1

    This is really helpful!
    Thank you.

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

    Amazing work !!! Thank you ❤

  • @hernanj.gonzalez3461
    @hernanj.gonzalez3461 4 місяці тому +1

    Excellent, thanks!

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

    Hey can you please make another episode of this? Or perhaps a series? I know it will 100% be popular among this community. Lots of a great opportunity for growth.

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

    Great content !!! Please make more :D

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

    Wow, amazing, I learned so much :)

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

    please make more tutorials explaining react three library and three js PLEASE!!!!!

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

    Thanks for the video, it's really great and opened up my mind. I started with React Three Fiber but needed to have more control over the general parameters of my scene, like toneMapping and colorSpace, so I took some "vanilla" ThreeJS courses. Now I'm moving back to React Three Fiber. Thanks to you, now I am clear about the "attach" property and the whole logic behind React Three Fiber. You're awesome man. Your explanations are pretty clear and straightforward. 👍

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

    Execellent video - Title can be Fiber under the hood - side-by-side comparison!
    Thanks a lot.

  • @user-rq3uw2um9s
    @user-rq3uw2um9s Рік тому +1

    It's really helpful to me. thank u so much

  • @nyawho.
    @nyawho. Рік тому +2

    Another maybe handy tip:
    you can add attach="material1" through material6 for meshMaterial of cubes.
    Helps if you have individual images you'd want to attach to different sides like say a Minecraft Block

  • @kristianrykkje4255
    @kristianrykkje4255 6 місяців тому +1

    Great video!

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

    Great content man.

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

    Wow, this is by far the best explanation/introduction into react/fiber and three.js! I completely see why people would use fiber now. Thanks!

  • @Chriss-cn1ch
    @Chriss-cn1ch 6 місяців тому +1

    Very informational video thank you

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

    Really amazing. Kudos man. I already have a lot of experience with vanilla threejs. I wanted to see whether it was a good decision to use react-three-fiber. Thanks for this vid. You got yourself a subscriber