Page 1 of 1

[BUG] Indigo auto-immune reaction T_T

Posted: Sun Feb 18, 2007 2:53 am
by Maluminas
I exported a scene with the latest blender experter, idited the xml to get the SSS mat i wated but it wont render.

I keep getting the error Found unexpected element "ior" in element "medium". Im like "what the hell..."

I checked the xml and everything was ok. I then removed the ior element just to see what would happen. Then i got another error: Found unexpected element "cauchy_b_coeff" in element "medium". Now im like "Riiiight..."

I remove it and just as i expected i got the error Found unexpected element "absorption_coefficient_spectrum" in element "medium". At this point i stopped because it is clear that it was just gonna make me erase half the xml, even thought its perfectly correct.

What the hell is happening? Is indigo having an auto-immune reaction or what... I used the latest blender exporter with Indigo 0.7t3 and t5.

Here is my code, copy-pasted from the documentation and modified. It should work right?

Code: Select all

	<medium>
		<name>Material</name>

		<ior>1.5</ior>
		<cauchy_b_coeff>0.00</cauchy_b_coeff>

		<absorption_coefficient_spectrum>
			<rgb>
				<rgb>.75 .5 1</rgb>
			</rgb>
		</absorption_coefficient_spectrum>

		<subsurface_scattering>
			<scattering_coefficient_spectrum>
				<uniform>
					<value>10</value>
				</uniform>
			</scattering_coefficient_spectrum>
			<phase_function>
				<uniform/>
			</phase_function>
		</subsurface_scattering>
	</medium>

	<material>
		<name>Material</name>
		<glossy_transparent>
			<exponent>5000.000</exponent>
			<internal_medium_name>Material</internal_medium_name>
		</glossy_transparent>
	</material>

Re: [BUG] Indigo auto-immune reaction T_T

Posted: Sun Feb 18, 2007 3:04 am
by fused

Code: Select all

	<medium>
		<name>Material</name>

		<basic>

		<ior>1.5</ior>
		<cauchy_b_coeff>0.00</cauchy_b_coeff>

		<absorption_coefficient_spectrum>
			<rgb>
				<rgb>.75 .5 1</rgb>
			</rgb>
		</absorption_coefficient_spectrum>

		<subsurface_scattering>
			<scattering_coefficient_spectrum>
				<uniform>
					<value>10</value>
				</uniform>
			</scattering_coefficient_spectrum>
			<phase_function>
				<uniform/>
			</phase_function>
		</subsurface_scattering>
		</basic>
	</medium>

	<material>
		<name>Material</name>
		<glossy_transparent>
			<exponent>5000.000</exponent>
			<internal_medium_name>Material</internal_medium_name>
		</glossy_transparent>
	</material>

seems the exporter doesnt export the <basic> tag


had the same problem, took me 2 hours to find out...


edit: it is veeeeery helpful to read the changes ono makes to the xml format carefully :wink:

Posted: Sun Feb 18, 2007 3:16 am
by Zom-B
yes.... its all about the <basic> ^^
was confused first time I read this error message on my screen too...

Posted: Sun Feb 18, 2007 3:20 am
by Maluminas
Ok it works now... almost... now i got the Orthogonal matrix bug, i thought this was fixed in the exporter... how can i fix it myself?

Posted: Sun Feb 18, 2007 5:24 am
by neepneep
select the object in blender and press CTRL-A to fix that

Posted: Sun Feb 18, 2007 9:54 am
by Maluminas
Thanks all, it works now. :D

But couldnt these issues be fixed by the exporter? It would save a lot of hand-edit hell :?