SkIndigo 3.8.25.2 (beta)

Announcements, requests and support regarding SkIndigo - the Sketchup / Indigo exporter.
cocash
Posts: 20
Joined: Wed Oct 30, 2013 12:36 am
Location: Czech republic,

Re: SkIndigo 3.8.25.2 (beta)

Post by cocash » Mon May 04, 2015 10:59 pm

Hi Snorky,
thank you for your response. I am not sure, if I understand it. It means that you exploded square with default material (=simple flat terrain) where the trees are scattered? And you left the tree component intact without editing?

User avatar
lape
Posts: 241
Joined: Wed Feb 13, 2013 9:09 am
Location: Germany
Contact:

Re: SkIndigo 3.8.25.2 (beta)

Post by lape » Tue May 05, 2015 12:45 am

I have a lot of trees, and all of them work fine with scattering. But when I use your tree, I also get this strange result. So i really think there is something wrong with this obj... Did you try other files?
Attachments
oak.jpg
24 hours isn't enough
http://www.werkraum3d.com

User avatar
lape
Posts: 241
Joined: Wed Feb 13, 2013 9:09 am
Location: Germany
Contact:

Re: SkIndigo 3.8.25.2 (beta)

Post by lape » Tue May 05, 2015 3:40 am

I think it works now:
deleted textures in obj, renamed materials, saved as new obj. See attachments.
Attachments
test scatter new.jpg
test_scatter_new.zip
(1.76 MiB) Downloaded 152 times
tree88.zip
(2.98 MiB) Downloaded 149 times
24 hours isn't enough
http://www.werkraum3d.com

cocash
Posts: 20
Joined: Wed Oct 30, 2013 12:36 am
Location: Czech republic,

Re: SkIndigo 3.8.25.2 (beta)

Post by cocash » Tue May 05, 2015 4:07 am

Wow, it works now! So what do you think was wrong? The obj file?
But why are the original dummies loaded properly and scattered dummies wrongfully?

User avatar
snorky
Indigo 100
Posts: 324
Joined: Fri Apr 17, 2009 8:54 pm
Location: Parma, Italy

Re: SkIndigo 3.8.25.2 (beta)

Post by snorky » Tue May 05, 2015 4:35 am

lape wrote:I think it works now:
deleted textures in obj, renamed materials, saved as new obj. See attachments.
cocash wrote:Wow, it works now! So what do you think was wrong? The obj file?
But why are the original dummies loaded properly and scattered dummies wrongfully?
my method works for me...
all my obj tree have this issue

I dont touch obj file
test_scatter_snorky.zip
(1.74 MiB) Downloaded 92 times

User avatar
lape
Posts: 241
Joined: Wed Feb 13, 2013 9:09 am
Location: Germany
Contact:

Re: SkIndigo 3.8.25.2 (beta)

Post by lape » Tue May 05, 2015 6:15 am

Wow, this is strange: snorky is right! :shock:

If the edges of your dummy have still the default material (or any other face), the scattered object will be wrong textured. You have a long vertical line in your group/component, and if this line has still a default material (or the edges of the squares), the textures get wrong.

My method was to retouch the obj, and with this it works even if the lines have a default material... don't ask me why.... And this is of course much more work, Snorkys method is much faster!
24 hours isn't enough
http://www.werkraum3d.com

User avatar
snorky
Indigo 100
Posts: 324
Joined: Fri Apr 17, 2009 8:54 pm
Location: Parma, Italy

Re: SkIndigo 3.8.25.2 (beta)

Post by snorky » Tue May 05, 2015 7:34 am

lape wrote:Wow, this is strange: snorky is right! :shock:
:lol:

cocash
Posts: 20
Joined: Wed Oct 30, 2013 12:36 am
Location: Czech republic,

Re: SkIndigo 3.8.25.2 (beta)

Post by cocash » Tue May 05, 2015 6:59 pm

Yeah, Snorky's version works. I have to try it with the other obj file during the evening, hope it is going to work also, I will let you know :)
Lape, thank you for the explanation, I appreciate it!
I still think there is some error in scattering editor, because original dummies are loaded right. And you Snorky also said, that you got this error with every external .obj you have. I hope this problem is going to be solved with the new release of skIndigo :)

User avatar
snorky
Indigo 100
Posts: 324
Joined: Fri Apr 17, 2009 8:54 pm
Location: Parma, Italy

Re: SkIndigo 3.8.25.2 (beta)

Post by snorky » Wed May 06, 2015 7:10 am

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<scene>
	<metadata>
		<uid>100</uid>
		<name>Metadata</name>
		<exporter>SkIndigo version:3.8.25.2</exporter>
		<author>Max</author>
		<description></description>
		<created_date>2015-05-05 20:58:56 +0200</created_date>
		<platform>x64-mingw32</platform>
		<exporter_specific></exporter_specific>
	</metadata>

	<renderer_settings>
		<uid>101</uid>
		<name>Render Settings</name>
		<bidirectional>false</bidirectional>
		<verbose>false</verbose>
		<write_aperture_preview>false</write_aperture_preview>
		<save_tonemapped_exr>false</save_tonemapped_exr>
		<save_untonemapped_exr>false</save_untonemapped_exr>
		<save_igi>true</save_igi>
		<save_png>true</save_png>
		<auto_choose_num_threads>true</auto_choose_num_threads>
		<cache_trees>true</cache_trees>
		<metropolis>false</metropolis>
		<logging>true</logging>
		<watermark>false</watermark>
		<aperture_diffraction>false</aperture_diffraction>
		<post_process_diffraction>true</post_process_diffraction>
		<material_id_tracer>false</material_id_tracer>
		<render_foreground_alpha>false</render_foreground_alpha>
		<depth_pass>false</depth_pass>
		<shadow_pass>false</shadow_pass>
		<info_overlay>false</info_overlay>
		<wait_for_slave_frames_on_stop>false</wait_for_slave_frames_on_stop>
		<close_gui_on_halt>false</close_gui_on_halt>
		<save_images_on_close>false</save_images_on_close>
		<glass_acceleration>false</glass_acceleration>
		<vignetting>false</vignetting>
		<merging>true</merging>
		<dithering>true</dithering>
		<version_three_point_four_compat_env_sphere>false</version_three_point_four_compat_env_sphere>
		<max_depth>10000</max_depth>
		<max_num_consec_rejections>1000</max_num_consec_rejections>
		<num_threads>1</num_threads>
		<width>958</width>
		<height>468</height>
		<super_sample_factor>2</super_sample_factor>
		<bih_tri_threshold>1100000</bih_tri_threshold>
		<batched>false</batched>
		<gpu>true</gpu>
		<halt_time>59</halt_time>
		<halt_samples_per_pixel>-1</halt_samples_per_pixel>
		<frame_upload_period>40</frame_upload_period>
		<large_mutation_prob>0.4</large_mutation_prob>
		<max_change>0.01</max_change>
		<image_save_period>1800</image_save_period>
		<gpu_path_tracing>false</gpu_path_tracing>
		<hybrid>false</hybrid>
		<splat_filter>
			<fastbox/>
		</splat_filter>
		<downsize_filter>
			<mn_cubic>
				<blur>1</blur>
				<ring>0</ring>
				<radius>1.6</radius>
			</mn_cubic>
		</downsize_filter>
		<white_point>
			0.31273 0.32902			
		</white_point>
		<layer_setting>
			<name>0</name>
			<enabled>true</enabled>
			<layer_scale>
				<xyz>
					<xyz>1 1 1</xyz>
					<gain>1</gain>
				</xyz>
			</layer_scale>
		</layer_setting>
		<layer_setting>
			<name>1</name>
			<enabled>true</enabled>
			<layer_scale>
				<xyz>
					<xyz>1 1 1</xyz>
					<gain>1</gain>
				</xyz>
			</layer_scale>
		</layer_setting>
		<selected_gpu_device>
			<device_name>GeForce GTX 680</device_name>
			<subsystem>CUDA</subsystem>
		</selected_gpu_device>
	</renderer_settings>

	<tonemapping>
		<uid>102</uid>
		<name>Tone Mapping</name>
		<camera>
			<response_function_path>data/camera_response_functions/Gold-200CD.txt</response_function_path>
			<film_iso>100</film_iso>
			<ev_adjust>0</ev_adjust>
		</camera>
	</tonemapping>

	<camera>
		<uid>103</uid>
		<name>Camera</name>
		<aperture_radius>0.0021</aperture_radius>
		<focus_distance>2</focus_distance>
		<sensor_width>0.036</sensor_width>
		<lens_sensor_dist>0.0328</lens_sensor_dist>
		<exposure_duration>0.002</exposure_duration>
		<lens_shift_up_distance>0</lens_shift_up_distance>
		<lens_shift_right_distance>0</lens_shift_right_distance>
	<autofocus/>
		<aperture_shape>
			<circular/>
		</aperture_shape>
		<keyframe>
			<time>0</time>
			<pos>-7.5438 -1.4211 11.8935</pos>
			<rotation_quaternion>
				<axis>0 0 1</axis>
				<angle>0</angle>
			</rotation_quaternion>
		</keyframe>
		<up>0.2344 0.4399 0.8669</up>
		<forwards>0.4077 0.7651 -0.4984</forwards>
		<camera_type>thin-lens-perspective</camera_type>
	</camera>

	<background_settings>
		<uid>107</uid>
		<name>Background Settings</name>
		<background_material>
			<material>
				<name></name>
				<sunsky>
					<sundir>0.229 -0.297 0.927</sundir>
					<turbidity>2</turbidity>
					<extra_atmospheric>false</extra_atmospheric>
					<enable_sky>true</enable_sky>
					<sun_layer>0</sun_layer>
					<sky_layer>1</sky_layer>
					<model>captured-simulation</model>
				</sunsky>
			</material>
		</background_material>
	</background_settings>

	<material>
		<uid>111</uid>
		<name>Default</name>
		<oren_nayar>
			<albedo>
				<constant>
					<rgb>
						<rgb>0.8 0.8 0.8</rgb>
						<gamma>2.2</gamma>
					</rgb>
				</constant>
			</albedo>
			<sigma>
					<constant>0.5</constant>
			</sigma>
			<layer>0</layer>
		</oren_nayar>
	</material>

	<material>
		<uid>112</uid>
		<name>[Concrete_Aggregate_Smoke]</name>
		<phong>
			<texture>
				<path>C:\Users\Max\AppData\Roaming\Indigo Renderer\TX_default/__Aggregate_Smoke_jpg__concrete_aggregate_smoke__154_150_148_0.jpg</path>
				<a>0</a>
				<b>1</b>
				<c>0</c>
				<uv_set_index>0</uv_set_index>
				<exponent>2.2</exponent>
				<tex_coord_generation>
					<uv>
						<matrix>1 0 0 1</matrix>
						<translation>0 0</translation>
					</uv>
				</tex_coord_generation>
				<smooth>false</smooth>
			</texture>
			<diffuse_albedo>
				<texture>
					<texture_index>0</texture_index>
				</texture>
			</diffuse_albedo>
			<exponent>
					<constant>100</constant>
			</exponent>
			<fresnel_scale>
					<constant>0.75</constant>
			</fresnel_scale>
			<layer>0</layer>
			<ior>1.3</ior>
			<nk_data></nk_data>
		</phong>
	</material>

	<material>
		<uid>113</uid>
		<name>Bottommaterial</name>
		<phong>
			<texture>
				<path>C:\Users\Max\AppData\Roaming\Indigo Renderer\TX_default/_bottomshell_jpg_bottommaterial_254_51_0_255.jpg</path>
				<a>0</a>
				<b>1</b>
				<c>0</c>
				<uv_set_index>0</uv_set_index>
				<exponent>2.2</exponent>
				<tex_coord_generation>
					<uv>
						<matrix>1 0 0 1</matrix>
						<translation>0 0</translation>
					</uv>
				</tex_coord_generation>
				<smooth>false</smooth>
			</texture>
			<diffuse_albedo>
				<texture>
					<texture_index>0</texture_index>
				</texture>
			</diffuse_albedo>
			<exponent>
					<constant>100</constant>
			</exponent>
			<fresnel_scale>
					<constant>0.75</constant>
			</fresnel_scale>
			<layer>0</layer>
			<ior>1.3</ior>
			<nk_data></nk_data>
		</phong>
	</material>

	<material>
		<uid>114</uid>
		<name>skids</name>
		<phong>
			<diffuse_albedo>
				<constant>
					<rgb>
						<rgb>0.6392 0.6392 0.6392</rgb>
						<gamma>2.2</gamma>
					</rgb>
				</constant>
			</diffuse_albedo>
			<exponent>
					<constant>100</constant>
			</exponent>
			<fresnel_scale>
					<constant>0.75</constant>
			</fresnel_scale>
			<layer>0</layer>
			<ior>1.3</ior>
			<nk_data></nk_data>
		</phong>
	</material>

	<material>
		<uid>115</uid>
		<name>Light</name>
		<phong>
			<texture>
				<path>C:\Users\Max\AppData\Roaming\Indigo Renderer\TX_default/_lights1_jpg_light_221_221_221_255.jpg</path>
				<a>0</a>
				<b>1</b>
				<c>0</c>
				<uv_set_index>0</uv_set_index>
				<exponent>2.2</exponent>
				<tex_coord_generation>
					<uv>
						<matrix>1 0 0 1</matrix>
						<translation>0 0</translation>
					</uv>
				</tex_coord_generation>
				<smooth>false</smooth>
			</texture>
			<diffuse_albedo>
				<texture>
					<texture_index>0</texture_index>
				</texture>
			</diffuse_albedo>
			<exponent>
					<constant>100</constant>
			</exponent>
			<fresnel_scale>
					<constant>0.75</constant>
			</fresnel_scale>
			<layer>0</layer>
			<ior>1.3</ior>
			<nk_data></nk_data>
		</phong>
	</material>

	<material>
		<uid>116</uid>
		<name>Fuselage</name>
		<phong>
			<texture>
				<path>C:\Users\Max\AppData\Roaming\Indigo Renderer\TX_default/_topshell_jpg_fuselage_10_21_17_255.jpg</path>
				<a>0</a>
				<b>1</b>
				<c>0</c>
				<uv_set_index>0</uv_set_index>
				<exponent>2.2</exponent>
				<tex_coord_generation>
					<uv>
						<matrix>1 0 0 1</matrix>
						<translation>0 0</translation>
					</uv>
				</tex_coord_generation>
				<smooth>false</smooth>
			</texture>
			<diffuse_albedo>
				<texture>
					<texture_index>0</texture_index>
				</texture>
			</diffuse_albedo>
			<exponent>
					<constant>100</constant>
			</exponent>
			<fresnel_scale>
					<constant>0.75</constant>
			</fresnel_scale>
			<layer>0</layer>
			<ior>1.3</ior>
			<nk_data></nk_data>
		</phong>
	</material>

	<material>
		<uid>117</uid>
		<name>semitransp</name>
		<phong>
			<diffuse_albedo>
				<constant>
					<rgb>
						<rgb>0.498 0.498 0.498</rgb>
						<gamma>2.2</gamma>
					</rgb>
				</constant>
			</diffuse_albedo>
			<exponent>
					<constant>100</constant>
			</exponent>
			<fresnel_scale>
					<constant>0.75</constant>
			</fresnel_scale>
			<layer>0</layer>
			<ior>1.3</ior>
			<nk_data></nk_data>
		</phong>
	</material>

	<material>
		<uid>118</uid>
		<name>gopro</name>
		<phong>
			<texture>
				<path>C:\Users\Max\AppData\Roaming\Indigo Renderer\TX_default/_gopro_jpg_gopro_145_153_156_255.jpg</path>
				<a>0</a>
				<b>1</b>
				<c>0</c>
				<uv_set_index>0</uv_set_index>
				<exponent>2.2</exponent>
				<tex_coord_generation>
					<uv>
						<matrix>1 0 0 1</matrix>
						<translation>0 0</translation>
					</uv>
				</tex_coord_generation>
				<smooth>false</smooth>
			</texture>
			<diffuse_albedo>
				<texture>
					<texture_index>0</texture_index>
				</texture>
			</diffuse_albedo>
			<exponent>
					<constant>100</constant>
			</exponent>
			<fresnel_scale>
					<constant>0.75</constant>
			</fresnel_scale>
			<layer>0</layer>
			<ior>1.3</ior>
			<nk_data></nk_data>
		</phong>
	</material>

	<material>
		<uid>119</uid>
		<name>stift</name>
		<phong>
			<texture>
				<path>C:\Users\Max\AppData\Roaming\Indigo Renderer\TX_default/_stift_jpg_stift_127_132_135_255.jpg</path>
				<a>0</a>
				<b>1</b>
				<c>0</c>
				<uv_set_index>0</uv_set_index>
				<exponent>2.2</exponent>
				<tex_coord_generation>
					<uv>
						<matrix>1 0 0 1</matrix>
						<translation>0 0</translation>
					</uv>
				</tex_coord_generation>
				<smooth>false</smooth>
			</texture>
			<diffuse_albedo>
				<texture>
					<texture_index>0</texture_index>
				</texture>
			</diffuse_albedo>
			<exponent>
					<constant>100</constant>
			</exponent>
			<fresnel_scale>
					<constant>0.75</constant>
			</fresnel_scale>
			<layer>0</layer>
			<ior>1.3</ior>
			<nk_data></nk_data>
		</phong>
	</material>

	<material>
		<uid>120</uid>
		<name>black</name>
		<phong>
			<diffuse_albedo>
				<constant>
					<rgb>
						<rgb>0.6 0.6 0.6</rgb>
						<gamma>2.2</gamma>
					</rgb>
				</constant>
			</diffuse_albedo>
			<exponent>
					<constant>100</constant>
			</exponent>
			<fresnel_scale>
					<constant>0.75</constant>
			</fresnel_scale>
			<layer>0</layer>
			<ior>1.3</ior>
			<nk_data></nk_data>
		</phong>
	</material>

	<material>
		<uid>121</uid>
		<name>metal</name>
		<phong>
			<texture>
				<path>C:\Users\Max\AppData\Roaming\Indigo Renderer\TX_default/_alu_jpg_metal_135_136_135_255.jpg</path>
				<a>0</a>
				<b>1</b>
				<c>0</c>
				<uv_set_index>0</uv_set_index>
				<exponent>2.2</exponent>
				<tex_coord_generation>
					<uv>
						<matrix>1 0 0 1</matrix>
						<translation>0 0</translation>
					</uv>
				</tex_coord_generation>
				<smooth>false</smooth>
			</texture>
			<specular_reflectivity>
				<texture>
					<texture_index>0</texture_index>
				</texture>
			</specular_reflectivity>
			<exponent>
					<constant>100</constant>
			</exponent>
			<layer>0</layer>
			<ior>1.5</ior>
			<nk_data></nk_data>
		</phong>
	</material>

	<mesh>
		<uid>122</uid>
		<name>component dummy</name>
		<max_num_subdivisions>0</max_num_subdivisions>
		<subdivide_pixel_threshold>0</subdivide_pixel_threshold>
		<subdivide_curvature_threshold>0</subdivide_curvature_threshold>
		<displacement_error_threshold>0</displacement_error_threshold>
		<view_dependent_subdivision>false</view_dependent_subdivision>
		<subdivision_smoothing>true</subdivision_smoothing>
		<normal_smoothing>true</normal_smoothing>
		<merge_vertices_with_same_pos_and_normal>true</merge_vertices_with_same_pos_and_normal>
		<view_dependent_subdivision>false</view_dependent_subdivision>
		<scale>1</scale>
		<external>
			<path>C:/Users/Max/Desktop/default_meshes\mesh_81715076_578530.igmesh</path>
		</external>
	</mesh>

	<mesh>
		<uid>123</uid>
		<name>component Gruppo#2</name>
		<max_num_subdivisions>0</max_num_subdivisions>
		<subdivide_pixel_threshold>0</subdivide_pixel_threshold>
		<subdivide_curvature_threshold>0</subdivide_curvature_threshold>
		<displacement_error_threshold>0</displacement_error_threshold>
		<view_dependent_subdivision>false</view_dependent_subdivision>
		<subdivision_smoothing>true</subdivision_smoothing>
		<normal_smoothing>true</normal_smoothing>
		<merge_vertices_with_same_pos_and_normal>true</merge_vertices_with_same_pos_and_normal>
		<view_dependent_subdivision>false</view_dependent_subdivision>
		<scale>1</scale>
		<external>
			<path>C:/Users/Max/Desktop/default_meshes\mesh_3083523219_188.igmesh</path>
		</external>
	</mesh>

	<mesh>
		<uid>124</uid>
		<name>Top level mesh</name>
		<max_num_subdivisions>0</max_num_subdivisions>
		<subdivide_pixel_threshold>0</subdivide_pixel_threshold>
		<subdivide_curvature_threshold>0</subdivide_curvature_threshold>
		<displacement_error_threshold>0</displacement_error_threshold>
		<view_dependent_subdivision>false</view_dependent_subdivision>
		<subdivision_smoothing>true</subdivision_smoothing>
		<normal_smoothing>true</normal_smoothing>
		<merge_vertices_with_same_pos_and_normal>true</merge_vertices_with_same_pos_and_normal>
		<view_dependent_subdivision>false</view_dependent_subdivision>
		<scale>1</scale>
		<external>
			<path>C:/Users/Max/Desktop/default_meshes\mesh_2844319735_4.igmesh</path>
		</external>
	</mesh>

	<model2>
		<uid>125</uid>
		<name>dummy</name>
		<geometry_uid>122</geometry_uid>
		<scale>1</scale>
		<rotation>
			<matrix>
				0.005 0 0 0 -3.816392e-18 -0.005 0 0.005 -3.816392e-18 
			</matrix>
		</rotation>
		<keyframe>
			<time>0</time>
			<pos>-2.7252343812239928 12.295055750104721 0.5000000000000021</pos>
			<rotation_quaternion>
				<axis>0 0 1</axis>
				<angle>0</angle>
			</rotation_quaternion>
		</keyframe>
		<materials>
			<material_uid>121</material_uid>
			<material_uid>120</material_uid>
			<material_uid>119</material_uid>
			<material_uid>118</material_uid>
			<material_uid>117</material_uid>
			<material_uid>116</material_uid>
			<material_uid>115</material_uid>
			<material_uid>114</material_uid>
			<material_uid>113</material_uid>
		</materials>
	</model2>

	<model2>
		<uid>126</uid>
		<name>Gruppo#2</name>
		<geometry_uid>123</geometry_uid>
		<scale>1</scale>
		<rotation>
			<matrix>
				1 0 0 0 1 0 0 0 1 
			</matrix>
		</rotation>
		<keyframe>
			<time>0</time>
			<pos>0 10 0</pos>
			<rotation_quaternion>
				<axis>0 0 1</axis>
				<angle>0</angle>
			</rotation_quaternion>
		</keyframe>
		<materials>
			<material_uid>112</material_uid>
		</materials>
	</model2>

	<model2>
		<uid>127</uid>
		<name>Object</name>
		<geometry_uid>124</geometry_uid>
		<scale>1</scale>
		<rotation>
			<matrix>
				1 0 0 0 1 0 0 0 1 
			</matrix>
		</rotation>
		<keyframe>
			<time>0</time>
			<pos>0 0 0</pos>
			<rotation_quaternion>
				<axis>0 0 1</axis>
				<angle>0</angle>
			</rotation_quaternion>
		</keyframe>
		<materials>
		</materials>
	</model2>

	<mesh>
		<uid>128</uid>
		<name>component dummy</name>
		<max_num_subdivisions>0</max_num_subdivisions>
		<subdivide_pixel_threshold>0</subdivide_pixel_threshold>
		<subdivide_curvature_threshold>0</subdivide_curvature_threshold>
		<displacement_error_threshold>0</displacement_error_threshold>
		<view_dependent_subdivision>false</view_dependent_subdivision>
		<subdivision_smoothing>true</subdivision_smoothing>
		<normal_smoothing>true</normal_smoothing>
		<merge_vertices_with_same_pos_and_normal>true</merge_vertices_with_same_pos_and_normal>
		<view_dependent_subdivision>false</view_dependent_subdivision>
		<scale>1</scale>
		<external>
			<path>C:/Users/Max/Desktop/default_meshes\mesh_81715076_578530.igmesh</path>
		</external>
	</mesh>

	<scatter>
		<uid>129</uid>
		<name>dummy on Gruppo#2</name>
		<proto_object_groups>
			<proto_object_group>
				<geometry_uid>128</geometry_uid>
				<materials>
			<material_uid>120</material_uid>
			<material_uid>121</material_uid>
			<material_uid>119</material_uid>
			<material_uid>118</material_uid>
			<material_uid>113</material_uid>
			<material_uid>116</material_uid>
			<material_uid>115</material_uid>
			<material_uid>114</material_uid>
			<material_uid>117</material_uid>
				</materials>
				<weight>1</weight>
				<transform>
					<matrix>
						0.005 0 0 0 -3.816392e-18 -0.005 0 0.005 -3.816392e-18 
					</matrix>
				</transform>
			</proto_object_group>
		</proto_object_groups>
		<density>0.04</density>
		<seed>1</seed>
		<view_culling>false</view_culling>
		<orient_normal>false</orient_normal>
		<scale_std_dev>0</scale_std_dev>
		<height_std_dev>0</height_std_dev>
		<evenness>0</evenness>
		<target_object_uid>126</target_object_uid>
	</scatter>
</scene>
scatter materials are in a different order than dummy materials, this happens only when there is a default material on the dummy

User avatar
mriedel
Posts: 14
Joined: Sat Apr 18, 2015 9:35 am
Location: Minnesota, USA
Contact:

Re: SkIndigo 3.8.25.2 (beta)

Post by mriedel » Thu May 07, 2015 3:59 pm

Sorky, Lape, Cocash: Thank you for your postings on the topic!

Snorky: I can confirm that your test file works. However, the issue is not only with default textures on the dummy that is scattered; it must be with my .obj files. (I exported these from Sketchup so the problem could be with the Sketchup exporter.)

To see this, I took your file and changed nothing other than the external .obj file that is linked (from your spruce tree to my buckeye tree). So the dummy object that is scattered is unchanged. And yet, when I render the scene, the scattered objects have no textures. As others have noted, this must be a bug with the Shindigo scatter routine, since the dummy object itself renderers fine. See image below.

If I understand correctly, you are manually editing the Indigo scene file, and reordering the materials? If you have time, could you explain a little bit more what you are editing and how you figured out what the correct order should be?

Thanks,
Marc

P.S. By the way, are you using the .obj files from Xfrog trees directly? I no longer have access to those unfortunately. I only acquired the .3ds files.
----
The Riedelian Law of Productivity: Every task will take twice as long as expected -- even if the Riedelian Law of Productivity is taken into account.

User avatar
snorky
Indigo 100
Posts: 324
Joined: Fri Apr 17, 2009 8:54 pm
Location: Parma, Italy

Re: SkIndigo 3.8.25.2 (beta)

Post by snorky » Fri May 08, 2015 12:56 am

mriedel wrote:P.S. By the way, are you using the .obj files from Xfrog trees directly? I no longer have access to those unfortunately. I only acquired the .3ds files.
yes, xfrog trees... on http://xfrog.com/category/samples.html

I'll explain "hack" in a few minutes , I go out now :)


few minutes... 6 hours!

this is the "hack":

- open igs file with notepad (or similar)
- find the name of component
- at the end of <model2> section you find <materials> section with <material_uid> list (copy it)
- find <scatter></scatter> section (at the end of file, I think)
- past <material_uid> list and replace the old list
01.jpg
component scatter
02.jpg
component scatter with external linked obj - with material issue
02xxx_.jpg
component scatter with external linked obj - with hacked material list

User avatar
mriedel
Posts: 14
Joined: Sat Apr 18, 2015 9:35 am
Location: Minnesota, USA
Contact:

Re: SkIndigo 3.8.25.2 (beta)

Post by mriedel » Fri May 08, 2015 12:31 pm

Snorky: Thank you! Your explanation was perfect. I had no difficulty performing the hack as you described it. Scattering of external meshes is now working. (I'm going to write a little script to automate the "hacking" -- I can share it if anyone is interested.)

--Marc
Attachments
mr-exterior-west-2015-04-24.jpg
scatter-test.jpg
----
The Riedelian Law of Productivity: Every task will take twice as long as expected -- even if the Riedelian Law of Productivity is taken into account.

User avatar
Juju
Posts: 270
Joined: Sat Mar 17, 2007 3:49 am
Location: South Africa

Re: SkIndigo 3.8.25.2 (beta)

Post by Juju » Fri May 08, 2015 7:38 pm

spread the love!
Indigo 4 | skIndigo | SUpro 2018

cocash
Posts: 20
Joined: Wed Oct 30, 2013 12:36 am
Location: Czech republic,

Re: SkIndigo 3.8.25.2 (beta)

Post by cocash » Fri May 08, 2015 10:11 pm

Snorky, you are the man! :) Your hack works! I had some difficulties with the method you had previously described. I did not work with every Xfrog obj file I tried (or maybe I did something wrong). This is much easier!
Marc, the sharing of script will be perfect :)
Marc, Lape, thank you for your contribution! As I said, I hope this bug will be fixed with the next release of Skindigo. 8)
Attachments
scatter test3.jpg
original model, wrong textures
scatter test4.jpg
New preview, after I touched the igs file. Textures are correctly mapped!

User avatar
Pibuz
1st Place 100
Posts: 2645
Joined: Tue Dec 11, 2007 7:58 am
Location: Padua, Italy
3D Software: SketchUp

Re: SkIndigo 3.8.25.2 (beta)

Post by Pibuz » Fri May 08, 2015 10:14 pm

We all hope so. External OBJs are such a great tool! It's a pity not to use it! 8)

Post Reply
49 posts

Who is online

Users browsing this forum: No registered users and 1 guest