Reply
Honored Resident
Pepper Bohemian
Posts: 8
0 Kudos

MAYA: Multiple Textures on 1 mesh

Hi can someone please help me?

In Maya I can not get the multiple material/textures to work for me once loaded into SL.  I read this on the forums for blender but no step by step instructions for Maya.  I already combined my mesh object into 1 with different materials and uv map for the different faces. It works for me inside of Maya but when I upload to SL it textures the entire object and won't let me apply different textures.  What am i doing wrong?

 

please help

Honored Resident
Meishi Darkes
Posts: 4
0 Kudos

Re: MAYA: Multiple Textures on 1 mesh

Reply to Pepper Bohemian - view message

It does not work if your exporting from Maya 2012, you have to export it as an FBX file using the 2011 profile then use the Autodesk FBX converter(free download) to export that as a DAE file.

Honored Resident
Pepper Bohemian
Posts: 8
0 Kudos

Re: MAYA: Multiple Textures on 1 mesh

Reply to Meishi Darkes - view message

tyvm meishi. Im using maya 2011 and export as FBX then used the converter to change to .dae
When I export should I be shift selecting the content in my hypershade window along with the model?

I don't know what I am doing wrong :matte-motes-frown:

Honored Resident
Betty Doyle
Posts: 29
0 Kudos

Re: MAYA: Multiple Textures on 1 mesh

Reply to Pepper Bohemian - view message

There may be other ways, but this is how I was taught to do it in Maya.  Only combine the pieces that will be in the same UV map/texture.  So if you had two textures, you would have two sets of combined objects.  When you export, select the entire thing.  It will import into SL as a linked object, and you can use edit linked parts to select and texture each part of the link set just like with any other prim.  Hope that makes sense. :smileyhappy:

 

 

Honored Resident
Pepper Bohemian
Posts: 8
0 Kudos

Re: MAYA: Multiple Textures on 1 mesh

Reply to Betty Doyle - view message

ty Betty!  That is a great tip because I did not know that I could load my mesh as an already linked object where all pieces are positioned perfect. But sadly I think you describe something different than what I am trying to do?

The wiki tells me that I can upload a single mesh object (not linkset) and have up to 8 unique textures applied to it. It has a tutorial for blender and 3ds max but nothing for Maya. This type of mesh object isn't able to be pulled apart like a linkset, but yet it can be textured as one.  Is this the same as you describe?  I will log in tomorrow and test this, please can you let me know?

Honored Resident
Fluffy Sharkfin
Posts: 64

Re: MAYA: Multiple Textures on 1 mesh

Reply to Pepper Bohemian - view message

The process you describe for creating objects with multiple materials should work fine (it really is simply a matter of selecting groups of faces and applying different materials to them), my guess is your problem lies in the version of Collada you're using.  For starters, if you're using Maya 2011 you really shouldn't need to export as FBX and then convert to DAE, since that process is just a workaround for those who are stuck with newer versions of the FBX exporter which aren't compatible with SL (i.e. Maya 2012 users).

I recommend using the FBX 2011.3.1 plugin (which can be found here), so far I haven't had any problems exporting DAE files directly from Maya (multiple materials, skin weights, joint offsets, etc. all seem to work just fine).

Honored Resident
Betty Doyle
Posts: 29
0 Kudos

Re: MAYA: Multiple Textures on 1 mesh

Reply to Pepper Bohemian - view message

I don't really know. This is how I was shown to do it, and I've never really had a reason to try a different way.  I just assumed that since you said you had combined your mesh, that you were working with a number of separate objects, instead of applying multiple materials to just one.  I would guess there is a way to do what you need.  Wish I could help out more!

I'll second what Fluffy said too.  I use 2011 and have never had to use a converter.

 

Advisor
Chosen Few
Posts: 1,744

Re: MAYA: Multiple Textures on 1 mesh

[ Edited ]

Reply to Pepper Bohemian - view message

There are only two possibilities here, obviously.  One is you're doing something wrong in Maya, and the other is you're doing something wrong in SL.  Here's a quick overview of what you need to do in both programs.

In Maya:

1.  Go into component mode, select whichever polygons you want to share a given texture, and apply a material to the selection.

2.  Deselect the previous selection, and now select whatever polygons you want to share a second texture, and apply another material to them.  This MUST be a different material from which ever one you applied in step 1.

3.  Repeat the process until all polygons have materials.  You can have up to eight separate materials on any single mesh.

4.  Export to COLLADA.

 

In SL:

1.  Upload your model and textures.  Rez the model, and select it for editing.

2.  Enable Select Face.  SL considers each collection of polygons that share a material to be a "face".  The polygons need not be touching each other in order for them to be so considered.  Any polys that have the same material in common are all part of the same "face".

3.  Click on whatever area of the model you want to receive the first texture.  Be aware that depending on your UV layout and the topology of the model, you may or may not be able to tell that the selection has actually happened.  The familiar bullseye overlay is governed by UV mapping, just like everything else. So, it could be chopped up, distorted, or otherwise dispersed in any number of ways that might make it difficult to see.  Don't assume the selection didn't happen, just because you can't see the overlay.  If you clicked any part of the face, the face is selected.

4.  Drag the first texture from inventory onto the texture field in the editor.  All polygons that share the same material as the polygon you clicked on will now have the texture applied.  The remaining parts will still have the default texture on them.

5.  Repeat for each of the other faces, until the whole model is textured.

 

 

Alternatively, you could always pre-texture the model in Maya, and use the "Include Textures" option upon upload.  Note, this will only work for raster images, so if you've got any procedurals in place, you'll need to bake them out first, and then apply the baked images to the model, before you export.

If you do use Include Textures, be aware that the textures themselves will not individually be added to your SL inventory.  You'll just get the fully textured model, as a whole.  So, if you rez the model, and then inadvertently change a texture, there's no undo.  You'll have to delete, and re-rez it. 

 

If none of the above works for you, then I'll need to know more about what specifically you're doing, before I can pinpoint the problem.

"It's a big universe. Everything happens somewhere."
- The Doctor
Drongle McMahon
Posts: 2,749
Topics: 38
Registered: ‎02-25-2009
0 Kudos

Re: MAYA: Multiple Textures on 1 mesh

[ Edited ]

Reply to Chosen Few - view message

"If you do use Include Textures, be aware that the textures themselves will not individually be added to your SL inventory. "

Are you sure? I just checked this with a single texture on an object "Sphere_13" (original, I know!) and the texture was put in my inventory in a sub-folder of the Textures folder called "Sphere_13". The texture was called "Sphere_13 - Texture 1" and could be reapplied over a changed texture on the mesh. I found it by double clicking on the texture view box on the Texture tab of the edit dialog before replacing it on the mesh. This was in the current release viewer. I am using Blender, not Maya.

Unless otherwise stated, any viewer-related information refers to the official LL viewer.
Advisor
Chosen Few
Posts: 1,744
0 Kudos

Re: MAYA: Multiple Textures on 1 mesh

Reply to Drongle McMahon - view message


Drongle McMahon wrote:

"If you do use Include Textures, be aware that the textures themselves will not individually be added to your SL inventory. "

Are you sure? I just checked this with a single texture on an object "Sphere_13" (original, I know!) and the texture was put in my inventory in a sub-folder of the Textures folder called "Sphere_13". The texture was called "Sphere_13 - Texture 1" and could be reapplied over a changed texture on the mesh. I found it by double clicking on the texture view box on the Texture tab of the edit dialog before replacing it on the mesh. This was in the current release viewer. I am using Blender, not Maya.


Hmm, it definitely doesn't do that for me.  No such subfolder gets created, and the textuere itself is not anywhere in inventory that I can find.  When I open up the texture picker, it shows the texture image, but it doesn't find anything in the inventory list.

I'm using viewer 3.2.8 (248931).  What version are you using?

"It's a big universe. Everything happens somewhere."
- The Doctor