Page 1 of 3
Materials don't work
Posted: Wed Nov 15, 2006 1:42 am
by ICY
I am not sure what's going on. Indigo renders only default material in Maya, when I apply another Maya material, it shows an error. Can someone explain what I am doing wrong? Thank you.
Posted: Wed Nov 15, 2006 1:48 am
by arneoog
hmm... For now only Diffuse, Phong and Meshlight is supported...
== Lambert, Phong and (Any material with incandescense increased)
I am working on some special indigo materials for Maya

May take a while though... heh..
BTW, read the
Helpfile for some more info

Posted: Wed Nov 15, 2006 2:42 am
by ICY
Let me ask you then... So, I create a material (for example Lambert) using Maya materials. Then I apply the material to the object. Do I have to adjust anything in Indigo in Material section? Also, when I click on material in Indigo, it says that it can't find the materials. Maybe I have placed them in a wrong place. I did it as the *.txt file told me to do.
Thank you.
Posted: Wed Nov 15, 2006 2:46 am
by arneoog
You don't have to change anything in the .xml file if the materials is Diffuse or Phong, but you have to write the specular mat in the .xml indigo file yourself... for now
You just create a material, assign it to the object and export. remember to delete all your history in maya befor you export/convert/generate

Posted: Wed Nov 15, 2006 3:15 am
by ICY
I am not sure why I get this error. Every time use anything but default lambert it gives me this error and stops exporting. I tried it on two machines. I probably made some stupid mistake.

Posted: Wed Nov 15, 2006 3:28 am
by arneoog
can I see what your Script Editor says?
This might be a [BUG]

Posted: Wed Nov 15, 2006 4:32 am
by ICY
Yes, please!

Here it is:

Posted: Wed Nov 15, 2006 4:50 am
by arneoog
Is this what you get?
Code: Select all
envset1-physical
lambert1
lightLinker1
initialMaterialInfo
renderPartition
pCube1
Sun
lightLinker1
materialInfo1
renderPartition
phong1
pSphere1
pCubeShape1/:con lambert1
--->?ERROR HERE?<---
pSphereShape1/:con phong1
Done... See Script Editor for more Info
It might be a connection problem...

Haven't managed to get that error myself, but I know I got it some time ago.
Did you 'Delete All History'?
Posted: Wed Nov 15, 2006 5:10 am
by ICY
Yes, I deleted the history several time.
I am not sure what the problem is and I suppose it's something minor, as always.
I don't know if this helps. I have mtiGen.mel, mtlMain.mel and mtiObjectEditor.mel at:
C:\Documents and Settings\meMy Documents\maya\8.0\scripts
And my System Settings set to: C:\Indigo\
I am using v 0.6.
I don't know what else to say. It seems like Indigo has no connection to materials. Tell me the secret

Posted: Wed Nov 15, 2006 5:26 am
by arneoog
Info about the indigo scene format is here:
Indigo Reference Manual
I've tried, but I can't get Maya to do that error.. heh.....
Can you check if the 'lightLinker1' is connected to 'initialShadingGroup' and 'phong1SG'?
Really weird "bug"... Maybe Matt B know more than me on this one..

Posted: Wed Nov 15, 2006 6:21 am
by ICY
Well, I just tried Indigo with Maya 7 and it renders materials fine, doesn't give me an error. There is something in Maya 8 that Autodesk probably changed. Thank you.
Posted: Wed Nov 15, 2006 8:38 am
by ThatDude33
hmm... strange. Arneoog and I are both running the script in 6.5... and it works fine. Oh well.
Posted: Wed Nov 15, 2006 9:02 am
by ICY
I am not a programmer, but it seems to me, that if Indigo runs fine with Maya 6.5 and Maya 7, but doesn't run with Maya 8 - then Autodesk changed the way materials work in Maya 8. I mean, where is the error of LightLinker comes from, if it doesn't exist in previouse versions?

Anyway, I think you are doing a good job with the renderer. Thank you!
Posted: Wed Nov 15, 2006 9:11 am
by ThatDude33
it does occaisionally come up: cannot find lightlinker1.incandescence... but i cant find the conditions in which it appears

. anyway, usually assigning a new lambert worked, and then deleting all history again. interesting tho!
Posted: Wed Nov 15, 2006 11:25 pm
by bazuka
im also getting the same error here (maya 8 ), and i got it why (exporter is not working)...
if u dont use default lamber1 from maya you will get error
Error: No object matches name: lightLinker1.incandescence
for every other material, so i dont know how i can use more than one material?!
cheers