Unlocking the Impossible: Rigging and Animating Nanite Meshes in Unreal Engine 5

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

КОМЕНТАРІ • 82

  • @wayneadams9102
    @wayneadams9102 11 місяців тому +2

    outstanding stuff.. this workflow is still valid in 5.3 as of today. :) Thanks man!

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

      Glad you found it useful!

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

      A change to the workflow would be not to bring the redundant block shape mesh at all. Or,rsther than adding a 0 opacity material to it, you can just hide it in game.

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

      @@ArghanionsPuzzlebox I used the small cube method like the big boy in the valley demo. :)

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

      Nice

  • @JasonAdank
    @JasonAdank 8 місяців тому +1

    Im trying to replicate this process, but I dont want to be doing my animation in an outside program, like you did with the side to side wobble and then using it is an animation clip. This is probably to complicated to answer here, but how would this process go if you wanted to setup a control rig inside UE for animation, instead of using prebaked anim clips?
    I tried following this process for my own model, and it seems to work.... though Im not sure. I cant test to see if the swapped-in nanite meshes are sticking to the bone because I cant access the joints in this new blueprint to do a simply fk test. (its just 'Rig" and thats it, no bone hierarchy). if I open up the skeleton or skeletal mesh imports and move the bone there, nothing updates in the new blueprint. Furthermore, if i try save the skeletal mesh (or skeleton) files wih the moved bone, still no update in the new blueprint, and when I go back and reopen the skeleton or skeletal mesh files, the bone is back in its original position - like it didnt save my transform.
    Any thoughts on if Im doing something wrong here? Or does this whole thing only work with an animation clips type workflow? Again, my end goal is to be able to setup a control rig....

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

    Nice, there are very very few people currently available who actually make unreal videos in very detail. 🙌❤️

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

    thank you so much for this!
    (for my future reference)
    12:25 for FBX export rigLP from blender options
    Include> limit to: selected objects [x](select)
    Geometry> smoothing groups : Face
    Armature> add leaf bones [_](de-select)
    (select)[x] Bake Animation> Sampling Rate: 0.1, Simplify: 0.0
    Export

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

    Thank you,
    our project just turned on Nanite (after the more recent updates)
    and I'm now testing it with our guns
    Cross fingers on finding no hidden performance issues

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

      Let me know how it goes.

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

      @@ArghanionsPuzzlebox we ran into an issue in 5.1 where nanite didn't support custom depth and stencil rendering which broke some stuff. But apparently that's been fixed in 5.2 so trying this again

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

      Oh I think they sorted it, yes.

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

    You are god like. So fare your tutorials have shown me the way to go, and your very easy to fallow! So appreciative Thank you!

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

    Amazing stuff! This will be useful when I bring the larger, more complex capital ships into play

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

    Very nice, I've actually built a few vehicles, nanite on custom skeletons, got the idea from the Ancient as well. Keep up the great work 👍

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

      Well done. I'm working on a socket system now for modular ships

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

      @@ArghanionsPuzzlebox I'm following so looking forward to anything you put out, and that sounds particularly epic!

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

      Cheers

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

    That sounds like a good idea.. Let me recap this.. you basically retargeted skeletal mesh using a nanite static mesh? Although that looks like it. I am wondering what would happen if the skeletal joints are weighted? I don't think that would work for that case..

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

      The mesh won't deform as you are not deforming the nanite one anyway, you are just updating the position of the mesh based off the socket of the bone.

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

      @@ArghanionsPuzzlebox so basically no mesh deformation at the joints? Like rigid bodies connected together?

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

      Yeah no deformations. This approach works great for mechanical designs. You can however create a hybrid between deformable non nanite meshes and nanite meshes.

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

    Awesome video man. Do you know of any performance issues running up large numbers of sockets?

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

      Not that I've seen. I've used this method to make a massive starship with over 100 parts moving and there are no issues

  • @РижаМавпа-ш8и
    @РижаМавпа-ш8и 11 місяців тому +2

    I would place two dislikes if I can. Wasting 32 minutes on an idea that takes 3 sentences to say, this is truly an art.

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

      Normally I would just ignore these sorts of comments as they are very unhelpful. But I appreciate the feedback. Please be mindful there are loads of people out there who need a lot of hand holding to achieve results in a software they are still learning. I am unsure why people think that short form tutorials for their own benefit is also the benefit of the creator. This is free content after all, I also need to make a living. If you feel you have wasted your time, please formulate a brand new tutorial that is lean and that stops people from falling in the same trap as you have.

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

    Dude I love this so stoked to try this

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

      Ya the naming convention is probably why I never got it working

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

      Oh, you already tried it?

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

      @@ArghanionsPuzzlebox not this workflow but I had a few unsuccessful attempts. One decent attempt locking the mesh location and rotation to sockets. But was not a good solution overall.

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

    Great stuff man!
    I have a problem: would this give me better performance over a normal skeletal mesh actor with an animation playing on it?
    My current skeletal mesh has 6k tris but I have to spawn about 150 of them at the same time which tanks performance, would using this nanite trick help? The "rig" skeletal would have a simple 500 tris mesh just for the bone and then the 6k poly mesh would become the nanite one

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

      Yes, I think you should get better performance. Just be mindful that you can't deform the mesh.

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

      @@ArghanionsPuzzlebox Unreal 5.1 has world position offset enabled for nanite. Does that enable some possibilities?

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

      Should do, not tested it yet though.

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

      @@ArghanionsPuzzlebox I did test it. Vertex animation works well in 5.1 with nanite but there are still some weird lighting bugs and distortion, it's still a preview so I suspect it will improve in the future

  • @Drakuba
    @Drakuba 10 місяців тому +1

    dos this method count as socketing the nanite mesh onto skeleton?
    Im working on RTS and need every little bit of performance i can get, and somewhere i read socketing onto skeleton is the way to go since the socketed thing takes its world info from the bone instead of keeping track of its own

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

      I wound say yes but not really got any tech info to back it up.
      You could always do a test mesh with and without nanite and see the performance comparison

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

      Ok ill do that, thanks anyway👍

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

    Thanks for this tutorial! How do you make a custom rig with this method? Let's say I imported a car model and I want to make a custom rig for it.

  • @Viscte
    @Viscte 5 місяців тому +1

    Will this work with physics?

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

    wait how do we do the construction script?

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

    Does this reduce the benefits of nanite? Part of its benefits come from the fact that the mesh is static and it can work with that. If the mesh moves does that have a performance penalty? Is that performance penalty greater than the savings nanite gives?

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

      There are no performance lost by doing this. It's still a static mesh that is now moving according to a bone structure.

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

    Do you know if this technique works with control rig?

  • @wayneadams9102
    @wayneadams9102 9 місяців тому

    So a question.. I've got this entire workflow in successfully, however if I introduce a new animation, which uses the same skeleton, naming and hierarchy, the newly introduced animation imports correctly, but the nanite meshes are not aligned correctly in the new animation. Is this an issue you are familiar with?

    • @ArghanionsPuzzlebox
      @ArghanionsPuzzlebox  9 місяців тому

      That shouldn't be the case as this setup just ensures your meshes are aligned to the original skeleton you've created. So not sure why that is happening, but I did not experience this issue.

    • @wayneadams9102
      @wayneadams9102 9 місяців тому

      @@ArghanionsPuzzlebox So update on what I've learned.. every animation has to start in the same pose you exported the original rig and mesh parts from.
      EDIT: Workaround appears to be just making each initial frame the same in every anim then trimming that frame off in Unreal..
      EDIT: Workaround breaks when BP is compiled.. so scratch that.

    • @pascaldeery4007
      @pascaldeery4007 3 місяці тому

      @@wayneadams9102 Hi I'm currently having the same issue, did you ever find a work around that works?

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

    Impressive

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

    What are does green bones?

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

      Hi
      This is an indicator that the bone chain is part of an IK Rig Constraint (in blender)

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

      @@ArghanionsPuzzlebox oh ok thanks

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

    I watched the tutorial a bunch of times and my static meshes don't rotate properly with the skeleton. Like the legs are fine on my character but the arms are still T-posing but still moving with the skeletons animation, but the animation has the arms down and rotated. I did find a way to fix it by snapping to target and changing all the origins to where the bones should be, but that's tedious and I feel like it should work the way you did it.

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

      Ok for anyone else that might have the same issue, you have to enable "Use Ref Pose on Init Anim" on your skeleton animation category

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

      Are you doing this in 5.2 by any chance?

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

    This is great, thanks. Could you give me advice how to name multiple meshes driven by one joint and how to connect them in UE5?

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

      Simple solution for my problem is to merge all the meshes that need to be animated with one bone only. I did it in Maya and everything works. Thanks for the tutorial!

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

      In theory that works, but you did raise a valid point of adding multiple separate meshes to the same bone. Not sure on the solution.

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

      @@ArghanionsPuzzlebox You can also use traditional skinned meshes alongside with nanite meshes. I did it for organic and some smaller parts of the car rig I work on.

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

      I'm working on a character that will be a normal Skelton mesh but with nanite armor pieces on for maximum quality :)

  • @and-oh9ko
    @and-oh9ko Рік тому

    WARNING: If the skeleton's mesh is completely encased by a nanite mesh, Unreal will not think to render it, and that will cause animations not to play. Just make sure the original mesh is physically appearing outside the nanite pieces, before you add the material that hides it, and Unreal will understand it correctly and play the animations.

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

      Oh, haven't noticed that. Thank you for the tip. My newest method of doing this doesn't include an invisible mesh at all, I just export bones for it and ensure that the program where the skeleton originates from (blender) has the "transparent mesh" so that I can align everything properly.

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

    Dude this probably sounds stupid but I am having a lot of trouble starting new projects and opening existing projects in UE5. It keeps getting stuck at 45% compiling shaders. I hear people say you only have to do it once but mine does it sometimes opening an existing project. Plus you need to be able to start different projects regularly without having to wait an hour each time. Any way at all you could make a quick vid on this topic maybe showing how you start a project or open existing or is this just how it always is?

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

      Hi. Are you activating Ray tracing when you create a new project?

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

      @@ArghanionsPuzzlebox I have tried both ray tracing and without. No difference for me. I have followed tons of videos on changing config files and everything no luck. How long does it take you to start a new project on average? Is there a certain template that is more efficient than others?

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

      Really sorry to hear that. Haven't experienced it myself but a simple blank scene with no Ray tracing takes about 2 mins to open, sometimes less than a minute.

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

      Only time I have trouble like that is usually because I needed to update to a studio driver. Running UE5 I learned to check daily for new studio driver updates to my mother bored.

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

      Or set it to automatically update upon new drivers. Hope help. But I could be something else of sorts. This is one thing that work for me tho when I learned to keep my motherboard updated just as like the operating system.