Params lost after translation

Come here for help & support.
Post Reply
3 posts • Page 1 of 1
User avatar
CTZn
Posts: 7240
Joined: Thu Nov 16, 2006 4:34 pm
Location: Paris, France

Params lost after translation

Post by CTZn » Thu Jun 20, 2013 10:15 pm

Hi,

MtI is not successful anymore in passing params to Indigo but I'm totally missing the point, the XML output looks correct and the feature was working recently.

Below MtI's output from the IGS. Indigo is missing the params and raises the related ISL error.

Code: Select all

<medium>
	<name>indigoMedium1</name>
	<precedence>10</precedence>
	<basic>
		<ior>1.330000043</ior>
		<cauchy_b_coeff>0</cauchy_b_coeff>
		<absorption_coefficient>
			<constant>
				<rgb>
					<rgb>0.02247653902 0.02247653902 0.02247653902</rgb>
					<gamma>2.200000048</gamma>
				</rgb>
			</constant>
		</absorption_coefficient>
		<subsurface_scattering>
		<scattering_coefficient>
			<!-- indigoText1 -->
			<shader>
			<param>
				<real>
					<name>Density</name>
					<description>Density</description>
					<min>0</min>
					<max>250</max>
					<value>75</value>
				</real>
			</param>
			<param>
				<real>
					<name>HeightRatio</name>
					<description>HeightRatio</description>
					<min>0</min>
					<max>50</max>
					<value>16</value>
				</real>
			</param>
			<param>
				<real>
					<name>GlobalScale</name>
					<description>GlobalScale</description>
					<min>0</min>
					<max>50</max>
					<value>0.5</value>
				</real>
			</param>
				<wavelength_dependent>false</wavelength_dependent>
				<shader>
<![CDATA[def eval(vec3 pos) real:

fbm01(
	vec3(
		pos.x,
		pos.y * paramHeightRatio(),
		pos.z
	) * paramGlobalScale(),
	8	
)
* paramDensity()]]>
				</shader>
			</shader>
		</scattering_coefficient>
			<phase_function>
				<uniform/>
			</phase_function>
		</subsurface_scattering>
	</basic>
</medium>
<material>
	<name>indigoShader2SG</name>
	<specular>
		<transparent>true</transparent>
		<internal_medium_name>indigoMedium1</internal_medium_name>
	</specular>
</material>
It must be some stupid mistake I made ?
obsolete asset

User avatar
OnoSendai
Developer
Posts: 6241
Joined: Sat May 20, 2006 6:16 pm
Location: Wellington, NZ
Contact:

Re: Params lost after translation

Post by OnoSendai » Fri Jun 21, 2013 12:22 am

Shader params don't work properly for volume parameters currently. Am looking at fixing.

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

Re: Params lost after translation

Post by CTZn » Fri Jun 21, 2013 1:29 am

Ah alright, thank you.

On a side note, could the phase function be a shader ?
obsolete asset

Post Reply
3 posts • Page 1 of 1

Who is online

Users browsing this forum: No registered users and 125 guests