S3o using blender: Difference between revisions
New page: ==motivation== this guide helps you to create a '.s3o' unit for spring using: * 'blender' - for 3d moddeling * 'gimp' - for texturing * 'lua' - for animation ==the tools== first download/... |
|||
| Line 3: | Line 3: | ||
* 'blender' - for 3d moddeling | * 'blender' - for 3d moddeling | ||
* 'gimp' - for texturing | * 'gimp' - for texturing | ||
==the tools== | ==the tools== | ||
Revision as of 11:33, 11 September 2010
motivation
this guide helps you to create a '.s3o' unit for spring using:
- 'blender' - for 3d moddeling
- 'gimp' - for texturing
the tools
first download/install blender, then install a blender-compatible python version. finally download the exporter for blender, found at [1].
Once all is installed you can either work from scratch or start working based on a template [2]. if you start from scratch, have a look at [1] to met all requirements for the exporter script.
editing and exporting
Edit the 'base' and extend it with childs. The parenting system of blender is used to find a chain of childs which get exported. Objects which are no childs of the base objects are NOT exported. Each child must have a unique name which can later be used for rigging.
Important: the model MUST have exactly two textures:
- 1. texture RGBA32 where:
- RGB is used for coloring and A is used for team-coloring
- 2. texture RGBA32 where:
- R for glow
- G for reflectivity
- B 'unassigned' (mod dependent)
- A for transparency (standard ARB shader supports only 1 bit that is: either render the pixel, or not)
notes on the export step
The active selection does not influence the exporter therefore you don't need to select any object (still you can) to make a valid export. The exporter will loop over all objects in the scene automatically.
deployment & testing
Copy the '.s3o' in the folder:
- /mods/modname/objects3d/
While textures go into:
- /mods/modname/unittextures/
- As your first model is a unit replacement, don't forget to modify the unitname.fbi (in case of the 'armsolar' replacement: use armsolar.fbi) and add your model there.
- /mods/modname/units/armsolar.fbi
WARNING: when using .s3o you have to add a suffix, else spring will crash!
Open the '/mods/modname/units/armsolar.fbi' and you will see:
valid for 3do
[UNITINFO] {
unitname=armsolar;
name=Solar Collector;
description=Produces Energy;
acceleration=0;
activateWhenBuilt=1;
...
we have to modify this in order to make it s3o aware with:
valid for s3o
[UNITINFO] {
unitname=armsolar.s3o;
name=Solar Collector;
description=Produces Energy;
acceleration=0;
activateWhenBuilt=1;
...