2D Sprites In 3D Games - Godot Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ม.ค. 2025

ความคิดเห็น • 91

  • @ash.n51
    @ash.n51 4 ปีที่แล้ว +122

    Petition for Garbaj to make a full-game tutorial compiling all of his fps tutorials into one super-amazing game

    • @jesus2639
      @jesus2639 3 ปีที่แล้ว +6

      WE NEED THIS

    • @mos_tafoo
      @mos_tafoo ปีที่แล้ว +2

      Or node: sprite 3D❤

  • @iphadrix1597
    @iphadrix1597 9 หลายเดือนก่อน +17

    I'm on Godot version 4.2 and things are a little different for the billboard option. You have to look at the materials properties and then look under Billboard. There is no Parameters options anymore. The video is educational other than that. Previous Godot versions might be fine.

  • @voyager161
    @voyager161 4 ปีที่แล้ว +83

    You can use 3d sprite. I can't add animation to spatial material, but with sprite 3d it works!( p.s I can't speak English good😅)

    • @puzzud
      @puzzud 4 ปีที่แล้ว +9

      Indeed. And it has a built-in billboard property as well.

    • @feliperisseto9113
      @feliperisseto9113 4 ปีที่แล้ว +4

      not me either. Keep trying.

    • @AmiosKemou
      @AmiosKemou 4 ปีที่แล้ว +12

      bear in mind that Sprite3D is more performance-hungry than a mesh, also it doesn't support things like normal mapping yet.
      So if you have a static sprite it is recommended to stick with this method.

    • @juanloutech2864
      @juanloutech2864 3 ปีที่แล้ว +3

      @@AmiosKemou I thought the quad would have worst performance because it requires a new material. Good to know that. Now I'm glad I found easier to render viewport textures on quad meshes than on sprite3D. 😅

    • @ajpink5880
      @ajpink5880 3 ปีที่แล้ว

      oh hey! that was super helpful, thanks!

  • @sosasees
    @sosasees 3 ปีที่แล้ว +11

    Setting Billboard Mode to
    Y-Billboard looks much better in this situation.
    If you don't know if to use Billboard or Y-Billboard,
    try both and use the one that looks better.

  • @jaysanprogramming6818
    @jaysanprogramming6818 3 ปีที่แล้ว +40

    Straight to the point. Thanks.
    Could you expand on this for animated sprites and tilemaps?

    • @sechmascm
      @sechmascm 2 ปีที่แล้ว +18

      For future reference, since I don't think you still want an answer, you'll have to do something similar to this. Instead of putting the sprite into the texture, you have to put the animated sprite under a viewport node. This gets you a texture of whatever is under the viewport, and if there're animations the texture is animated properly. Last thing to do is put the texture into the quad and put it into the game

    • @Schmarl
      @Schmarl 11 หลายเดือนก่อน +3

      @@sechmascm hey! Are there any videos on this? I dont really understand this clearly

  • @boopledoople
    @boopledoople 2 ปีที่แล้ว +5

    I've been looking for so long for someone to explain this, and you are the only person I have found so far to do so who also does it clearly and quickly. Thank you!!

  • @zetazimmer4769
    @zetazimmer4769 3 ปีที่แล้ว +6

    THANK YOU for this, Miziziziz has a tutorial on a Doom clone that got broken at some update; your instructions fix it!

  • @higeterfertoi8147
    @higeterfertoi8147 2 หลายเดือนก่อน +1

    Not quite what I was looking for, but still pretty helpful. Thanks.

  • @bwah9481
    @bwah9481 2 ปีที่แล้ว +3

    hey.. there's actually a Sprite3D object now. It's awesome

  • @DrNabeel20
    @DrNabeel20 4 ปีที่แล้ว +6

    Thank you! amazing

    • @garbaj
      @garbaj  4 ปีที่แล้ว +2

      Glad you liked it

  • @ilucasz
    @ilucasz ปีที่แล้ว +2

    How did you stop making tutorials, but still manages to save me to this day?

  • @j_ason_rpg
    @j_ason_rpg 2 หลายเดือนก่อน

    2024 update: AnimatedTexture is now deprecated. It seems that AnimatedSprite3D does the job and is meant to be version 4.3's successor.

  • @daboxguy3848
    @daboxguy3848 3 ปีที่แล้ว +1

    Damn garbussy. You do tutorials as well. Very nice 👌.

    • @NuttyDavid
      @NuttyDavid 6 หลายเดือนก่อน

      garbussy LMFAO

  • @dustymax56
    @dustymax56 3 ปีที่แล้ว +3

    The more I'm seeing, the more I want to port my game over from Unity

    • @TheName_J
      @TheName_J 15 วันที่ผ่านมา

      Why? Unity fucking sucks!

  • @DatYouTubeGuy
    @DatYouTubeGuy 4 ปีที่แล้ว +4

    What about 8 directional movement kind of seen in RPGS or Don't Starve?

  • @vikramthewrench
    @vikramthewrench 4 ปีที่แล้ว

    That's what I looking for whole day

  • @geocine
    @geocine ปีที่แล้ว +1

    can you do a demo how to handle rotation of camera performing an illusion that the 2d sprite is also rotating along with it?

  • @norefolkk2739
    @norefolkk2739 4 ปีที่แล้ว +2

    You should do a tutorial about occlusion culling, since Godot will not have that for like a bajillion years.

    • @garbaj
      @garbaj  4 ปีที่แล้ว +1

      That's a tough one!

    • @norefolkk2739
      @norefolkk2739 4 ปีที่แล้ว

      @@garbaj Yeah, Just do what you can do brother. Love the tutorials!

    • @sean7221
      @sean7221 3 ปีที่แล้ว

      Occlusion culling will be in 4.0

  • @benjacast416
    @benjacast416 2 ปีที่แล้ว +6

    I think its not the best way to put a 2d sprite in a 3d world. You can literally just instance a 3d sprite and make it png with one option.
    Just so the sprite doesn't put behind things when it's ahead from they, and make a good shadow if you want.
    I dont speak english, but i really wanted to say this xd
    Buen video
    I just saw its from a year ago xD
    Sorry

    • @1vskill423
      @1vskill423 11 หลายเดือนก่อน

      sigues vivo?

    • @benjacast416
      @benjacast416 11 หลายเดือนก่อน

      @@1vskill423 de milagro pero aquí sigo XD

  • @rattenliebhaber7840
    @rattenliebhaber7840 4 ปีที่แล้ว +4

    Hey , can you make a tutorial about normal maps?

  • @TitlePending
    @TitlePending 4 ปีที่แล้ว +1

    Yeah, what I'm dealing with is how to move the 2D Sprites into 3D... as to get mesh deformation in 3d.

  • @maynk7096
    @maynk7096 4 ปีที่แล้ว +2

    How can we make a 8-directional sprite ?

  • @Uhfgood
    @Uhfgood 4 หลายเดือนก่อน +1

    Sprite3d? Or did it not have this back 4 years ago?

  • @inkajoo
    @inkajoo 3 ปีที่แล้ว +1

    What happened to the character controller tutorial?

  • @Emd_Sniper
    @Emd_Sniper 4 หลายเดือนก่อน

    I have a question what if my sprite has an animation for going forward, left, right, and backward is there a way to do this like in paper Mario? (sorry if my English is not good)

  • @nahruz.w3044
    @nahruz.w3044 2 ปีที่แล้ว

    Yes, my recently fav youtuber made this video 2 years ago

  • @frank_am
    @frank_am 4 ปีที่แล้ว +1

    Cool. But, how can i do this with a AnimatedSprite?

    • @garbaj
      @garbaj  4 ปีที่แล้ว +4

      Replace the mesh instance node with an animatedsprite node, load in your animation frames and enable billboard mode

  • @alanjose6952
    @alanjose6952 4 ปีที่แล้ว +1

    I recently played a game-- Dry Path on itch.io which uses 2d sprites in 3d and was wondering how to do it.Have you read my mind??

  • @Wodsobe
    @Wodsobe 4 ปีที่แล้ว

    nice tutorial boi

    • @chaz5865
      @chaz5865 4 ปีที่แล้ว +1

      You look familiar.🤔

    • @vickylance
      @vickylance 4 ปีที่แล้ว

      @@chaz5865 join discord

  • @ShenkeeHU
    @ShenkeeHU 9 หลายเดือนก่อน

    legend

  • @Barakon
    @Barakon ปีที่แล้ว +1

    I wanna make a game like Hollow knight & or Rayman Origins/Legends.

  • @bypell
    @bypell 4 ปีที่แล้ว +2

    why not use a Sprite3D node?

    • @garbaj
      @garbaj  4 ปีที่แล้ว +3

      From the Godot documentation - "There are known performance issues when using Sprite3D. Consider using a MeshInstance with a QuadMesh as the mesh instead."

    • @bypell
      @bypell 4 ปีที่แล้ว +1

      @@garbaj oh interesting, thanks for letting me know!

  • @Zen-rw2fz
    @Zen-rw2fz 3 ปีที่แล้ว +1

    how would you animate it tho?

  • @Alex_1652
    @Alex_1652 ปีที่แล้ว

    i wanted to try 3d models on 2d terrain tiles, how to do that?

  • @bity-bite
    @bity-bite 4 ปีที่แล้ว +1

    Can you make a rigidbody player controller?

    • @garbaj
      @garbaj  4 ปีที่แล้ว +2

      Not sure, I hear it can get complicated

    • @bity-bite
      @bity-bite 4 ปีที่แล้ว

      @@garbaj Hmm don't think so

  • @NOPerative
    @NOPerative 4 ปีที่แล้ว

    Fantastic.

  • @marksmith8079
    @marksmith8079 2 ปีที่แล้ว

    What is the simplest way to add a back?

  • @nightcode3171
    @nightcode3171 4 ปีที่แล้ว +1

    This is very helpful, i haven't tried making a jump mechanic for a top down rpg/shooter game cuz I think it has a lot of stuff to it but with this, i can easily do just that. Thanksssss
    Also, will u be doing an Item pickup mechanic in 3D? Picking stuff like guns etc.

    • @garbaj
      @garbaj  4 ปีที่แล้ว

      Not sure, I'll have to look into it

  • @KanelTheBullar
    @KanelTheBullar ปีที่แล้ว

    Damn thanks you very much

  • @Alevamltd
    @Alevamltd 10 หลายเดือนก่อน

    How do I disable texture filtering?

  • @shubhsharma2278
    @shubhsharma2278 4 ปีที่แล้ว

    Bro please do a tutorial on how to add enemy AI to ufps 2 since they have used a complex code which can't understand somebody help the code wrote didn't work it says vp_DamageHandler is missing help please

  • @dacresni
    @dacresni 4 ปีที่แล้ว +2

    use AnimatedSprite3d

  • @Toskyval
    @Toskyval 4 ปีที่แล้ว

    There is a way to add a 3D animated object into the 2D editor?

    • @garbaj
      @garbaj  4 ปีที่แล้ว

      Im pretty sure you can do it with a viewport

  • @Алексей-м1д
    @Алексей-м1д 16 วันที่ผ่านมา

    CollisionShape?

  • @abdiel7277
    @abdiel7277 3 ปีที่แล้ว

    HELP! :( this way and the sprite3d didn't found to me, the sprite keeps black.

    • @jarellkearney6083
      @jarellkearney6083 3 ปีที่แล้ว

      I had this issue too
      In the import settings turn of detect 3d
      and reimport

    • @abdiel7277
      @abdiel7277 3 ปีที่แล้ว

      @@jarellkearney6083 ok, thnks

  • @ZZKJ396
    @ZZKJ396 4 ปีที่แล้ว +2

    Pow, 1 min 54 secs... :D

  • @ravanin
    @ravanin 4 ปีที่แล้ว

    can something similar be done for rigged 2d stuff??

    • @garbaj
      @garbaj  4 ปีที่แล้ว

      I believe so

  • @dongn405
    @dongn405 4 ปีที่แล้ว +2

    0:13 and 1:40 look FISHY

    • @denizdemir9255
      @denizdemir9255 4 ปีที่แล้ว +2

      i think that object is on the air. pretty sure Garbaj did that on purpose to show us that it doesn't glitch that way either but the angle makes it seem like it's a glitch haha

    • @garbaj
      @garbaj  4 ปีที่แล้ว +2

      You're correct. It was meant to show that the sprite is properly hidden by 3d obstacles

    • @denizdemir9255
      @denizdemir9255 4 ปีที่แล้ว

      Garbaj got ur back

  • @Akuma.7
    @Akuma.7 8 หลายเดือนก่อน

    Thanks

  • @cgyh68748
    @cgyh68748 4 หลายเดือนก่อน

    ty

  • @NeZversSounds
    @NeZversSounds 4 ปีที่แล้ว

    Any reason not to use Sprite3D?

    • @garbaj
      @garbaj  4 ปีที่แล้ว +2

      From the Godot documentation - "There are known performance issues when using Sprite3D. Consider using a MeshInstance with a QuadMesh as the mesh instead."

    • @NeZversSounds
      @NeZversSounds 4 ปีที่แล้ว

      @@garbaj Wow, thanks for the info!

  • @denisscripts6131
    @denisscripts6131 4 ปีที่แล้ว +2

    how to animate him?