Shader Graph Flipbook node sprite animation - usinty shader graph tutorial 3

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

КОМЕНТАРІ •

  • @mbalrog6
    @mbalrog6 5 років тому +3

    When I placed the Floor before the Modulo, in order to fix this on my animation I subtracted 1 from my frame count because I was getting a blank in a 3 x 3 grid animation sheet. This worked. I suspect the same thing is happening to you, you are getting that last frame with the blank again when you moved the floor behind the modulo. This helped me a lot thank you, I needed a flipbook animation for a line renderer in unity, I had to use a shader to do it. THANK YOU, THANK YOU, THANK YOU!

    • @happyspider1800
      @happyspider1800  5 років тому +1

      Thanks for sharing this.
      I'm very happy I helped.

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

      Yes it's not a bug, the params need adjusting to compensate for the order of the operations.

  • @8bitshrine399
    @8bitshrine399 4 роки тому

    thank u sir.....thank u soooooooo much.... google could not helped me but only your tutorial did.... thanks once again .... i have subscribed your channel and liked your videos toooo

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

    Very good video, I used the Animation tab trying to get everything Hand Animated including the VFX with the particle system. but shader Graph seem overall better, more flexibility implementing at least with my knowledge

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

    Why would you want to animate via a shader instead of the built in animator tools? Seems way more complicated... is there any advantage?

  • @Brave-Park
    @Brave-Park 3 роки тому

    great thanks. wonderful tutorial

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

    Thanks for the video, it was super helpful! :)

  • @bfvanish
    @bfvanish 4 роки тому

    Great! so helpful~ Thanks for sharing!

  • @joanfotli
    @joanfotli 4 роки тому

    Mega useful tip! thank you so much!

  • @CleisonRodriguesComposer
    @CleisonRodriguesComposer 4 роки тому

    Great tutorial!
    Thank you!

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

    thanks helped me out

  • @silvaright
    @silvaright 5 років тому

    Thanks mate, keep it up!

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

    Thanks !

  • @itsBigDaddio
    @itsBigDaddio 5 років тому

    Thanks for this!

  • @TheFirstIG
    @TheFirstIG 5 років тому

    Thanks for the Video ! that was actually helpfull ! was searching for a solution for how to get the "Max Frames" to work with ASE. So the modulo is Fmod in ASE

  • @Evilc00kies
    @Evilc00kies 4 роки тому

    תודה רבה

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

    So, this is a couple of years late but I believe I know why you need to call floor before modulo in your math calculations. This is just my assumption so take it with a grain of salt
    Let's say that we're at a time multiplied by speed of 10.95. Let that variable be "T".
    Now T = 10.95
    If you floor T first, you get the value of 10. Let's say you modulo by (M = 10). That means that your final result will be zero.
    However, when you start with modulo before flooring, T gets either rounded or ceiled. Let's assume that it gets rounded to 11. This will return a modulo result of 1. At this point you don't even need to floor since you're already left with an integer value.
    I believe the reason why this happens is that the modulo method requires 2 integer parameters in order to work. If you plug in T directly without flooring it. The modulo method approximates it to the nearest integer but not by flooring it. This needs to happen because you can't modulo a float, which is T, with an integer, which is M.
    This is just an educated guess so I'll need someone to back this up

  • @c14n_
    @c14n_ 4 роки тому

    Thank you

  • @Shibis
    @Shibis 4 роки тому

    Thanks

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

    Is their a way to add a start frame

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

    Is there a way to specify each frame duration in shader graph?

  • @amisner2k
    @amisner2k 5 років тому

    7:49 - Was that a Sins of a Solar Empire reference I heard? :D

    • @happyspider1800
      @happyspider1800  5 років тому +1

      I'm afraid not.
      Just trying to be Dr. Frankenstein.

  • @sivapandianreffreference
    @sivapandianreffreference 4 роки тому

    Thanks,,

  • @EwertonMoreira80
    @EwertonMoreira80 4 роки тому

    Great Tutorial. quick question: how would you do the character moving around, not only walking in the same place? Imagine that you have a piece of paper and the character is moving around.

    • @happyspider1800
      @happyspider1800  4 роки тому +1

      first of all, I won't suggest using a shader like I did as the first option for creating a 2D game character.
      unity has multiple great tools for 2D game making. check these 2 tutorials for the "correct" approach for what you are looking:
      ua-cam.com/video/dwcT-Dch0bA/v-deo.html
      ua-cam.com/video/hkaysu1Z-N8/v-deo.html
      anyway, no matter how you make your animation cycle - using this shader or something more common.
      moving it on the axis (x, y and z), you will write a script that will change the GameObject location for every frame and try to sync it with the frames per seconds of the spritesheet/flipbook.
      see the mentioned tutorial

    • @MrQwerty2524
      @MrQwerty2524 4 роки тому +2

      "Quick question" followed by ""teach me the basics of game development"", lmao.

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

    This approach is flawed, go learn Unity somewhere else.

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

    thank you