Billboarding Tutorial - Unity
Вставка
- Опубліковано 21 сер 2024
- Billboarding is a great technique that allows 2D objects to always face the camera creating the illusion of 3D as seen in retro FPS such as DOOM, Duke Nukem 3D, Blood, and more!
==================
Download links
==================
Project: drive.google.c...
Enjoy! - Ігри
The real heroes are the ones who make these tutorials, thank you dude!
You're welcome. Believe me when I say, you guys are the heroes for taking the time to check us out.
Thank you!
Perfect tutorial, no bullshit, no whacky zoomer edits, no long intro, no drawn out segment begging for subscribers.
That's how to get me to watch all of someone's videos.
Wow! Thank you very much for the high praise. We're glad our tutorial served you well. All the best to yourself and your projects. 🤝
GREAT tutorial! I love the clear way you explain things. I'm actually using this for a top-down game that uses a perspective camera for buildings/terrain but billboards the sprites for a 2.5D Octopath Traveler-like style. This was far simpler than some other implementations.
That's awesome to hear! Sounds like a great project. Happy the tutorial served you well. Thank you! 👍
Best tutorial I've seen on this. Short and simple
Thank you kindly! Glad it was useful. All the best on your projects. 🙌
you are a hidden gem! your content is well written and spoken! good job :D
Thank you very much. Glad you are enjoying the tutorials and that they are proving helpful.
All the best.
Thank u!!!!! This is exactly what I needed and you explained it perfectly :DD
Happy days! Thank you very much! All the best and have fun!
Exactly what I needed!
Happy days! We're glad it helped. Thanks for checking out our tutorials. All the best on your projects!
I've used your work in my university assignment haha. I mention your video in my sources pdf :D
That's amazing! Thank you very much!
When we studied game dev in university back in the late 2000s, there was a lack of tutorials and learning resources available at the time. It was a difficult process. We decided to make these tutorials to give others a better start than we did learning game dev, making it more accessible and easier than ever.
Once again, thank you. It means a lot to us. All the best!
Ur tutorial is really cool, hope you will become popular
Thank you. We're glad you enjoyed it. Hope you're looking forward to more tutorials coming soon.
All the best.
ty you helped me a lot
You're welcome. Happy to help. All the best on your project! 👍
Love the tutorial, great in explaining thing and really straight forward! Great job!!
BUT
I get the error. Quarternion does not contain a definition for lookRotation? Am I doing something wrong
Thank you very much!
No worries, please double check capitalization of 'LookRotation'.
All the best!
Amazing
You're amazing!
Thanks for stopping by.
Great tutorial! Just the one I needed! Keep it up, you'll get there soon.😊😊😊❤❤❤
Quick question: Is the RedImp object you used a png?🤔🤔
Thank you very much. More tutorials are on the way! Yes, the Red Imp is a PNG and the hand.
All the best and have fun!
Great Video! I do have a question though. My character spins in a circle due to the transform.rotation line of code. Any ideas?
Thank you for watching. Just to confirm, by character are you referring to your player character?
@@expatstudios yes sir, im playing around with network managers and when I spawn in my host character during runtime he will continously spin in a circle
Interesting. Does this happen when you don't spawn the character?
Great tutorial and amazing content, thank you also just curious how can you make the sprite change its image based on camera's position basically the sprite is still looking at you but it changes image as you move around creating an illusion that looks as if the sprite is 3d
Thank you very much. Glad they have been of help. Great question! I've actually been looking at how to achieve this. Once I've settled on a good method a tutorial will follow. All the best!
Thank you so much ^^
Cheers!
You're welcome. Thanks for stopping by. 🙌
THX SO MUCH
You're welcome. Thank you for stopping by. 🙌
Now, step 2: if i have all the rotated sprites ready, how do i tell the shader when to use what direction of the sprite based on the angle the camera looks at the billboard.
Thank you for stopping by. It's on the list for sure.
THANK U!!!
Thank you for being awesome! 👍
@@expatstudios haha! nono im just random noob! :DDD but when i finish my little project i will show you!! i need a lot of billboards hahah XDD THX!
Great! Looking forward to seeing it.
This works but when I start the game I get a million errors that say object reference not set to an instance of an object. I checked the script and my project and everything was fine.
Not to worry. To pin point which reference isn't set, please click on the error message and it shall take you to it. Is it referring to the camera?
@@expatstudios I'm kind of new to Unity but I think I looked at the right place. It says the error is being caused on line 18 so I looked there and saw this line of code. (and yes, my camera's tag is marked as maincamera)
cameraDir = Camera.main.transform.forward;
@@dunderguy Just to confirm, is the tag the default of MainCamera? Thank you.
@@expatstudios Yes
@@dunderguy Hi. Just checking in to see how you're getting on. Have you found a solution to issue you were having? I've been super busy lately with moving to, and working in a new country. 👋
How do I make it so that the object is facing away from me with a Boolean called "reverse", if you could reply with a script replacement. that would be awesome.
Thank you for your question. Would this be a static object or an enemy?
@@expatstudios Static Object.
Just to confirm, is it the object's sprite you want to be facing away?
@@expatstudios Yes.
I think I've a solution for you. What triggers the bool. Player distance from the object?
Isn't making a sprite an awful process? I tried finding a tutorial for making sprites and I have no idea what they all do. They use adders and dividers and stuff... I might as well learn how to use Godot
Not at all. It's as simple as drawing them in whichever program you wish then importing them into Unity. I use Clip Studio and GIMP for drawing sprites. 👍
Please accept my request to get the files, thanks for the tutorial!
No problem. All done. Thank you. 👍
@@expatstudios Thanks!
@@AidinZolghadr You're welcome. Best of luck on your project.
hello! great video! but... i have a problem, when i press play in unity, the console says:" object reference not set to an instance of an object". i dont understand, how do i fix it?
Thank you. Not to worry, it could be an issue with your Camera reference. Please run through and double check your code along with the tutorial. To go to the source of the issue, click on the error message and it will take you to it.
All the best.
Check if you have camera tag "Main Camera"
One thing though, it throws "Look rotation viewing vector is zero" all over the console. Any fix?
Interesting. We ran through the tutorial again and did not encounter this. Please, in what way have you applied billboarding? Thank you.
@@expatstudios I followed the tutorial exactly. I ended up adding a small value to camDir.y like 0.00001 to suppress that warning log.