Convert 3D models to 2D sprites in Unity

While searching for assets for 2D games we end up finding 3D models similar to what we are looking for. What if we can convert those 3D models into sprites along with the animations? In this tutorial, we will see how to do that in Unity using a simple asset from the Unity asset store.

Tools Needed

  1. Unity version 2021.1.13 or above.
  2. 3D model to 2D sprite converter.

Importing the asset

  1. Purchase the asset and add the asset to the My Assets list.
  2. Go to Unity editor and open Package Manager.
  3. Find 3D model to 2D sprite converter.
  4. Download and import.
  5. Only the prefab and scripts folder are mandatory. You can import the complete package if you need a example scene and guide.

Let’s start converting

  • Create a new scene.
  • Add the Png_capture prefab to the scene.
  • Add your 3D model that you need to convert to 2D PNG image.
  • Set your Camera Projection to orthographic.
  • Set the camera background to some solid color
  • Make sure the character is visible in the game view as in the image below. Your game view will be your final PNG image. So, set the view as you need.
  • Create a new Animator for your 3D object and add all your animation state to it.
  • Create a new Boolean called “Next_state” and add it as the transition condition
  • Add your 3D object to the player variable of Png_capture.
  • Set the number of frames to capture per animation state.
  • Set the number of frames to skip before taking a screenshot.
  • For example, if you set the frames to capture as 50 and the number of frames to skip as 5 then it will make one PNG for every 5th frame.
  • Play the game and press the enter key after 3 seconds on every animation state. Animation state gets changed when you press the enter key.
  • Once all the animation states are played, Stop the game and refresh the project window.
  • A new folder for every animation state with the respective PNGs should appear in the project window.

2 thoughts on “Convert 3D models to 2D sprites in Unity”

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.