PDA

View Full Version : What is MeshMap refrenced in maxsdk?


kimryo
09-30-2006, 07:55 AM
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.

HalfVector
09-30-2006, 09:34 AM
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.

CGTalk Moderation
09-30-2006, 09:34 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.