Procedural Mesh & Animation with the Official Unity Spline Package | Unity Tutorial

Поділитися
Вставка
  • Опубліковано 6 лип 2024
  • Learn how to use the Unity Spline Package to generate a smooth procedural mesh between a set of points.
    We'll dive into:
    ⚫ How to use the Official Unity Spline Package
    ⚫ How we can Animate a Spline at Runtime with MATH!
    ⚫ Challenges with Animating that Spline
    👨‍💻 As always, all code from this video is available on GitHub: github.com/llamacademy/chicke...
    🎮 Play Chicken Defense FREE on Itch.io: llamacademy.itch.io/chicken-d...
    📚 Resources:
    ⚫ Unity Spline Package Docs: docs.unity3d.com/Packages/com...
    ⚫ Mathy Definition of a Spline: en.wikipedia.org/wiki/Spline_...)
    🧡 Believe in LlamAcademy's mission and have received value from the videos? Here's how you can show your support:
    📚 Take my Unity ShaderGraph Course:
    www.gamedev.tv/p/unity-shader...
    👕 Get yourself some LlamAcademy merch: llamacademy.myspreadshop.com/
    Become a Supporter:
    🌟 Patreon: / llamacademy
    🌟 UA-cam Member: / @llamacademy or click the Join button on any video
    🌟 GitHub Sponsor: github.com/sponsors/llamacademy
    Use these affiliate links to do your Asset Store / Humble Bundle Shopping!
    💸 Check out the latest Humble Bundles www.humblebundle.com/software...
    💸 Publisher Sale! 50% OFF an entire publisher's Assets! Publisher changes weekly! assetstore.unity.com/publishe...
    💸 Save up to 50% on NEW Assets: assetstore.unity.com/?new_sal...
    Some links may be affiliate links, which at no additional cost to you, gives me a small portion of the purchase.
    #unitytutorial #tutorialtuesday #gamedev #tutorial #unity #llamacademy #gamedevelopment #spline
    Chapters:
    00:00 Topic Introduction
    00:25 What is a Spline?
    01:36 Get the Spline Package & SAMPLES!
    02:12 Making a Procedural Snake
    04:08 Spline Extrude Component (from Package)
    05:28 Animate the Spline with SnakeSplineAnimator (SnakeSplineAnimator.cs)
    08:05 Performance Analysis
    09:15 Closing Thoughts & How to Support LlamAcademy

КОМЕНТАРІ • 15

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

    Thank You for making this video.
    Bookmarking it for future reference 📚📖🕯💡

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

    Your channel is awesome! really, you always bring one step further.

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

    Nice vid, as per usual. Couple of thoughts:
    You could avoid clipping through the “head” capsule by locking the second knot in place relative to the head, and starting the sine calculations from the third knot. (Probably not that useful as you’ve dropped this implementation, but I felt the need to share anyway…)
    Using the “shaded + wireframe” option for the scene view is a great way to demonstrate how many triangles are being generated at the different detail levels, especially when the snake is somewhat camouflaged against a similarly dark green background.
    Thanks for continuing to share your knowledge! 😀

    • @LlamAcademy
      @LlamAcademy  2 місяці тому

      Great feedback for ways to improve this. Thank you 🙏!

  • @morrischma9565
    @morrischma9565 2 місяці тому

    Would you be able to make another video compary libarys this time for unity dungeon generators likeDungeon Architect, DunGen, RoomGen and any others on the assets store. I know these are high maintanace videos so i would understand the reservation, however your video on procedural destruction was excellant and unique among other gamedev youtubers.

    • @LlamAcademy
      @LlamAcademy  2 місяці тому

      I do want to do more of those, but they are very time consuming and right now I'm working on another project that is also time consuming. Once I get through some of this one I'll see if there are some opportunities to do more comparisons like that.

    • @morrischma9565
      @morrischma9565 2 місяці тому

      @LlamAcademy can't wait for the work in progress project. And glad to here an idea like that is in contention. Thanks for responding :)

  • @YoungMoneyFuture
    @YoungMoneyFuture 2 місяці тому

    Is it possible to add splines as sub containers to a non-humanoid creature like an octopus or unique monster NPCs?

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

      Yes, but as you saw here, animating those will be problematic

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

    Could you make a working bike chain using the spline system?

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

      Yeah, I think that could work.

    • @littleface7060
      @littleface7060 2 місяці тому

      @@LlamAcademy could "you" make a working bike chain using the spline system?

    • @littleface7060
      @littleface7060 2 місяці тому

      @@prezadent1 I know
      I just want him to show us how to use the spline system more

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

      Oh, me specifically. Probably not honestly. I’m sure I’ll cover other things with splines but doing a bike chain isn’t something that fits into any games I currently have planned.

    • @littleface7060
      @littleface7060 2 місяці тому

      @@LlamAcademy what about tank tracks?
      That would be good no?