manual light layers setup

Announcements, requests and support regarding the Blender Indigo export script
Post Reply
7 posts • Page 1 of 1
pxl666
Posts: 308
Joined: Wed Oct 10, 2007 10:10 pm

manual light layers setup

Post by pxl666 » Tue Nov 04, 2008 6:50 pm

hi guys!

is it possible to assign light to a layer manually? after scene being exported?
i tried to copy/paste pieces from layer blending testscene but it gives me error or scene renders pithblack....any ideas??

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

Post by OnoSendai » Tue Nov 04, 2008 7:18 pm

Hi, it's possible, but your scene file will have to be using the new emitting materials, not meshlights.

pxl666
Posts: 308
Joined: Wed Oct 10, 2007 10:10 pm

Post by pxl666 » Tue Nov 04, 2008 7:49 pm

hi Ono
okay - so i tried them...but i was getting errors...

heres igs - with "separate meshes"

Code: Select all

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

<scene>
	<renderer_settings>
		<width>800</width>
		<height>600</height>
		<metropolis>true</metropolis>
		<max_num_consec_rejections>1000</max_num_consec_rejections>
		<bidirectional>false</bidirectional>
		<max_depth>1000</max_depth>
		<logging>true</logging>
		<info_overlay>true</info_overlay>
		<save_untonemapped_exr>false</save_untonemapped_exr>
		<save_tonemapped_exr>false</save_tonemapped_exr>
		<save_igi>false</save_igi>
		<display_period>20.0</display_period>
		<halt_time>-1</halt_time>
		<halt_samples_per_pixel>-1</halt_samples_per_pixel>
		<frame_upload_period>60</frame_upload_period>
		<image_save_period>120</image_save_period>
		<super_sample_factor>2</super_sample_factor>
		<hybrid>false</hybrid>
		<bih_tri_threshold>500000</bih_tri_threshold>
		<ray_origin_nudge_distance>0.000100</ray_origin_nudge_distance>
		<cache_trees>true</cache_trees>
		<num_threads>1</num_threads>
		<auto_choose_num_threads>true</auto_choose_num_threads>
		<splat_filter>
			<mn_cubic>
				<blur>0.300000</blur>
				<ring>0.300000</ring>
			</mn_cubic>
		</splat_filter>
		<downsize_filter>
			<mn_cubic>
				<blur>0.300000</blur>
				<ring>0.300000</ring>
			</mn_cubic>
		</downsize_filter>
		<aperture_diffraction>false</aperture_diffraction>
		<watermark>true</watermark>
	</renderer_settings>

	<tonemapping>
		<linear>
			<scale>5</scale>
		</linear>
	</tonemapping>

	<camera>
		<pos>7.481132 -6.507640 5.343665</pos>
		<up>-0.317370 0.312469 0.895343</up>
		<forwards>-0.654862 0.610666 -0.445245</forwards>
		<aperture_radius>0.002461</aperture_radius>
		<exposure_duration>0.008000</exposure_duration>
		<focus_distance>2.000000</focus_distance>
		<aspect_ratio>1.33333</aspect_ratio>
		<sensor_width>0.036000</sensor_width>
		<lens_sensor_dist>0.039375</lens_sensor_dist>
		<white_balance>E</white_balance>
		<aperture_shape>
			<generated>
				<num_blades>8</num_blades>
				<blade_offset>0.400000</blade_offset>
				<blade_curvature_radius>3.000000</blade_curvature_radius>
				<start_angle>0.200000</start_angle>
			</generated>
		</aperture_shape>
		<lens_shift_up_distance>0.000000</lens_shift_up_distance>
		<lens_shift_right_distance>0.000000</lens_shift_right_distance>
		<autofocus/>
	</camera>

	<material>
		<name>Default</name>
		<diffuse>
			<albedo_spectrum>
				<rgb>
					<rgb>1 1 1</rgb>
					<gamma>2.2</gamma>
				</rgb>
			</albedo_spectrum>
		</diffuse>
	</material>

	<material>
		<name>null</name>
		<null_material/>
	</material>

	<material>
		<name>lamp1</name>
		<diffuse>
			<albedo>
				<constant><rgb>
					<rgb>1 0 0</rgb>
					<gamma>2.2</gamma>
				</rgb></constant>
			</albedo>
			<base_emission>
				<constant>
					<rgb>
						<rgb>1.000000 0.000000 0.000000</rgb>
						<gamma>1</gamma>
					</rgb>
				</constant>
			</base_emission>
		</diffuse>
	</material>

	<material>
		<name>lamp2</name>
		<diffuse>
			<albedo>
				<constant><rgb>
					<rgb>0 1 0.0623894</rgb>
					<gamma>2.2</gamma>
				</rgb></constant>
			</albedo>
			<base_emission>
				<constant>
					<rgb>
						<rgb>0.000000 1.000000 0.113270</rgb>
						<gamma>1</gamma>
					</rgb>
				</constant>
			</base_emission>
		</diffuse>
	</material>

	<material>
		<name>sciana</name>
		<phong>
			<exponent>
				<constant>500</constant>
			</exponent>
			<ior>1.60838</ior>
			<diffuse_albedo>
				<constant><rgb>
					<rgb>0.8 0.8 0.8</rgb>
					<gamma>2.2</gamma>
				</rgb></constant>
			</diffuse_albedo>
		</phong>
	</material>

	<include>
		<pathname>default-meshs.xml</pathname>
	</include>

	<!-- Plane.002 -->
	<model>
		<pos>-3.082993 -0.241061 0.032369</pos>
		<scale>5.14759</scale>
		<rotation>
			<matrix>
				1.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 1.000000 
			</matrix>
		</rotation>
		<mesh_name>Plane.002</mesh_name>
	</model>

	<!-- Plane.001 -->
	<model>
		<pos>0.437227 3.154903 -0.030952</pos>
		<scale>5.14759</scale>
		<rotation>
			<matrix>
				1.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 1.000000 
			</matrix>
		</rotation>
		<mesh_name>Plane.001</mesh_name>
	</model>

	<!-- Plane -->
	<model>
		<pos>0.546406 0.000000 0.000000</pos>
		<scale>5.14759</scale>
		<rotation>
			<matrix>
				1.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 1.000000 
			</matrix>
		</rotation>
		<mesh_name>Plane</mesh_name>
	</model>

</scene>
[/color]
but it renders pithblack

-------

i tried to add this:

Code: Select all

<layer>0</layer>
[/color]

under <diffuse> but it gives me an error....

scenefiles attached

thans Ono
Attachments
default.igs
(7.56 KiB) Downloaded 259 times

pxl666
Posts: 308
Joined: Wed Oct 10, 2007 10:10 pm

Post by pxl666 » Wed Nov 05, 2008 6:29 am

any hints??

pxl666
Posts: 308
Joined: Wed Oct 10, 2007 10:10 pm

Post by pxl666 » Wed Nov 05, 2008 8:17 am

i see it comes with 116? i see no documentation abot it...pls heeelp!

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

Post by OnoSendai » Wed Nov 05, 2008 2:59 pm

Whats the error message?

pxl666
Posts: 308
Joined: Wed Oct 10, 2007 10:10 pm

Post by pxl666 » Wed Nov 05, 2008 7:49 pm

hmmm weird...i went to another machine, downloaded the scenefile attached , added layers to the lamps ( layer 0 for lamp1 , layer 1 for lamp2)...and scene seems to work although its black...

Post Reply
7 posts • Page 1 of 1

Who is online

Users browsing this forum: No registered users and 5 guests