Materials don't work

Announcements, requests and support regarding the MAYA exporter
ICY
Posts: 15
Joined: Tue Nov 14, 2006 4:08 am

Materials don't work

Post by ICY » Wed Nov 15, 2006 1:42 am

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.

User avatar
arneoog
Indigo 100
Posts: 504
Joined: Sun Jun 25, 2006 2:19 am
Contact:

Post by arneoog » Wed Nov 15, 2006 1:48 am

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 :)

ICY
Posts: 15
Joined: Tue Nov 14, 2006 4:08 am

Post by ICY » Wed Nov 15, 2006 2:42 am

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.

User avatar
arneoog
Indigo 100
Posts: 504
Joined: Sun Jun 25, 2006 2:19 am
Contact:

Post by arneoog » Wed Nov 15, 2006 2:46 am

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 :P

ICY
Posts: 15
Joined: Tue Nov 14, 2006 4:08 am

Post by ICY » Wed Nov 15, 2006 3:15 am

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.

Image

User avatar
arneoog
Indigo 100
Posts: 504
Joined: Sun Jun 25, 2006 2:19 am
Contact:

Post by arneoog » Wed Nov 15, 2006 3:28 am

can I see what your Script Editor says?

This might be a [BUG] :shock:

ICY
Posts: 15
Joined: Tue Nov 14, 2006 4:08 am

Post by ICY » Wed Nov 15, 2006 4:32 am

Yes, please! :) Here it is:

Image

User avatar
arneoog
Indigo 100
Posts: 504
Joined: Sun Jun 25, 2006 2:19 am
Contact:

Post by arneoog » Wed Nov 15, 2006 4:50 am

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'?

ICY
Posts: 15
Joined: Tue Nov 14, 2006 4:08 am

Post by ICY » Wed Nov 15, 2006 5:10 am

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 :)

User avatar
arneoog
Indigo 100
Posts: 504
Joined: Sun Jun 25, 2006 2:19 am
Contact:

Post by arneoog » Wed Nov 15, 2006 5:26 am

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..... :lol:

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.. :)

ICY
Posts: 15
Joined: Tue Nov 14, 2006 4:08 am

Post by ICY » Wed Nov 15, 2006 6:21 am

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.

User avatar
ThatDude33
Posts: 216
Joined: Wed Jul 05, 2006 1:26 pm
Contact:

Post by ThatDude33 » Wed Nov 15, 2006 8:38 am

hmm... strange. Arneoog and I are both running the script in 6.5... and it works fine. Oh well.
Matt B. >>Maya To Indigo<<
Image

ICY
Posts: 15
Joined: Tue Nov 14, 2006 4:08 am

Post by ICY » Wed Nov 15, 2006 9:02 am

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!

User avatar
ThatDude33
Posts: 216
Joined: Wed Jul 05, 2006 1:26 pm
Contact:

Post by ThatDude33 » Wed Nov 15, 2006 9:11 am

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!
Matt B. >>Maya To Indigo<<
Image

bazuka
Posts: 7
Joined: Wed Nov 15, 2006 10:22 pm

Post by bazuka » Wed Nov 15, 2006 11:25 pm

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
Last edited by bazuka on Thu Nov 16, 2006 12:59 am, edited 2 times in total.

Post Reply
32 posts

Who is online

Users browsing this forum: No registered users and 57 guests