Jump to content

  • Log In with Google      Sign In   
  • Create Account

Material ID per polygon


Old topic!
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.

  • You cannot reply to this topic
6 replies to this topic

#1 noatom   Members   -  Reputation: 782

Like
0Likes
Like

Posted 06 February 2014 - 03:54 PM

Does anybody know a library that can extract that?



Sponsor:

#2 Burnt_Fyr   Members   -  Reputation: 1243

Like
0Likes
Like

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.



#3 noatom   Members   -  Reputation: 782

Like
0Likes
Like

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.



#4 newtechnology   Members   -  Reputation: 745

Like
0Likes
Like

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/



#5 TheChubu   Crossbones+   -  Reputation: 4420

Like
0Likes
Like

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


#6 Tispe   Members   -  Reputation: 1037

Like
0Likes
Like

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?



#7 noatom   Members   -  Reputation: 782

Like
0Likes
Like

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.






Old topic!
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.



PARTNERS