I wish I knew this before using React Three Fiber

  Рет қаралды 108,893

Rabbit Hole Syndrome

Rabbit Hole Syndrome

Күн бұрын

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 13 сағат бұрын
This is a lovely introduction! I love that you compared the two libaries side by side. Your explanations are concise and effective. Thank you!
@Cloud9er
@Cloud9er Жыл бұрын
Incredibly helpful, can't wait to learn more from these under-the-hood videos you make.
@shiftstage7892
@shiftstage7892 Жыл бұрын
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!
@Tyler-zb6ec
@Tyler-zb6ec Жыл бұрын
Great documentation! Seeing the vanilla and react js side by side helps a ton
@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
@user-bv4xr3yd8w
@user-bv4xr3yd8w 6 ай бұрын
This is an absolutely awesome overview. Your explanations are crystal clear, despite me not having used Three in about a year.
@mobeen360
@mobeen360 Жыл бұрын
This channel gonna blow up. Thanks, man. Keep up the quality content.
@ooogabooga5111
@ooogabooga5111 Жыл бұрын
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.
@omelhorcanaldemodsparamine8231
@omelhorcanaldemodsparamine8231 Жыл бұрын
this is great, I looked all around for it. Thank you very much!
@goshballs
@goshballs Жыл бұрын
This content quality is insane Please keep going!!
@dvikauglaumishrauca
@dvikauglaumishrauca 3 ай бұрын
One of the best videos I've watched ever on animation, information, presentation and सरल
@ferrazf9
@ferrazf9 2 ай бұрын
Thank you so much for this video. A solid explanation on all of these concepts is an absolute godsent.
@aj35lightning
@aj35lightning Жыл бұрын
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
@RabbitHoleSyndrome
@RabbitHoleSyndrome Жыл бұрын
I'm happy this helped you out! 🙂
@dalyryl
@dalyryl 11 ай бұрын
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
@BrightSideDeveloper
@BrightSideDeveloper Жыл бұрын
Incredible Video! Your amazing for creating this!
@jx4172
@jx4172 Жыл бұрын
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!
@RRits57
@RRits57 Жыл бұрын
really good wish I had this one year ago, bumped into much of these issue you are addressing.
@neneodonkor
@neneodonkor 7 ай бұрын
R3F seems simple and concise. Thank you for the explanation
@kovacsfulop8275
@kovacsfulop8275 Жыл бұрын
I love that you go into the details. This is explanation, not just demonstration. Thank you for the video!
@RabbitHoleSyndrome
@RabbitHoleSyndrome Жыл бұрын
Glad it helped! 😃
@mananshah3248
@mananshah3248 Жыл бұрын
By far one of the best online dev tutorials I've ever seen! Seriously - great work.
@RabbitHoleSyndrome
@RabbitHoleSyndrome Жыл бұрын
Really appreciate it, thanks!
@austinj367
@austinj367 Жыл бұрын
Great vid, high quality and organization of the material is on point 👌
@Manny-mc3rx
@Manny-mc3rx 3 ай бұрын
Great Explanation! Thanks for this video
@simon3527
@simon3527 Жыл бұрын
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!
@RabbitHoleSyndrome
@RabbitHoleSyndrome Жыл бұрын
Thanks for the feedback! 😃
@dylanking165
@dylanking165 Жыл бұрын
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 Жыл бұрын
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
@SkyFortressDamocles
@SkyFortressDamocles Жыл бұрын
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!
@RabbitHoleSyndrome
@RabbitHoleSyndrome Жыл бұрын
Thank you Bryce!
@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!
@RabbitHoleSyndrome
@RabbitHoleSyndrome Жыл бұрын
Glad it helped!
@RobertWildling
@RobertWildling 6 ай бұрын
I am not a React nor a React Fiber user, but this comparison is an absolut insight! - Thank you for that! Subscribed!
@userrrfriendly1908
@userrrfriendly1908 Жыл бұрын
This it by far the best tutorial for someone to start their three.js/R3F journey. Godd job man!
@RabbitHoleSyndrome
@RabbitHoleSyndrome Жыл бұрын
Thanks, glad it helped!!
@MD-vc7oh
@MD-vc7oh Жыл бұрын
what an amazing explanation video keep it up you deserve more views
@gubatenkov
@gubatenkov Жыл бұрын
Finally content we all are lookig for!
@jobhatti
@jobhatti Жыл бұрын
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 😄
@RabbitHoleSyndrome
@RabbitHoleSyndrome Жыл бұрын
Awesome, glad it helped! 😃
@ecaIos
@ecaIos Жыл бұрын
Love this man, keep the videos coming
@theentertainment7239
@theentertainment7239 Жыл бұрын
this program works great! exactly as I wanted
@valentinkrajzelman4649
@valentinkrajzelman4649 6 ай бұрын
incredible vid man thanks
@ewwitsantonio
@ewwitsantonio 11 ай бұрын
Really excellent demonstration!! Thanks so much for creating this video and sharing it with us.
@RabbitHoleSyndrome
@RabbitHoleSyndrome 11 ай бұрын
You bet! Thanks for watching 😃
@ghiasyalexandre3546
@ghiasyalexandre3546 Жыл бұрын
BROO this is exactly what I was looking for!
@alazyartist
@alazyartist Жыл бұрын
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.
@RabbitHoleSyndrome
@RabbitHoleSyndrome Жыл бұрын
Glad it helped!
@TheKeyToMusicOfficial
@TheKeyToMusicOfficial Жыл бұрын
great video. looking forward to watching more of your tutorials. nice side by side. and glad you keep going deeper
@RabbitHoleSyndrome
@RabbitHoleSyndrome Жыл бұрын
Thanks for watching!
@milesrae2950
@milesrae2950 Жыл бұрын
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! 🙌🏻
@RabbitHoleSyndrome
@RabbitHoleSyndrome Жыл бұрын
Thanks for the great feedback Miles!
@imasdance4784
@imasdance4784 Жыл бұрын
the side by side is perfect for my learning style. thank you so much
@RabbitHoleSyndrome
@RabbitHoleSyndrome Жыл бұрын
Thanks for watching!
@AlexandreRangel
@AlexandreRangel Жыл бұрын
Very good material, thank you!
@marcoaccardi
@marcoaccardi Жыл бұрын
Excellent! Please keep posting other videos about R3F if you feel like to! :)
@Fleischegutt
@Fleischegutt Жыл бұрын
Thank you for this excelent video. Very helpful 👍
@kwongster
@kwongster 8 ай бұрын
extremely helpful to have - thank you for breaking down the concepts to better understand three/fiber
@RabbitHoleSyndrome
@RabbitHoleSyndrome 8 ай бұрын
You bet!
@georgekrax
@georgekrax Жыл бұрын
Amazing video! Really helpful 👌
@threeveloper
@threeveloper Жыл бұрын
Great video, good luck with your KZbin channel! ✌️
@RabbitHoleSyndrome
@RabbitHoleSyndrome Жыл бұрын
Thanks, I appreciate it!
@hauvert_
@hauvert_ 11 ай бұрын
Subbed! I'm learning three js/fiber/webgi keep the videos coming.
@craigkaufman5108
@craigkaufman5108 Жыл бұрын
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!
@RabbitHoleSyndrome
@RabbitHoleSyndrome Жыл бұрын
Great to hear, thanks for watching!
@nikhilpsathyanathan
@nikhilpsathyanathan Жыл бұрын
Superb tutorial, really helped me to understand rtf
@RabbitHoleSyndrome
@RabbitHoleSyndrome Жыл бұрын
Glad it helped!
@jaysistar2711
@jaysistar2711 Жыл бұрын
I like your idea of deep diving everything. I'm hoping that you're making more videos!
@RabbitHoleSyndrome
@RabbitHoleSyndrome Жыл бұрын
Thanks!
@AmitErandole
@AmitErandole Жыл бұрын
So cool this was. Do more!!
@ffcdhxhhs2488
@ffcdhxhhs2488 Жыл бұрын
Really really helps, thanks a lot
@markwasfy9230
@markwasfy9230 Жыл бұрын
really helped me understanding the core of three js, thanks !
@RabbitHoleSyndrome
@RabbitHoleSyndrome Жыл бұрын
Great to hear!
@VMNthemaster
@VMNthemaster Жыл бұрын
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...
@avivkandabi7088
@avivkandabi7088 Жыл бұрын
Great content !!! Please make more :D
@YomiTosh
@YomiTosh Жыл бұрын
This is soo good! Thanks!
@papa4614
@papa4614 11 ай бұрын
Amazing work !!! Thank you ❤
@RabbitHoleSyndrome
@RabbitHoleSyndrome 11 ай бұрын
You bet, thanks for watching!
@abernier75
@abernier75 Жыл бұрын
Excellent one, really 👌🏻Please make other ones on the same topic
@zeenuexe8362
@zeenuexe8362 10 ай бұрын
loved it. never touched 3js, but you're making me wanna try.
@RabbitHoleSyndrome
@RabbitHoleSyndrome 10 ай бұрын
Happy to help!
@federiconicolasgarcia6370
@federiconicolasgarcia6370 Жыл бұрын
Amazing dude!
@fatihinci1858
@fatihinci1858 Жыл бұрын
Dude, you are amazing!!! 💯💯💯💯💯
@andresdiazlopez5365
@andresdiazlopez5365 Жыл бұрын
awesome, thanks. Greeting from Colombia
@pawan.choudhari
@pawan.choudhari Жыл бұрын
This is really helpful! Thank you.
@RabbitHoleSyndrome
@RabbitHoleSyndrome Жыл бұрын
Glad it helped!
@dalhaan
@dalhaan Жыл бұрын
Awesome video! Really helped me to understand the relationship between react-three/fiber and three ❤
@RabbitHoleSyndrome
@RabbitHoleSyndrome Жыл бұрын
Glad it helped!
@hernanj.gonzalez3461
@hernanj.gonzalez3461 3 ай бұрын
Excellent, thanks!
@user-rq3uw2um9s
@user-rq3uw2um9s Жыл бұрын
It's really helpful to me. thank u so much
@kozmicluis2552
@kozmicluis2552 11 ай бұрын
This is the video I was looking for all along, took me a while to get the right keywords on the KZbin search field to finally get to this point.
@RabbitHoleSyndrome
@RabbitHoleSyndrome 11 ай бұрын
Glad it helped! Curious which search terms worked & didn't work for you?
@elissitdesign
@elissitdesign Жыл бұрын
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!
@Ta9i
@Ta9i Жыл бұрын
this not fair at all man you make this awsome and that's it !!! keep up the good content
@jizhang2407
@jizhang2407 Жыл бұрын
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.
@RabbitHoleSyndrome
@RabbitHoleSyndrome Жыл бұрын
Thanks for watching!
@idcemail123
@idcemail123 Жыл бұрын
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
@RabbitHoleSyndrome
@RabbitHoleSyndrome Жыл бұрын
Glad this helped!
@shakirulhasan
@shakirulhasan Жыл бұрын
My fellow developers, you have come to a good mentor 😌
@FullMe7alJacke7
@FullMe7alJacke7 Жыл бұрын
Instant sub. Great stuff!
@spinoff2011
@spinoff2011 2 ай бұрын
Great video thanks a lot! Help understand many things of both package!! 😊😊
@stanleychukwu7424
@stanleychukwu7424 Жыл бұрын
subscribed, would love to see all of the videos you've got lined up for the future
@RabbitHoleSyndrome
@RabbitHoleSyndrome Жыл бұрын
Thanks for the sub!
@_flavio_silva
@_flavio_silva Жыл бұрын
Wow, amazing, I learned so much :)
@gekkenhuis4863
@gekkenhuis4863 Жыл бұрын
Amazing video, good to see something more fundamental than other more pratical, hands-on tutorials out here.
@RabbitHoleSyndrome
@RabbitHoleSyndrome Жыл бұрын
Glad it helped!
@ryanritten1977
@ryanritten1977 Жыл бұрын
Great video! Subscribed! Looking forward to more content!
@RabbitHoleSyndrome
@RabbitHoleSyndrome Жыл бұрын
Thanks Ryan!
@louielee3583
@louielee3583 Жыл бұрын
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!
@RabbitHoleSyndrome
@RabbitHoleSyndrome Жыл бұрын
You're very welcome, thanks for the sub!
@gandalf4235
@gandalf4235 Жыл бұрын
Amazing job comparing these two, thank you
@RabbitHoleSyndrome
@RabbitHoleSyndrome Жыл бұрын
Thanks for watching!
@fordoxaal3291
@fordoxaal3291 Жыл бұрын
I actually learned something from this video -- very well done.
@RabbitHoleSyndrome
@RabbitHoleSyndrome Жыл бұрын
Glad it helped!
@jervansahd3657
@jervansahd3657 Жыл бұрын
Great content man.
@josegkurszewski8363
@josegkurszewski8363 Жыл бұрын
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. 👍
@RabbitHoleSyndrome
@RabbitHoleSyndrome Жыл бұрын
Thank you, really glad it helped!
@Chriss-cn1ch
@Chriss-cn1ch 5 ай бұрын
Very informational video thank you
@dalvandi
@dalvandi Жыл бұрын
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!
@RabbitHoleSyndrome
@RabbitHoleSyndrome Жыл бұрын
Glad it helped!
@kristianrykkje4255
@kristianrykkje4255 5 ай бұрын
Great video!
@xorlop
@xorlop Жыл бұрын
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.
@RabbitHoleSyndrome
@RabbitHoleSyndrome Жыл бұрын
Glad it helped! 😃
@CemMehmetOnal
@CemMehmetOnal Жыл бұрын
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
@RabbitHoleSyndrome
@RabbitHoleSyndrome Жыл бұрын
Glad it helped and thanks for the sub!
@farzanehsefidabi5957
@farzanehsefidabi5957 Жыл бұрын
Wow, the video and the explanation was awesome!!! THANKS 👍We wish to see more tutorials in your channel!
@RabbitHoleSyndrome
@RabbitHoleSyndrome Жыл бұрын
Thanks for the feedback! 😃
@stingray2107
@stingray2107 Жыл бұрын
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 Жыл бұрын
Glad this was helpful!
@stingray2107
@stingray2107 Жыл бұрын
@@RabbitHoleSyndrome I followed your instructions and made some great progress, thanks so much, this video is truely an amazing resource.
@punisherash388
@punisherash388 4 ай бұрын
Awesome video
@alejandroz1606
@alejandroz1606 4 ай бұрын
Thanks a lot for this video
@xeon789
@xeon789 Жыл бұрын
exactly what i needed
@tech3425
@tech3425 Жыл бұрын
My first time seeing a video from this channel! Very engaging content. Subbed 5 mins in
@RabbitHoleSyndrome
@RabbitHoleSyndrome Жыл бұрын
Awesome, thanks for the sub!
@nyawho.
@nyawho. Жыл бұрын
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
@hamzabob1603
@hamzabob1603 Жыл бұрын
Thanks bro that was easy to anderstand
@AstraRudra
@AstraRudra Жыл бұрын
Execellent video - Title can be Fiber under the hood - side-by-side comparison! Thanks a lot.
@RabbitHoleSyndrome
@RabbitHoleSyndrome Жыл бұрын
Thanks for the feedback!
@sikfreeze
@sikfreeze Жыл бұрын
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.
@RabbitHoleSyndrome
@RabbitHoleSyndrome Жыл бұрын
I’m glad it helped!
@mjmj007a
@mjmj007a Жыл бұрын
Great Job and Thank You...
@schuylergood4897
@schuylergood4897 10 ай бұрын
amazing!
I wish I knew this before using Geometry Nodes (Blender)
1:24:14
Rabbit Hole Syndrome
Рет қаралды 158 М.
React Three Fiber (R3F) - The Basics
1:10:56
rithmic
Рет қаралды 42 М.
КАК ГЛОТАЮТ ШПАГУ?😳
00:33
Masomka
Рет қаралды 2,1 МЛН
BRAWLER MUTATIONS WILL BREAK THE GAME! - Brawl Talk
09:34
Brawl Stars
Рет қаралды 25 МЛН
Kitten has a slime in her diaper?! 🙀 #cat #kitten #cute
00:28
You might not need useEffect() ...
21:45
Academind
Рет қаралды 121 М.
Three.js personal portfolios are amazing...
13:05
Developer Filip
Рет қаралды 434 М.
Three.js Optimization - Best Practices and Techniques
17:47
Valentin's coding book
Рет қаралды 27 М.
$0 Embeddings (OpenAI vs. free & open source)
1:24:42
Rabbit Hole Syndrome
Рет қаралды 238 М.
Create the Earth with THREE.js
20:27
Robot Bobby
Рет қаралды 21 М.
I found more incredible 3D personal portfolios!!!
19:12
Developer Filip
Рет қаралды 143 М.
How to Learn Three.js in 2023 ( Full Guide )
6:41
Visionary 3D
Рет қаралды 62 М.
3D GAMES in JAVASCRIPT??!
9:50
Theo - t3․gg
Рет қаралды 39 М.
8 Design Patterns | Prime Reacts
22:10
ThePrimeTime
Рет қаралды 370 М.
Распаковка айфона под водой!💦(🎥: @saken_kagarov on IG)
0:20
Взрывная История
Рет қаралды 10 МЛН
Broken Flex Repair #technology #mobilerepair
0:55
ideal institute aligarh
Рет қаралды 15 МЛН