I’m parsing a collada file for display using OpenGL. The model was created in Sketchup and has both materials and textures. The collada file uses triangles and lines. Triangles usually have vertex positions and normals, and then texture coordinates. I deindex these so that I can use them in OpenGL. The file uses a z-up coordinate system, and up to this point I’ve just used RotateF(-90, 1, 0, 0) to orient the model. Unfortunately, my materials are not showing up. I’m using MaterialF for ambient, diffuse, and emmission. The texture is showing up though. I’m thinking it has something to do with my normals, and thought about converting the positions and normals from z-up to y-up. Can anyone provide me with the basic steps to do this? Or can think of other things to check as to why a material might not be showing up.
Thanks for any help.
Cheers,
David