xmoonproductions.org https://www.xmoonproductions.org/ |
|
same file on different materials https://www.xmoonproductions.org/viewtopic.php?f=27&t=3711 |
Page 1 of 1 |
Author: | laissemoirire [ Fri Feb 27, 2015 8:25 pm ] |
Post subject: | same file on different materials |
Dear XPAdmin, I wanted to insert my buttons textures in the same file as my main mesh. That way, if I want to propose multiple outfits at runtime (dungeon), I could also retexture the buttons. (buttons and cloth share the same file). But, filemaker complains : Cannot convert maya file './dress/sources/scenes/character6_cloth/body.ma' : Failed to connectAttr "bra_tex.oc" "braButtonMat.c": File 'bra_tex' already has material, in file './dress/sources/scenes/character6_cloth/body.ma' at line 66604, in file 'start.ini' at line 36 Of course my file is used by multiple materials ! because if you use the same material, I have a weird thing happening, buttons become big spheres! probably because the body.ini file has different parameters for cloth / buttons and I don't know what they mean. I just duplicate the default ones. shader "braMat" { view_offset = 0.015; norm_offset = 0.001; cull_face = false; anis = true; } shader "braButtonMat" { view_offset = 0.03; norm_offset = 0.0; } What I'm doing wrong ? is there a way to do what I want to do ? please ![]() |
Author: | xpadmin [ Sat Feb 28, 2015 11:41 am ] |
Post subject: | Re: same file on different materials |
Please send me the .ma and .ini file you are using so I can look into what exactly you want to do. |
Author: | laissemoirire [ Sat Feb 28, 2015 11:57 am ] | ||
Post subject: | Re: same file on different materials | ||
xpadmin wrote: Please send me the .ma and .ini file you are using so I can look into what exactly you want to do. I'll add an other file in 2 minutes...
|
Author: | laissemoirire [ Sat Feb 28, 2015 12:23 pm ] | ||
Post subject: | Re: same file on different materials | ||
this time bra and button use the same material
|
Author: | xpadmin [ Sat Feb 28, 2015 12:24 pm ] |
Post subject: | Re: same file on different materials |
Ah, I understand what you are trying to do. Because the texture is connected to both materials the filemaker gets confused. Easiest way to solve this is by opening the 'hypershade', disconnect the texture from one material and create an new texture for the disconnected material like this: Attachment: hyper1.jpg [ 346.19 KiB | Viewed 19014 times ] This way there are two textures with the same file. (Internally XSP will optimize this and only open the texture once) Let me know if that works for you. |
Author: | laissemoirire [ Sat Feb 28, 2015 12:36 pm ] |
Post subject: | Re: same file on different materials |
okay many thanks, I will try this. ------------------------- Plus, understanding how maya works is confusing =) no easy way to remove a material from an object, the only method I found was to reassign to object the "default" lambert1 no easy way to remove to remove a texture from a material. In fact, once you attached something to a material (click on the checker) I don't understand how to remove it. online help is quite confusing, everybody do things with different but so complicated ways... I don't remember having so many headache using max, many years ago. but I'll learn |
Author: | xpadmin [ Sat Feb 28, 2015 12:48 pm ] |
Post subject: | Re: same file on different materials |
I always use the hypershade to delete a link (window->rendering editors->hypershade). Manually creating links is indeed very annoying Maya, so I almost never do that. But using the hypershade and the attribute editor most link related things are easy. In the hypershade window, select one or more shaders and then clink on the >> to expand them (under 'graph', see image). This way you can easily see all connected parts to a shader. Then I click on the attribute editor (with material selected) and assign a new color texture to it. By clicking on the color to add a new file. Add the file to the shader like this (click on red square): Attachment: hyper2.jpg [ 466.3 KiB | Viewed 19005 times ] After that select the 'file' as render node and click on it. Then fill in the filename. Select the shader and expand it using the >> in the hypershader window to see if the links are now correct. Hope this helps. Also look for tutorials on this. |
Author: | laissemoirire [ Sat Feb 28, 2015 2:41 pm ] |
Post subject: | Re: same file on different materials |
ok, now it works ! thanks you. this week I'll do more testing, be prepared to have some questions ![]() |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |