PDA

View Full Version : OpenGL & GLM - Solved



xyzv.net
11-29-2011, 10:16 PM
Hey All,

Was just curious as to what the problem could be here.
http://imageupload.org/?d=DACD95B41
I am using GLM to load an object file exported from lightwave. The object renders fine in lightwave however glm seems to have issues with it, how would i track down the cause of this distortion?

I am using the basic glmRead/draw method

// load object
objectModel = glmReadOBJ(filepath);
glmUnitize(objectModel);
glmFacetNormals(objectModel);
glmVertexNormals(objectModel, 90.0f);
....
// render scene
glmDraw(objectModel, GLM_FLAT);

xyzv.net
11-29-2011, 11:55 PM
Solved, Lightwave was not converting the object to triangles as glm takes it.

Shift + t