Introduction
Blender is often used to create applications or games assets. But when the number of these assets grows, we need to improve and automate these tasks.
This project rely on the Gradle build automation system to make asset creation from Blender easier. It allows to automate the following tasks:
- Blender scene rendering
- Blender animation rendering
- FBX to libGDX formats conversion
Install
To enable the gradle-blender
Gradle tasks, please add one of the following snippets to your build.gradle file:
Getting started
This project is compound of three Gradle tasks classes. Depending of your need described below, create a task of the corresponding type.
Task | Description |
---|---|
RenderImage | Render a Blender scene to an image file. |
RenderAnimation | Render a Blender animation to images files. |
FbxConv | Convert FBX files to G3DJ or G3DB formats. |
The links in the table above point to the corresponding task reference. There is also a simple example for each task below: