Draw order of FBX format

Hello, I'm making a 2D game in Unity and animating the characters in Maya.

Ideally I'd like to be able to draw one full character in one draw call (IE one material), so I have the multiple moving parts of the character split up into multiple billboards of the same model. The concept works fine, but in order to get the transparency right I need to be able to control the order in which the polys are dawn, which means controlling the order of the vertices in the FBX file.

Does anyone know an easy way to force Maya to spits out an FBX file which draws the triangles in a specific order(I.E. back to front)?

1 Answer

1

You can't control that. Even if you get "correct" order of triangles in fbx file, there is no guarantee that, they won't be reorder during import (for faster rendering), o reordered in the graphics card. You just can't rely on the order in which triangles will be drawn.

What you can do is use multiple object and tranparance queue, so Unity does the sorting for you. Of course you get multiple drawcalls that way.