I'm a total noob to 3D graphics, and studying the code of CGeometryCreator and CMeshBuffer. Am I correct that index arrays (e.g., line 24 of CGeometryCreator.cpp) determine which vertices are joined into polys? Does their order determine the facing of the poly, or is that determined by the direction of the vertices? (For that matter, are vertices points or vectors? My understanding so far is that they're vectors.)
Irrlicht uses clockwise front-facing. Also, vertices are points, not directions. But since they are given in object coordinate system, they are relative to the local (0,0,0), and hence there's no difference here.
Are you sure on that? I am building my faces counterclockwise so far and it's working. That is if I assume front is positive axis facing.
I can confirm this, I recognised this at work for IrrOpenSteer...
when I created the vehicle mesh (circle with arrow) I first created the arrow shape counter clockwise and I was wandering why no face was seen until I found out that I had to create them clockwise...
Right. Made some tests, it's clockwise. I had false impression that it's counter cw since I always faced "front", that is along Z axis while setting vertices/indices but looked opposite to see face. So I was building it clockwise in fact.