| 1 | = OBJ Importer = |
| 2 | |
| 3 | == Resources == |
| 4 | * [http://www.csit.fsu.edu/~burkardt/data/obj/cube.obj cube.obj] a simple example |
| 5 | * [http://www.robthebloke.org/source/obj.html obj fileformat] (short) |
| 6 | * [http://www.martinreddy.net/gfx/3d/OBJ.spec obj fileformat] (long) |
| 7 | |
| 8 | |
| 9 | == Overview == |
| 10 | You can find the source of this module [https://dev.orxonox.net/browser/trunk/src/lib/graphics/importer/ here]. Main module is: |
| 11 | * [https://dev.orxonox.net/browser/trunk/src/lib/graphics/importer/objModel.h objModel] - the importer itself |
| 12 | * [https://dev.orxonox.net/browser/trunk/src/lib/graphics/importer/static_model.h StaticModel] - base class for this importer |
| 13 | |
| 14 | == Features == |
| 15 | Our implementatoin of the obj model format supports following tags: |
| 16 | |
| 17 | === OBJ === |
| 18 | The actual object informations |
| 19 | |
| 20 | '''Vertex Data''' |
| 21 | || v || vertices || |
| 22 | || vn || vertex normal || |
| 23 | || vt || vertex texture coordinate || |
| 24 | |
| 25 | '''Elements''' |
| 26 | || f || faces || |
| 27 | |
| 28 | '''Display/render attributes''' |
| 29 | || mtllib || material library || |
| 30 | || usemtl || material library name || |
| 31 | |
| 32 | === MTL === |
| 33 | Material informations |
| 34 | || illum || setting illumination || |
| 35 | || Kd || setting diffuse color || |
| 36 | || Ka || setting ambient color || |
| 37 | || Ks || setting specular color || |
| 38 | || Ns || setting shininess || |
| 39 | || d || setting transluency || |
| 40 | || Tf || setting transparency || |
| 41 | || map_Kd || diffuse map (texture) || |
| 42 | || map_Ka || ambient map (texture) || |
| 43 | || map_Ks || speciular map (texture) || |
| 44 | || bump || bump map (not implemented yet) || |