I’m creating a small DAE loader that takes everything from the geometry element (positions, normals, mapchannel, tristrip p elems, textcoords) and draw them using triangle_strips in OpenGL ES.
As the following screenshots clearly show, I can load and draw the geometry but there’s something wrong:
I tried the following to solve it:
- flip normals in 3D Studio Max before exporting (seems to have no effect)
- enable culling with backface or frontface
- change the drawing order to CW
- condition the DAE with the Axis converter (Y_UP) in the Refinery.
I was suprised the first solution wasn’t the real issue because there’s clearly consistency in the problem. I have experience with 3DSM since version 2.x and it sure seemed to be the same old issue with normals.
The only thing I can think of is drawing the tristrips is reverse order - is that neccesary? Changing the drawing order to CW (clockwise) causes individual strips to be drawn in CW, do I need to enumerate through the collection of tripstrips in reverse order too? Or is this something I can solve by using the Refinery after all?