Assimp: Difference between revisions
From Spring
Jump to navigationJump to search
m recat |
m →Assimp |
||
| Line 12: | Line 12: | ||
* special modelpieces `SpringHeight` & `SpringRadius` | * special modelpieces `SpringHeight` & `SpringRadius` | ||
=Assimp Textures= | |||
See textures page (Assimp Section) | |||
=Blender Workflow Tutorial= | =Blender Workflow Tutorial= | ||
Revision as of 03:58, 10 April 2013
Development < Game Development < Assimp
Assimp
Open Asset Import Library (short name: Assimp) is used in Spring for loading a number of model formats including Collada & 3ds (currently obj is parsed by a different codepaths).
What Spring supports in its Assimp renderer:
- extended metafile (
%modelfilename%.luanext to the modefile) - still uses tex1 & tex2 texture system of S3O (same shader as S3O)
- 2nd texcoord
- loading of the texture filepaths from the model (don't have to be in
unittextures/) - when texture filepaths aren't included in the model, it searches for
%modelfilename%.*&%modelfilename%2.*inunittextures/ - special modelpieces `SpringHeight` & `SpringRadius`
Assimp Textures
See textures page (Assimp Section)
Blender Workflow Tutorial
This is a stub containing a simple outline of a Blender workflow. Disclaimer: I'm no modeling expert, there may be a better way to do this.
| 1) Open an existing Blender model or import a different format through the File menu (File > Import). | |
| 2) In the 3D view, at the top right, there will be a '+' icon. click this | secret panel |
| 3) In that panel, select Display > Shading > GLSL | display settings |
| 4) Make sure you have a lamp in your scene while in this mode or your model will be dark. | blend light source |
5) Applying texture:
|
|
7) Piece hierarchy:
|