]> de.git.xonotic.org Git - xonotic/mediasource.git/blob - models/misc/chatbubble/create
Update Xolonium font sources to version 2.4
[xonotic/mediasource.git] / models / misc / chatbubble / create
1 #!/bin/bash
2 #Uses Blender, Inkscape, Gimp and ~/.gimp*/scripts/whiteborder.scm
3 #Renders the scene from this .blend file:
4 file=chatbubble
5
6 #Export png from all svg files
7 for f in *.svg
8 do
9     inkscape -f "$f" -e "`basename $f .svg`.png"
10 done
11
12 #Render single Blender scene
13 render_scene()
14 {
15     blender -b "$PWD/$file.blend" -S "$scene" -o "//$scene#" -f 1
16     rename "${scene}1" "$scene" "${scene}1".*
17 }
18
19 #Render the Blender scene
20 scene=chatbubble
21 render_scene
22
23 #Add white border
24 gimp -d -f -i -b '(whiteborder "chatbubble.tga" 1 5 12 0 4)' -b '(gimp-quit 0)'