Start a new topic

Getting the poly count of the LODs of a model?

Original Post by: chrisell Wed Feb 10 15:43:15 2016


(Using Python) I'm trying to figure out the best way to grab poly counts for any model open in the editor.

Started with

ok=mgMostDetail(db)

To get the highest LOD. I can count walking the database using MWALK_ON. But how do I step down through subsequent LODS?


Any tips on how I can do this would be appreciated.


Original Post by: SteveThompson Wed Feb 10 17:23:05 2016


To do what you just did for the highest LOD, just call mgLessDetail. After you do this only the polygons for the nodes in this LOD will be on.

Original Post by: chrisell Wed Feb 10 17:28:08 2016


Wow - I totally skipped that. I'd seen mgMostDetail and mgLeastDetail but I totally spaced it on mgLessDetail and mgMoreDetail.

Thanks :)

Login to post a comment