Page 1 of 1

bug and fix in MtI 3.6.17 diffuse transmitter

Posted: Mon Jun 16, 2014 10:04 am
by zio
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

Re: bug and fix in MtI 3.6.17 diffuse transmitter

Posted: Mon Jun 16, 2014 11:53 am
by Zom-B
afaik "random_triangle_color" is only available for diffuse materials...

Re: bug and fix in MtI 3.6.17 diffuse transmitter

Posted: Mon Jun 23, 2014 4:35 pm
by zio
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?

Re: bug and fix in MtI 3.6.17 diffuse transmitter

Posted: Tue Jun 24, 2014 5:25 am
by CTZn
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.