For my next project (game) I would like to use Blender for making pre-rendered assets. I'm fairly new to Blender.
- I'm looking for a way to do a batch render and export of multiple assets with a single command. I'm aware of the Blender command line options but I suspect it's not going to be enough.
- I need to be able to do the batch render repeatedly, as I iterate on the look and dimensions of the assets and add new ones.
- I need all renders to use the same camera setup (angle, lens etc) without having to re-create the setup manually for each asset.
My current idea is this:
- Make some assets. Adjust scale and orientation the same way for each. Separate .blend file for each asset.
- Make a "template" scene where I setup the exact camera I need for all renders. Also perhaps the "passes" for rendering shadows separately could be setup here?
- Write a Python script which loads the template, then iterates over the asset .blend files and renders each one using the template setup.
- Add more assets
- Re-run Python script, it finds new assets in the directory and renders them
- Optimization: Python script will check timestamps of .blend files and only re-render if there's been a change.
- Debug feature: Python script takes a parameter which lowers the sampling parameter, to make quick renders during development. Final renders use higher sampling value.
Is this reasonable or is there a better way to approach this?
My ideal answer:
- Says yes or no for each requirement/assumption, with few words of explanation
- Suggests alternatives in the form of links to Blender manual or tutorials
- That's it.
- DISCLAIMER: I'm not at all expecting anybody to write "the script" for me as an answer, just asking about the general idea. I will be happy to dive into that and learn how to do it, as long as I know I'm going in the right direction.
UPDATE: attaching three simple scenes as an example: BLENDER42764.zip