Adding A Boss Fight Part 1: Converting A 3D Model To A 2D Sprite | Unity & GIMP
<p>At long last, it’s time to add a boss to our space shooter. This boss will appear after all of the enemy waves, complete with a set of unique attacks and behaviors. I’ll divide up the process of adding a boss fight into multiple parts, starting off with how to convert a 3D model into a 2D sprite to use in the game.</p>
<p>I don’t have amazing artistic talent to match whatever vision I have of an object in my head, so I had to get creative when it came to adding different enemies and objects, like different powerups and missiles, into the game. Between modifying the font on powerups to adding new enemy types, I had to use some different methods and techniques to try to match what exists in the game and won’t feel completely out of place.</p>
<p>One of the ways I was able to achieve this was to use a combination of Unity’s recording capabilities and GIMP’s tools to make a 2D sprite out of a 3D model.</p>
<ol>
<li>Begin by opening a new scene in Unity. The only objects that we will worry about in this scene are the camera and the 3D model that will be turned into a 2D sprite. On the Main Camera in this new scene, set the clear flags to depth only and change the projection settings from Perspective to Orthographic in the Unity Inspector View.</li>
</ol>
<p><img alt="" src="https://miro.medium.com/v2/resize:fit:535/1*gw_iJbpL2eKGPignpqExDw.png" style="height:99px; width:486px" /></p>
<p>It’s easy to distill these projection options for 3D games (perspective) compared to 2D games (orthographic), but we can elaborate beyond that. Generally speaking, perspective deals with real world examples. Objects that we see have depth and we can determine their distance from us. A road that is close to us will appear wide. As we look at the same road further out in the distance, the road becomes more and more narrow.</p>
<p><a href="https://medium.com/@derekanderson-dev/adding-a-boss-fight-part-1-converting-a-3d-model-to-a-2d-sprite-unity-gimp-056a63e46076"><strong>Website</strong></a></p>