<?xml version="1.0" encoding="utf-8"?>

<scene version="0.6.0" >
	<integrator type="bdpt" >
		<integer name="maxDepth" value="-1" />
	</integrator>
	<sensor type="perspective" >
		<string name="fovAxis" value="x"/>
		<float name="fov" value="60"/>
		<transform name="toWorld">
			<rotate x="1" angle="-167"/>
			<rotate y="1" angle="-87.36"/>
			<rotate z="1" angle="-180"/>
			<translate x="8.885" y="4.520" z="0.43"/>
		</transform>

		<sampler type="independent" >
			<integer name="sampleCount" value="128" />
			<!-- <integer name="sampleCount" value="100000" /> -->
		</sampler>
		<film type="hdrfilm" >
			<integer name="width" value="1150" />
			<integer name="height" value="550" />
			<!-- <integer name="width" value="1800" /> -->
			<!-- <integer name="height" value="861" /> -->
			<!-- <integer name="width" value="2300" /> -->
			<!-- <integer name="height" value="1100" /> -->
			<string name="pixelFormat" value="rgb"/>
			<rfilter type="tent"/>
			<boolean name="banner" value="false" />
		</film>
	</sensor>

	<bsdf type="twosided" id="Diffuse" >
		<bsdf type="diffuse" >
			<rgb name="reflectance" value="0.5, 0.5, 0.5"/>
		</bsdf>
	</bsdf>
	<shape type="ply" >
		<string name="filename" value="meshes/Room.ply" />
		<boolean name="faceNormals" value="true" />
		<bsdf type="twosided" >
			<bsdf type="diffuse" >
				<texture type="checkerboard" name="reflectance">
					<float name="uvscale" value="10"/>
					<float name="uoffset" value="04"/>
					<rgb name="color0" value="0.007, 0.007, 0.007"/>
					<rgb name="color1" value="0.02, 0.02, 0.02"/>
				</texture>
			</bsdf>
		</bsdf>
	</shape>
	<shape type="ply">
		<string name="filename" value="meshes/Floor.ply"/>
		<bsdf type="twosided" >
			<bsdf type="diffuse" >
				<texture type="checkerboard" name="reflectance">
					<float name="uvscale" value="33"/>
					<float name="uoffset" value="04"/>
					<rgb name="color0" value="0.005, 0.005, 0.005"/>
					<rgb name="color1" value="0.005, 0.005, 0.005"/>
				</texture>
			</bsdf>
		</bsdf>
	</shape>

	
	<shape type="cylinder" >
		<ref id="Diffuse" />
		<emitter type="area" >
			<spectrum name="radiance" value="400:1,430:1,440:25,455:2, 470:3,490:40,510:3, 530:3,540:19,550:45,562:6, 575:6,580:9,590:10,605:5, 610:5,615:20,620:6, 635:7,640:3,700:2" />
			<float name="scale" value="1850" />
		</emitter>

		<point name="p0" x="0" z="0" y=" 1." />
		<point name="p1" x="0" z="0" y="-1." />
		<float name="radius" value=".021" />
		<transform name="toWorld">
			<rotate z="1" angle="90"/>
			<translate x="-2.06" y="3.62" z="5.24" />
		</transform>
	</shape>
	<shape type="sphere" >
		<!-- <ref id="Diffuse" /> -->
		<emitter type="area" >
			<spectrum name="radiance" value="430:10,440:18,450:48,460:30,480:21, 500:40,530:53,580:90,600:100,630:83,680:30,730:19" />
			<float name="scale" value="350" />
		</emitter>

		<float name="radius" value=".15" />
		<transform name="toWorld">
			<translate x="-3.82" y="4.122" z="-4.9569" />
		</transform>
	</shape>


	<bsdf type="twosided" id="cdplastic" >
		<bsdf type="diffuse" >
			<rgb name="reflectance" value="0.1, 0.1, 0.1"/>
		</bsdf>
	</bsdf>
	<bsdf type="twosided" id="cdchrome" >
		<bsdf type="roughconductor" >
			<float name="sigma" value="0.001" />
			<string name="material" value="Al" />
		</bsdf>
	</bsdf>
	<bsdf type="twosided" id="cdgrating" >
		<bsdf type="grating" >
			<rgb name="specularReflectance" value=".7, .5, .475"/>
			<string name="material" value="Al" />
			<float name="pitch" value="0.7" />
			<string name="lobes" value=".7, .6, .5, .4, .3, .2, .1" />
		</bsdf>
	</bsdf>
	<shape type="ply">
		<string name="filename" value="meshes/cdobj-chrome1.ply"/>
		<ref id="cdchrome" name="bsdf"/>
	</shape>
	<shape type="ply">
		<string name="filename" value="meshes/cdobj-Nuovo.ply"/>
		<ref id="cdgrating" name="bsdf"/>
	</shape>
	<shape type="ply">
		<string name="filename" value="meshes/cdobj-Nuovo_1.ply"/>
		<ref id="cdplastic" name="bsdf"/>
	</shape>
	<shape type="ply">
		<string name="filename" value="meshes/cdobj-scocca.ply"/>
		<ref id="cdplastic" name="bsdf"/>
	</shape>
	<shape type="ply">
		<string name="filename" value="meshes/cdobj.001-chrome1.ply"/>
		<ref id="cdchrome" name="bsdf"/>
	</shape>
	<shape type="ply">
		<string name="filename" value="meshes/cdobj.001-Nuovo.ply"/>
		<ref id="cdgrating" name="bsdf"/>
	</shape>
	<shape type="ply">
		<string name="filename" value="meshes/cdobj.001-Nuovo_1.ply"/>
		<ref id="cdplastic" name="bsdf"/>
	</shape>
	<shape type="ply">
		<string name="filename" value="meshes/cdobj.001-scocca.ply"/>
		<ref id="cdplastic" name="bsdf"/>
	</shape>


	<bsdf type="roughconductor" id="brushed-stand" >
		<float name="sigma" value="0.005" />
		<string name="material" value="Cr" />
	</bsdf>
	<bsdf type="roughconductor" id="brushed-stand-top" >
		<float name="sigma" value="0.005" />
		<float name="sigmaV" value="0.09" />
		<string name="material" value="Al" />
		<string name="anisoMode" value="radial" />
	</bsdf>
	<shape type="ply">
		<string name="filename" value="meshes/stand.ply"/>
		<ref id="brushed-stand" name="bsdf"/>
	</shape>
	<shape type="ply">
		<string name="filename" value="meshes/stand.top.ply"/>
		<ref id="brushed-stand-top" name="bsdf"/>
	</shape>


	<bsdf type="normalmap" id="mat-Cat" >
		<texture type="bitmap">
			<string name="filename" value="textures/M_Cat_Statue_normal.png" />
			<float name="gamma" value="1.0" />
		</texture>
		<bsdf type="roughconductor">
			<texture type="bitmap" name="specularReflectance">
				<string name="filename" value="textures/M_Cat_Statue_metallic.jpg" />
			</texture>
			<float name="sigma" value="0.12" />
			<string name="material" value="Au" />
		</bsdf>
	</bsdf>
	<shape type="ply">
		<string name="filename" value="meshes/Cat_Statue.ply"/>
		<ref id="mat-Cat" name="bsdf"/>
	</shape>


	<bsdf type="roughconductor" id="mat-scarab-body" >
		<float name="sigma" value="0.005" />
		<string name="material" value="Ag" />
		<rgb name="specularReflectance" value=".6, .6, .6"/>
	</bsdf>
	<bsdf type="coating" id="mat-scarab-wings">
		<float name="thickness" value=".23"/>
		<float name="sigma" value="0.4" />
		<float name="coatingIOR" value="2" />
		<string name="material" value="Ag" />
		<rgb name="specularReflectance" value=".8, .8, .9"/>
	</bsdf>
	<shape type="ply">
		<string name="filename" value="meshes/15916_Scarab_Beetle_v1.ply"/>
		<ref id="mat-scarab-body" name="bsdf"/>
	</shape>
	<shape type="ply">
		<string name="filename" value="meshes/15916_Scarab_Beetle_v1.001.ply"/>
		<ref id="mat-scarab-wings" name="bsdf"/>
	</shape>


	<bsdf type="roughplastic" id="mat-pluma-cover">
		<rgb value="0.0 0.005 0.025" name="diffuseReflectance"/>
		<float name="intIOR" value="1.6" />
		<float name="alpha" value="0.015" />
	</bsdf>
	<bsdf type="diffuse" id="mat-pluma-nibplastic">
		<rgb value="0.05000 0.05000 0.05000" name="reflectance"/>
	</bsdf>
	<bsdf type="roughplastic" id="mat-pluma-inner-body">
		<rgb value="0.00001 0.00001 0.00001" name="diffuseReflectance"/>
		<float name="intIOR" value="1.4" />
		<float name="alpha" value="0.0002" />
	</bsdf>
	<bsdf type="twosided" id="mat-nib">
		<bsdf type="roughconductor">
			<float name="sigma" value="0.00001" />
			<string name="material" value="Ir" />
		</bsdf>
	</bsdf>
	<bsdf type="roughconductor" id="mat-pluma-clip">
		<float name="sigma" value="0.001" />
		<string name="material" value="Al" />
	</bsdf>
	<bsdf type="roughconductor" id="mat-pluma-body">
		<float name="sigma" value="0.1" />
		<string name="material" value="Cr" />
		<rgb value=".95 0.9 1." name="specularReflectance"/>
	</bsdf>
	<shape type="ply">
		<string name="filename" value="meshes/PLUMA-Material #31.ply"/>
		<ref id="mat-pluma-nibplastic" name="bsdf"/>
	</shape>
	<shape type="ply">
		<string name="filename" value="meshes/PLUMA-Material #35.ply"/>
		<ref id="mat-nib" name="bsdf"/>
	</shape>
	<shape type="ply">
		<string name="filename" value="meshes/PLUMA-Material #32.ply"/>
		<ref id="mat-pluma-body" name="bsdf"/>
	</shape>
	<shape type="ply">
		<string name="filename" value="meshes/PLUMA-Material #33.ply"/>
		<ref id="mat-pluma-inner-body" name="bsdf"/>
	</shape>
	<shape type="ply">
		<string name="filename" value="meshes/PLUMA.001-Material #31.ply"/>
		<ref id="mat-pluma-cover" name="bsdf"/>
	</shape>
	<shape type="ply">
		<string name="filename" value="meshes/PLUMA.001-Material #33.ply"/>
		<ref id="mat-pluma-clip" name="bsdf"/>
	</shape>


	<bsdf type="twosided" id="WireDiffuse" >
		<bsdf type="diffuse" >
			<rgb name="reflectance" value="0.005, 0.005, 0.005"/>
		</bsdf>
	</bsdf>
	<bsdf type="roughconductor" id="mat-LampBody">
		<float name="sigma" value="0.02" />
		<string name="material" value="AlSb" />
	</bsdf>
	<bsdf type="roughconductor" id="mat-LampBodyEnds">
		<float name="sigma" value="0.02" />
		<string name="material" value="Al" />
	</bsdf>
	<shape type="ply">
		<string name="filename" value="meshes/wire.ply"/>
		<ref id="WireDiffuse" name="bsdf"/>
	</shape>
	<shape type="ply">
		<string name="filename" value="meshes/LampBody1.ply"/>
		<ref id="mat-LampBodyEnds" name="bsdf"/>
	</shape>
	<shape type="ply">
		<string name="filename" value="meshes/LampBody2.ply"/>
		<ref id="mat-LampBody" name="bsdf"/>
	</shape>
	<shape type="ply">
		<string name="filename" value="meshes/LampBody3.ply"/>
		<ref id="mat-LampBodyEnds" name="bsdf"/>
	</shape>
</scene>

