|
|
|
Tell us what you think of the site.
|
Autodesk Media & Entertainment User Community
|
Autodesk® 3ds Max®
|
|
Autodesk® Maya®
|
|
Autodesk® Softimage®
|
|
Autodesk® MotionBuilder®
|
|
Autodesk® Mudbox™
|
|
Autodesk® ImageModeler™
|
|
Autodesk® Sketchbook® Pro
|
|
Autodesk® Smoke on Mac®
|
|
Hi,guys,if i got a pointer pMesh of a mesh,and then i call KFbxNode *pNode = pMesh->GetNode();
ant then i call KFbxSurfaceMaterial *pMat = pNode->GetMaterial (0);
However as i have known,a mesh could belong to more than one node,and each node could have it’s own materials attached it,and then my calls could work?!So,how can i get material of a mesh just in case that i just have a mesh handle?
|
|
|
|
True, a node can have many node attributes connected to them. Because of this, we connect materials directly on the mesh, rather than on the node.
Robert Goulet, FBX Dev Lead
|
|
|
|
|
Is that true??we attach the material to mesh,not node?you sure about that,since i read about the Doc,
Author: zydgyy
|
| Replied: 30 November 2011 01:44 PM
|
|
|
|
|
Oops, you’re right, my mistake. That’s true, materials are connected to the node. You cannot retrieve the material unless you ask for the node of the mesh. And if you are using instancing (multiple node per mesh), you will have to iterate to the one you want to get.
Robert Goulet, FBX Dev Lead
|
|
|
|
|
|