[Closed] What is MeshMap refrenced in maxsdk?
I’m writing a 3dsMax mesh export plugin,and confused what is MeshMap in conception,it seems it’s relative to uv coordinates.
in mesh.h file,have the following code:
#define MAX_MESHMAPS 100
class Mesh : public BaseInterfaceServer {
…
DllExport UVVert *mapVerts (int mp) const;
DllExport TVFace *mapFaces (int mp) const;
…
Could any one tell?Thanks in advance.
MeshMap gives you access to the map channels. There are up to 100 map channels. If I remember correctly, the first one (0) is for vertex colors and the rest of them are for texture coordinates.
So you can assign texture coordinates in channel #1 for the diffuse map and a different set of texture coordinates in channel #2 for bump map, and so on…
You can take a look at the asciiexp sample from the SDK to see how to export map channels.
Greets.