Sprite Render Kit

by blurymind in Render Setups

For a video tutorial, please check this link:

https://youtu.be/Ed9XZ-vF158

The workflow is simple:

  1. Open the blend file included in the zip
  2. Go to the first layer and Append your animated model in it.
  3. Play the animation, set the animation range to the proper value - the one you used in the appended file. Keep it playing while you configure your cameras.
  4. Select the model's armature in object mode and scale it up/down if needed, position it in Z and Y so it is centered in all 4 views.
  5. Go to the layer of the camera controls and use the "y offset" controller to position in center your character on the bottom two views.camera controls layer
  6. Use the "heightCtrl" to set the Z angle of rendering (height) you want to see your character in.
  7. Use the "spriteRenderCams-globalCtr" properties (N-panel) To configure these optionally:
    1. Isometric angle - Rotates the camera rig on Z - this allows for isometric angle. Set to 45 to get diagonals.
    2. Ort scale - This can be used to zoom in/out the 4 cameras (orthographic)
    3. Persp/ortho - If set to 0, the cameras switch to perspective mode. It's recommended to keep at 1 (ortho)
    4. Persp focal lenght - This can be used to set the focal length of the 4 cameras (when in Perspective mode)
  8. Set your Rendering settings (Make sure you are at the a-Main scene if you aren't)
  9.  You can enable Freestyle optionally and set your linesets
  10.  Run the script that I have provided in the blend file ("syncScenesRender.py") - always run it before rendering. It syncs the 4 scenes. Syncs your render settings, your freestyle linesets, makes sure everything on layer one is in all 4 scenes.runScript
  11.  Render single frame. A new folder called "output" will be created in the same directory where your spriteRenderKit.blend file is. Inside that folder you will find a single image from all 4 angles. See if you are happy with how it looks. See if the naming is correct. The sprite pointing to the left is named "left**.png" and the one pointing up is "up**.png" - whatever makes sense to you.
  12.  If they are not correctly named, you can rename them by selecting the appropriate output node and in it's n-panel change the "File Subpath" to the appropriate name. Keep the ##.renameSrk
  13.  Run the Sync script again and this time Render it as animation sequence. You will discover that the output folder is now populated will the frames. The script works with Blender Internal, Cycles and Freestyle.
  14. From here on you can use a tool such as shoebox to put all the frames in a single spritesheet. Alternatively you can use them as an image sequence - it all depends on the game engine you are using.