2D Characters in 3D World - Unity Directional Billboarding Tutorial

  Рет қаралды 35,793

Paper Mouse Games

Paper Mouse Games

Күн бұрын

Пікірлер: 77
@karlgamedevdesign
@karlgamedevdesign 2 ай бұрын
I must say, after watching many, many Unity Tutorials, you are THE BEST TUTOR, I have ever come across. Your content is well prepared and you explain stuff better than any high school teacher, university lecturer or KZbinr has ever done! Awesome!! Thanks 👍🤘
@PaperMouseGames
@PaperMouseGames 2 ай бұрын
Wow, such kind words, thank you so much 🥳
@JustGabe
@JustGabe Жыл бұрын
THANK YOU! This tutorial was exactly what I was looking for for my isometric tactical game and your approach worked wonders! THANK YOU!
@mrpro877
@mrpro877 2 жыл бұрын
thanks a lot for this man! I was looking for a tutorial like this for ages! really helped me out!
@brewmeistah
@brewmeistah 2 жыл бұрын
I really love this kind of style. And can you have multiplayer mode in this kind of setup? Like an open world
@spounka
@spounka Жыл бұрын
since this uses a Local camera instead of a global one, and the sprites are played locally by player and not streamed from a server, you can assume this would work
@styxrakash4639
@styxrakash4639 Жыл бұрын
Definitely
@cosmiclulu9001
@cosmiclulu9001 Жыл бұрын
These tutorials are exactly what I've been trying to do!! I appreciate the time and effort you put into making this. If you plan on making more tutorials, can you explain how to get the directional billboarding to work with the player/third person camera? Thank you! I look forward to seeing the development of Amber Roots!
@alpha1471
@alpha1471 Жыл бұрын
Would love to see more complex uses of billboard layering to show more interesting effects and ways to add depth.
@tickmagnet7155
@tickmagnet7155 Жыл бұрын
The LateUpdate change was a life saver for my project! Thanks!
@DrDrasticVR
@DrDrasticVR 6 ай бұрын
ive never thought id go from being a fan of ur game to using a tutorial u made wow
@vlakitus
@vlakitus 2 жыл бұрын
Great tutorial! Thank you so much for sharing with us! Would like to ask you how you made the sprites being affected by the 3D light and post processing effects? Also, are you using URP in Unity? Thanks again, man 👏🏼
@hariyantohariyanto501
@hariyantohariyanto501 2 жыл бұрын
me also,,, pretty please,,,
@PaperMouseGames
@PaperMouseGames 2 жыл бұрын
Yeah this is with URP, and I'm using a custom shader for the sprites, maybe I'll make a video on that as well.
@vlakitus
@vlakitus 2 жыл бұрын
@@PaperMouseGames thanks for your answer! Would be great a video about your custom shader, btw your game looks beautiful already, o love pixel art
@4per8
@4per8 Жыл бұрын
bro i searched for a tutorial on this exact thing so many times and the day before i cant code for a week or so because of plumbing it just popps into my recomended
@joaopedroziliottomartinez3399
@joaopedroziliottomartinez3399 9 ай бұрын
Amazing Video! Helped me a lot, Thank you!
@kylewelfare8362
@kylewelfare8362 Жыл бұрын
Great video, super helpful for a project I'm just starting! How did you manage to keep your character pixel perfect despite the use of a Perspective camera? Having a lot of issues with nasty aliasing on my sprites in the Game View
@АнастасияМаксимова-с5ш
@АнастасияМаксимова-с5ш Жыл бұрын
if you're still running your channel, make a video about how you created grass movement and shadow casting from 2d sprites in 3d space I really like your project😍
@Alex98776
@Alex98776 Жыл бұрын
A question In which template should I make these types of games in 3d or 3d (URP)
@Somno_toska
@Somno_toska Жыл бұрын
Good lord thank you for these tutorials you're a lifesaver! no idea why finding info about these techniques is so scarce... I mean this in excitement and not to rush you, but when do you think you'll release the tutorial on how to make the player character itself ? Thanks again regardless !!!
@Kyt2024
@Kyt2024 2 жыл бұрын
This is awesome! Thank you very much. I’m kinda stuck right now in the position of being super uncertain if I want to leave my game 2d or convert it to a billboarded style. If you don’t mind me asking, do you find pathfinding any more or less difficult now that you’ve made the switch? As for video ideas, I’d love to see how your workflow for creating and adding the 3d models of your scenes works (I’d be equally interested in scene environment)
@PaperMouseGames
@PaperMouseGames 2 жыл бұрын
Thanks! I highly recommend looking into A* pathfinding. There is an asset for unity called A* Pathfinding Project that has a very robust free version and it works in both 2D and 3D. With it, the transition was super easy in terms of pathfinding.
@AnnaGlin
@AnnaGlin Жыл бұрын
I was expecting this to be about the actual player character as that is what the title suggests. could you show how you did that? did you use a blend tree for that as well? the blend tree is so confusing to me but probably good to use it😅
@trashtiercontent6231
@trashtiercontent6231 Жыл бұрын
Heyo what's been going on I might be missing one but I haven't seen ya post for a month just wanted to say keep up with this stuff you've been an inspiration to me to continue learning game dev I love your videos and I'm excited to see what else you do
@danielm878
@danielm878 2 жыл бұрын
Looks incredible Keep on Keeping on!
@Mortadelka2010
@Mortadelka2010 Жыл бұрын
My man some updates? That's really cool!!
@thederbly6009
@thederbly6009 Жыл бұрын
How do you put the animation and movement for the player?
@MashTayto
@MashTayto 2 жыл бұрын
Could you show a screenshot of what your character movement script looks like? Also do you think this system would work with Cinemachine or would there be conflicts? Thanks man!
@PaperMouseGames
@PaperMouseGames 2 жыл бұрын
I'm just using the Unity Third person controller asset for movement, and I'm using Cinemachine, no problems with it!
@frizzlefry176
@frizzlefry176 2 ай бұрын
What would you call the style of like Minekos night market and Wytchwood? Are there any tutorials on that specific style??
@PaperMouseGames
@PaperMouseGames 2 ай бұрын
I haven't played those games, but from the trailers it certainly looks like sprite billboarding, the key difference between my example and those games being that they use a fixed camera angle. So a sort of top-down sprite billboard. At least that's how it appears to me. Hope this was helpful 😀
@kazvtuber
@kazvtuber Жыл бұрын
is there any chance we could get a download for this sample project? is it available on ur patreon for example? thanks for the tut!
@ABATHINGAPEX
@ABATHINGAPEX 4 минут бұрын
im not sure why but unity didnt create a animator controller for me
@zeku45
@zeku45 Жыл бұрын
Would it be possible to implement inverse kinematics and procedural animation in this style? I'm struggling to find any examples of a billboarded doom/proteus/daggerfall style game or demo with procedural animation.
@grunnindieps1-stylesurviva200
@grunnindieps1-stylesurviva200 Жыл бұрын
Learned a lot from you, thanks a lot for sharing your knowledge. Subscribed and will check out more of your content :)
@Flamolino
@Flamolino Жыл бұрын
This helped me a lot, thanks! But as the characters move, how would I go about changing the direction he's looking based on his movement?
@PaperMouseGames
@PaperMouseGames Жыл бұрын
Might do a character tutorial next, seems multiple people have questions about that!
@vikramthewrench
@vikramthewrench Жыл бұрын
@@PaperMouseGames I want that tutorial badly
@CalibanDev
@CalibanDev Жыл бұрын
@@PaperMouseGames COuld you please make that tutorial?
@RobbyDev-x1n
@RobbyDev-x1n Жыл бұрын
I tried it but it only worked without the billboarding script itself, just the directional animation code, but when I put the billboarding script it stops working, what do I do?
@treymtz
@treymtz Жыл бұрын
That's neat but I can't STAND those shadows moving with the sprite. I think that alone might deter me from ever using billboarding unless I planned on no real shadows. Im not sure baking them and making them static helps, cuz then you have a shadow not matching the sprite.
@megupets
@megupets Жыл бұрын
Could you make a tutorial on how to make that little monster walk around randomly or anything like that?
@SRWG9001
@SRWG9001 Жыл бұрын
I echo that I'd love to see some stuff about character animation. I also get some really weird warping and wiggling whenever the camera moves, and I don't know why. It's sad, I love the overall effect, but don't understand what causes the wiggling
@thelegendarymushroom80
@thelegendarymushroom80 Жыл бұрын
Hey there! it is really hard to find any billboarding tutorials :( can you maybe make a tutorial series about billboarding? Like how did you set up the player? I only worked on 3D in unity and this only for about a month, I have no idea how the 2D stuff works :) i am also interested in how you did the shader :D
@PaperMouseGames
@PaperMouseGames Жыл бұрын
Thanks for the suggestions! I'll keep them in mind 😀
@thelegendarymushroom80
@thelegendarymushroom80 Жыл бұрын
@@PaperMouseGames this is amazing! I did not thought you would reply this fast! Most people don't answer comments in their tutorial videos! Thank you so much!
@WinstonWilliamsofficial
@WinstonWilliamsofficial 9 ай бұрын
Is it possible to have a top down sprite and 3/4 view/ isometric sprites as well???
@chucks9503
@chucks9503 Жыл бұрын
Hey PaperMouse I would love if you could change elevation. The most specific example being climbing up a hill.
@TheGameLecturer
@TheGameLecturer 11 ай бұрын
I want to know about the sprite shader you use
@divyanshsh
@divyanshsh 10 ай бұрын
thanks
@dunkeysss4716
@dunkeysss4716 Ай бұрын
how come your sprites doesnt overlay with each other ;;;
@jessek3721
@jessek3721 Жыл бұрын
I've got a question. First though I love this tutorial and thank you for this. My question is that i'm making a Disgaea style game and each unit is in it's own grid cell, using this style of sprite's in a 3D world how might I go about making it look like when the unit is attack another unit in an adjacent cell, making it look like the weapon is actually connecting with the enemy. At the moment my character kind of just swings his weapon and it doesn't really connect or look like he's hitting anything. Is this just something i'll have to work on my sprites to get functioning or does anyone have any idea with code how i might achieve this look.
@PerfectRythme
@PerfectRythme Жыл бұрын
you think this would work with a multiplayer game? or ya think itd cause issues with how other players see your sprite?
@felizen
@felizen Жыл бұрын
It could, the other players would just see your sprite from another angle.
@Ashley-xb1dz
@Ashley-xb1dz 11 ай бұрын
As long as each player has their own camera it should work fine.
@dmckone
@dmckone Жыл бұрын
Cool, man!!!!!! Keep going))))
@Foxaite
@Foxaite 5 ай бұрын
can you have it in the first person as well?
@OhBoy3DTime
@OhBoy3DTime Жыл бұрын
Hey! How do u get this tipe of shading on unity?
@strategystuff5080
@strategystuff5080 Жыл бұрын
very nice
@dejay4568
@dejay4568 Жыл бұрын
Can someone help me with how you did the grass as shown in your other videos? I know you can get that effect by putting 2 quads together but how do you get the textures to be on the other side? Because when you create a plane in unity the back of it is transparent?
@lucaknoop8222
@lucaknoop8222 Жыл бұрын
Heyo, how does it work when I have some walking animations and want to display it? Maybe in combination with some wander AI? In my project I implemented the function you shown in this video + some Wander AI. But I don't know how to implement the Walking animations
@PaperMouseGames
@PaperMouseGames Жыл бұрын
You would need more motions in the blend tree and a speed variable. Then when you check the angle of the sprite you would also check the speed and play either the appropriate idle or walking animation. I think that should work, it's been a while since I used Unity's default animation system in my own stuff 😅
@david55200
@david55200 Жыл бұрын
it's just what i need for create my dungeon crawler like dungeon master. I wanna to keep hand for draw items and monster. I don't want to do it in 3D.
@TheLotroNerd
@TheLotroNerd Жыл бұрын
Keep posting
@anthonywallace5081
@anthonywallace5081 Жыл бұрын
Awesome content. Any chance you can do a video on character animation and set up ? Trying to do something similiar in my project and my 2D character does not look 3D haha just a flat surface looking around and then my character is just a line when going left or right 😂😂
@PaperMouseGames
@PaperMouseGames Жыл бұрын
I'll likely do a character tutorial next since you're not the first to ask about setting up the character😀
@thelegendarymushroom80
@thelegendarymushroom80 Жыл бұрын
I watched the first video and added the second video code to what I had due to the first video, now my trees won't move anymore and my npc still doesn't work :(
@PaperMouseGames
@PaperMouseGames Жыл бұрын
Hmm sounds like something got messed up along the way, not 100% sure without more info, maybe drop by the Discord and we can troubleshoot with more people?
@thelegendarymushroom80
@thelegendarymushroom80 Жыл бұрын
@@PaperMouseGames thank you I will! I just have to ask the question again, maybe tmrw, it is getting really late atm! :D
@question_mark
@question_mark Жыл бұрын
how's things going bro ?
@david55200
@david55200 Жыл бұрын
for 4 sides animations : using UnityEngine; public class SpriteDirectionalController : MonoBehaviour { [SerializeField] Animator animator; [SerializeField] Transform mainTransform; [SerializeField] SpriteRenderer spriteRenderer; [SerializeField] Camera customCamera; private void LateUpdate() { if (customCamera == null) { Debug.LogError("Veuillez assigner la caméra dans l'inspector."); return; } Vector3 camForwardVector = new Vector3(customCamera.transform.forward.x, 0f, customCamera.transform.forward.z); // Calcul de l'angle entre la direction de la caméra et le vecteur "vers l'avant" de l'objet float signedAngle = Vector3.SignedAngle(camForwardVector, mainTransform.forward, Vector3.up); Vector2 animationDirection = Vector2.zero; if (signedAngle >= -45f && signedAngle < 45f) { // Vue de face animationDirection = new Vector2(0f, -1f); } else if (signedAngle >= 45f && signedAngle < 135f) { // Vue de gauche animationDirection = new Vector2(1f, 0f); } else if ((signedAngle >= 135f && signedAngle = -180f && signedAngle < -135f)) { // Vue de dos animationDirection = new Vector2(0f, 1f); } else if (signedAngle >= -135f && signedAngle < -45f) { // Vue de droite animationDirection = new Vector2(-1f, 0f); } // Appliquer la direction d'animation animator.SetFloat("moveX", animationDirection.x); animator.SetFloat("moveY", animationDirection.y); } }
@CreticDev
@CreticDev 11 ай бұрын
Life saver
@lucaknoop8222
@lucaknoop8222 2 жыл бұрын
I was looking for a tutorial for so long... Like if you read my dm on Instagram and uploaded the video a couple days later. Keep up the good work buddy 🥰
@PaperMouseGames
@PaperMouseGames 2 жыл бұрын
Pure coincidence! I feel silly, because before this comment I didn't even know Instagram had a messaging system😅
@lucaknoop8222
@lucaknoop8222 2 жыл бұрын
@@PaperMouseGames damn haha 🤣🤣
2D Sprites in 3D World - Unity Sprite Billboarding Tutorial
12:47
Paper Mouse Games
Рет қаралды 57 М.
Converting My Unity RPG From 2D To 3D
7:52
Paper Mouse Games
Рет қаралды 55 М.
MY HEIGHT vs MrBEAST CREW 🙈📏
00:22
Celine Dept
Рет қаралды 79 МЛН
How it feels when u walk through first class
00:52
Adam W
Рет қаралды 24 МЛН
黑的奸计得逞 #古风
00:24
Black and white double fury
Рет қаралды 26 МЛН
Giving Personality to Procedural Animations using Math
15:30
t3ssel8r
Рет қаралды 2,6 МЛН
2D Sprites in 3D World with Unreal Engine [HD-2D]
6:32
Cobra Code
Рет қаралды 189 М.
HD-2D Style in Godot 4.1
12:57
Gamedev Aki
Рет қаралды 61 М.
Giving Up On My Dream Game & Changing Engines?! 😭
11:17
Paper Mouse Games
Рет қаралды 9 М.
Tips And Tricks To Enhancing Your 2.5D World - Unity
6:17
ThatOneUnityDev
Рет қаралды 29 М.
Unity Tutorial - Octopath 2D Sprite Shadows And Lighting
2:52
Allen Devs
Рет қаралды 122 М.
Technique for Creating Beautiful Level Design
11:48
Pixel Architect
Рет қаралды 882 М.
The Trick I Used to Make Combat Fun! | Devlog
8:12
Game Endeavor
Рет қаралды 1,7 МЛН
Unlocking The Power Of Unity's Scriptable Render Pipeline
21:05
Game Dev Guide
Рет қаралды 215 М.
Make a 2D Top Down Game in Unreal Engine 5 - Tutorial
32:10
Cobra Code
Рет қаралды 450 М.
MY HEIGHT vs MrBEAST CREW 🙈📏
00:22
Celine Dept
Рет қаралды 79 МЛН