Jump to content

Image of the Day

#animation 2/14

Sweet piggy, isn't it?

#gamedev #indiedev #indiegame #GamersUnite #screenshotsaturday #unity3d https://t.co/lscyvCxrPR
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net's newsletters to receive the latest updates and exclusive content.


Sign up now

How to clear "attribute groups" in max?

4: Adsense

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
No replies to this topic

#1 lucky6969b   Members   

1235
Like
0Likes
Like

Posted 29 March 2013 - 08:59 PM

In my Direct3D applications, I got 2 attribute groups that one of them has a material index of 1 (0 and 1). In my hierarchy loader, it gets 2 attribute groups on that subset and only 1 material on that subset (0). When I was looping it,

 

for (int i = 0; i < boneMesh->m_NumAttributeGroups; i++)

{

int mtrlIndex = boneMesh->attributeTable[i].AttribId;
g_pDevice->SetMaterial(&(boneMesh->materials[mtrlIndex]));

////...

}

 

say i is 2, then mtrlIndex is 1. So a problem arises, as the loader only has index 0 in the buffer, I don't have that material in attribute group 2.

 

So my problem is how do I clear attribute groups in max? How does it relate to materials?

Thanks

Jack


Edited by lucky6969b, 29 March 2013 - 09:01 PM.





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.