bug and fix in MtI 3.6.17 diffuse transmitter

Announcements, requests and support regarding the MAYA exporter
Post Reply
4 posts • Page 1 of 1
zio
Posts: 33
Joined: Mon Feb 24, 2014 1:48 pm

bug and fix in MtI 3.6.17 diffuse transmitter

Post by zio » Mon Jun 16, 2014 10:04 am

MtI 3.6.17 gives an an error when you export diffuse transmitter material->random_triangle_color error

so replace

Code: Select all

		$mti_GEN_diffuse += "\t\t<random_triangle_colours>"//true
							+	mti_GEN_boolToString($randomTris)
							+	"</random_triangle_colours>\r\n";
in line 493 with:

Code: Select all

		if($randomTris)
			$mti_GEN_diffuse += "\t\t<random_triangle_colours>true</random_triangle_colours>\r\n";
that is what was in previous version.

Maybe CTZn placed that middle code by mistake, I do not know, do you?

EDIT: I forgot to tell the file name->mti_GEN_.mel
previously ior

User avatar
Zom-B
1st Place 100
Posts: 4663
Joined: Tue Jul 04, 2006 4:18 pm
Location: ´'`\_(ò_Ó)_/´'`
Contact:

Re: bug and fix in MtI 3.6.17 diffuse transmitter

Post by Zom-B » Mon Jun 16, 2014 11:53 am

afaik "random_triangle_color" is only available for diffuse materials...
polygonmanufaktur.de

zio
Posts: 33
Joined: Mon Feb 24, 2014 1:48 pm

Re: bug and fix in MtI 3.6.17 diffuse transmitter

Post by zio » Mon Jun 23, 2014 4:35 pm

It seems that everything is fine with the code I reverted to.

Random triangles also work with dif transmitter?

Do not know what that code was doing there. Anyone?
previously ior

User avatar
CTZn
Posts: 7240
Joined: Thu Nov 16, 2006 4:34 pm
Location: Paris, France

Re: bug and fix in MtI 3.6.17 diffuse transmitter

Post by CTZn » Tue Jun 24, 2014 5:25 am

the code is not wrong in itself. it writes the random triangle status wether it's true or not. the lines you are using wich are found in different places of the same file, writes it only when it's true. not sure what is going on with the diffuse transmitter but as told random triangles are a diffuse option that goes hidden when using the indigo editor for diff trans.
obsolete asset

Post Reply
4 posts • Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest