Jump to content
Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.
Posted 06 February 2014 - 03:54 PM
Does anybody know a library that can extract that?
Posted 06 February 2014 - 05:44 PM
you need to be much more forthcoming with information if you really want help. You don't mention what you are extracting from. That being said, assimp can likely do what you need.
Posted 06 February 2014 - 06:55 PM
i basically want to go through every polygon and get the material id assigned to that polygon.
I tried experimenting with assimp,but I could only find how to extract a material id per mesh.
Posted 07 February 2014 - 06:20 AM
You don't need material Id per polygon, you need material ID per subset.
you can have a look at my post: http://www.gamedev.net/topic/652889-assimp-subsets-problem/
Posted 07 February 2014 - 06:59 AM
No one in their sane minds would have materials assigned per polygon.
"I AM ZE EMPRAH OPENGL 3.3 THE CORE, I DEMAND FROM THEE ZE SHADERZ AND MATRIXEZ"
My journals: dustArtemis ECS framework and Making a Terrain Generator
Posted 07 February 2014 - 07:11 AM
Do you even need materials? Texturing might be enough.
Why not assign per pixel materials in a texture?
Posted 07 February 2014 - 11:35 AM
Sorry,my artist meant "per subset id", ... I was a bit shocked when I heard it the first time,but I just said I'll research into it.
GameDev.net™, the GameDev.net logo, and GDNet™ are trademarks of GameDev.net, LLC.