Loading Animated Characters in React Three Fiber

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

КОМЕНТАРІ • 68

  • @CodeWorkshops
    @CodeWorkshops  3 роки тому +12

    This has been one of the most popular videos so I'm working on a new character animation video that includes multiple animations controlled by input, and blending between animations. Leave a comment if there's anything specific you'd like to know more about and I'll try to include it.

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

      Love the video, I personally would love to see how to control animations and blend between them but also how to keep the character's new position/state after playing an animation, instead of looping endlessly. Looking forward to the next one!

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

      waiting for this!

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

      Hey this video is amazing and when I use your gbl and component everything works, but when I follow the video and use my own, it doesn't load in. Any thoughts as to why? I used the same character and followed steps exactly just using a different animation

    • @James-uv7zt
      @James-uv7zt 2 роки тому

      third person camera following a animating model would be amazing if possible!!

  • @andrewwoan
    @andrewwoan 3 роки тому +13

    thank you so much! I'd love to see more react three fiber. ur like the only channel that does stuff with react three fiber

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

      There will be more coming soon! Working on a new tutorial now.

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

    great, simple straight to the point just what I needed!

  • @shettyshashank
    @shettyshashank 5 місяців тому

    Thank you very much, I had issue with animations on r3f

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

    Thank you soo much for this! I was looking like crazy a way to find out the name of the animation!!!! Thank you!

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

    Hey, i really love this video and i would like to see more of the react three fiber, love the content

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

      I’m glad it was helpful! Got a new R3F video coming soon on adding a physics system to a scene.

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

    cool brother i really love it❣

  • @tinabremer9544
    @tinabremer9544 10 місяців тому

    Is it possible to display the current position during the animation?
    For example, if I want to manually set the angle by which the arm should be rotated. For example to manually change the rotation angle of the bon (arm) which i created in blender.

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

    Great Vedio

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

    awesome tutorial thank you so much 🤟

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

    Beautiful

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

    Thanks, you saved my life!

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

    Great Content, I'm a React Developer and I do blender for fun sometimes, this is really great project.
    I wonder if you could guide on exporting multiple different animation to the model

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

      I am working on some new updated content using the latest version of react-three-fiber that will include covering this topic. I'll leave a follow up comment here when that video comes out.

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

      @@CodeWorkshops looking forward))

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

      @@CodeWorkshops Hey great videos, thanks! I also need to know how to attach multiple animations to the same model. Did you finish this video? Thanks! :)

  • @user-tt6nc6mo7k
    @user-tt6nc6mo7k 3 роки тому +3

    Great content. Would appreciate it if you could zoom in on anything with text like code editor, file explorer etc. while recording since even for me on a 24" 1080p monitor I struggled to read it.

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

      Thank you for the feedback, I'll keep that in mind for the next video.

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

    Hi. It says: SyntaxError: Unexpected token K in JSON at position

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

    love your content

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

    I am not able to export the model correctly , after export it only show black or white circle, tried to join them together but nothing works. its been 2 days please help, i have to submit project

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

    Thank you of France ;) ;)

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

    Great tutorial !

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

    Great content. One question though, How to add velocity to this character?

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

    can you please teach about how to import OBJ in React? Thank you so much

  • @116panton
    @116panton 2 роки тому

    cool, but how do we play multiple actions at once? I can't seem to user traverse or foreach with it.

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

    how to add multiple animation in blender, and play it with condition in react three

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

    i can't play the animation..it throws an error "Cannot read properties of undefined (reading 'play')"..any help?

  • @KhoaPham-fd3xz
    @KhoaPham-fd3xz 3 роки тому +1

    tks u very much love u

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

    Thank you!

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

    Hi, nice job, very instructive... Is it possible to load multiple animations in the same model? Happy 2021

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

      Indeed it is. In fact, if you look in the Code Sandbox for the finished project there is another file called Sphere.js. If you replace the Kick component with the Sphere component you will see an example of an animation with two actions on it. You can even click on the Sphere to switch actions. In Blender, you will need to use the action editor to attach all of the actions you want to be exported.

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

      They should all come through as named keys on the actions object returned by useAnimations hook.

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

      @@CodeWorkshops Sorry, blender newbie... when I go in action editor and switch to kick action, it removes tpose animation. When finishing process, I see only one action in the log. How can I add the new animation, instead of replacing? Do I need to add new action? or push down into nla stack? That would be super nice to embed multiple animations , but I did not understand how to add multiple :-)

  • @aditya-ri4of
    @aditya-ri4of 3 роки тому

    Its too good

  • @matthewe.proteau6100
    @matthewe.proteau6100 Рік тому

    How do i stop the animation once its played once

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

    Such a great video ! Question, I've imported a 3D model and in blender, the animation is inside a NLA/task 001 and this can't be rename, so in the object from fiber, the animation is called "task 001" but with a space, how am I suppose to call it nowing I can't use space when I call the play method ? actions.task 001.play() is impossible

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

      The gltf will have renamed the action for you to avoid spaces. You can find the name by console logging the value of actions at any point in your component after calling the useAnimations hook. That will log the shape of the actions object to your console and show you the name of the action you should use. Thanks for the great question, I hope that helps.

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

      @@CodeWorkshops ok, so I tried to console logging the value and it's still Task 001 in the actions. Is there anyway I could send you the model I'm trying to use ?

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

      @@sam974fe In javascript, you can also address object properties with square brackets like this. action['Task 001'] You could try that. Happy to chat on Discord too if you want to follow up, the link to join can be found on the channel page.

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

      @@CodeWorkshops it works yes, thank you !

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

    can we make this animation play on a Click Event ?

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

      Indeed. You could remove the useEffect hook that calls actions.Armada.play(); and instead call that in any onClick handler.

  • @liamj.a.macdonald2791
    @liamj.a.macdonald2791 3 роки тому

    Running into a bunch of trouble trying to get this to run in VS Code? It has to do with the @react-three/drei dependency, can't figure it out

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

      Since this video was released Drei released an update that changed the import paths. That could be the issue. You might want to try changing any import statements to import from "@react-three/drei" and not include any paths like "@react-three/drei/useAnimations" If you still are having issues after that there are people who can help out in the Channel Discord.

    • @liamj.a.macdonald2791
      @liamj.a.macdonald2791 3 роки тому

      @@CodeWorkshops thanks for the reply, I’ll let you know how it goes!!

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

      you were correct, now I can just type "import { OrbitControls } from "@react-three/drei";

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

    does this code still work? as i cant get it to find the
    import { OrbitControls } from "@react-three/drei/OrbitControls"

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

      Thanks for calling this out. The drei package has been updated and changed import paths since this tutorial was recorded. You should be able to fix it by removing /OrbitControls and importing directly from "@react-three/drei/OrbitControls" This applies to any other imports from drei. Here's a code sandbox updated with all latest version packages and fixed imports. codesandbox.io/s/react-three-fiber-importing-scenes-with-actions-from-blender-updated-npfcs?file=/src/App.js

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

    hello, do you see it possible to change the animation by calling a function?

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

      Hi Fritz, you can see an example of switching animations in this code sandbox. codesandbox.io/s/react-three-fiber-animation-mixer-gm4fx I also have a video about this code sandbox which shows how to switch between multiple animations. Hope it's helpful.

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

      @@CodeWorkshops Thank you so much!

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

    Source code pls

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

    Hey bro i saw an advertisement before this tutorial. How it's possible when yu have less than 1k subs? I think google is cheating now 😅

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

      Yeah UA-cam started putting ads on every channel even if they’re not monetized. Sorry about that, pretty lame.

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

      @@CodeWorkshops Damn that's so unfair. Is there a way to control it from the creator's end?

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

    joli fuckig chit te amo

  • @KanwaljeetSingh-ml5lc
    @KanwaljeetSingh-ml5lc Рік тому

    Very helpful content. I appreciate your efforts @CodeWorkshop

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

    Hi. I'm following your tutorial but got stuck on the animation part. I downloaded a model from the internetz so I'm not sure what's the animation called even using console.log:
    {}
    05_Colibri_Bird.001Action: (...)
    05_Colibri_Bird.001Action.001: (...)
    05_Colibri_Bird.001Action.003: (...)
    ArmatureAction: (...)
    ArmatureAction.002: (...)
    get 05_Colibri_Bird.001Action: ƒ get()
    get 05_Colibri_Bird.001Action.001: ƒ get()
    get 05_Colibri_Bird.001Action.003: ƒ get()
    get ArmatureAction: ƒ get()
    get ArmatureAction.002: ƒ get()
    [[Prototype]]: Object