#What's the logic behind the vertices order in the bbmodel format?

1 messages · Page 1 of 1 (latest)

worthy swan
#

I'm trying to write some code that would read a bbmodel file to extract the vertices and faces data to reconstruct the model in my own game, using my own format. I have it mostly working, but I cannot figure out the order of the vertices listed in the "faces" property. I need to re-order them so that they are ordered clock-wise.

worthy swan
#

hum, I think i found the answer in the code base

#

they seem to compute the order, instead of storing it in the file in some way

worthy swan
#

It worked \o/

#

I doubt it'll ever help someone, but just in case, here's the code translated to C#, that will order the vertices in the bbmodel file properly: