exporting to .OBJ

I’m just getting started with blender and one of my first missions is to edit some .OBJ models, and then export the .OBJ for use in a small OpenGL rendering tool I’m writing.

I noticed I can’t get smooth rendering to work and started investigating the model normals.

My rendering tool shows the following stats when I import the model.
[Info] faces: 288
[Info] vertices: 146
[Info] normals: 191

That doesn’t seem quite right, I would have expected maybe 146 normals, or even 288 would have made some sense. Any ideas or clues?

I tried already to recalculate the normals with CtrlN (since the model already had some issue with winding (inward facing normals). And I also converted the whole thing to triangles and removed a bunch of duplicate vertices.

On a side note, the exported model also has 3 missing faces and I’m wondering if it’s related to that. When I edit the mesh though the faces and normals all look fine.

Cheers
Peter

Ah, I realised now the OBJ file format uses an index based approach. Things are starting to look much better now :slight_smile: