Help with "<include>"

Feature requests, bug reports and related discussion
Post Reply
3 posts • Page 1 of 1
jiversen
Posts: 29
Joined: Tue Jan 29, 2008 10:53 am

Help with "<include>"

Post by jiversen » Fri Apr 25, 2008 6:15 pm

Hi there,

I'm not understanding the full way in which the include statement should work. I get a "could not find root 'scenedata'" error that doesn't make sense to me.

Here are my files, can you tell me what might be missing?
base scene wrote: <?xml version="1.0" encoding="utf-8"?>
<scene>

<!-- output global renderer settings -->
<renderer_settings>

<large_mutation_prob>0.2</large_mutation_prob>
<max_change>0.0250000003725</max_change>
<metropolis>true</metropolis>
<logging>true</logging>
<max_depth>1000</max_depth>
<ray_origin_nudge_distance>0.0001</ray_origin_nudge_distance>
<super_sample_factor>2</super_sample_factor>
<aperture_diffraction>true</aperture_diffraction>
<post_process_diffraction>true</post_process_diffraction>
<bidirectional>true</bidirectional>
<auto_choose_num_threads>false</auto_choose_num_threads>
<num_threads>2</num_threads>
<save_untonemapped_exr>false</save_untonemapped_exr>
<save_tonemapped_exr>false</save_tonemapped_exr>
<image_save_period>10.0</image_save_period>
<halt_time>-1.0</halt_time>
<halt_samples_per_pixel>-1</halt_samples_per_pixel>
<display_period>10</display_period>
<splat_filter>
<gaussian>
</gaussian>
</splat_filter>
<downsize_filter>
<gaussian>
</gaussian>
</downsize_filter>
<width>320</width>
<height>200</height>
<render_region>
<x1>
0.0
</x1>
<y1>
0.0
</y1>
<x2>
320.0
</x2>
<y2>
198.949211929
</y2>
</render_region>
</renderer_settings>

<tonemapping>

<reinhard>

<pre_scale>1.0</pre_scale>
<post_scale>1.0</post_scale>
<burn>3.0</burn>
</reinhard>
</tonemapping>

<!-- output all lights -->
<!-- light name: /obj/spotlight1 (grid) -->
<!-- light name: /obj/indigo_light1 (background) -->
<background>

<spectrum>

<rgb>

<rgb>1.000000 1.000000 1.000000</rgb>
<gamma>1.0</gamma>
</rgb>
</spectrum>
</background>

<!-- output the main camera -->
<camera>
<!-- camera name: /obj/cam1 -->
<pos>0.216471 -1.651027 0.495646</pos>
<forwards>-0.013716 0.996498 -0.082489</forwards>
<up>-0.001135 0.082481 0.996592</up>
<lens_sensor_dist>0.0394000015259</lens_sensor_dist>
<aperture_radius>0.00351785733901</aperture_radius>
<focus_distance>2.39477872849</focus_distance>
<sensor_width>0.036</sensor_width>
<autofocus>true</autofocus>
<aspect_ratio>1.6</aspect_ratio>
<white_balance>D65</white_balance>
<aperture_shape>
<circular>
</circular>
</aperture_shape>
</camera>

<!-- output all mediums and materials -->

<material>
<name>/shop/i_diffuse1</name>
<!-- name(/shop/i_diffuse1) type(diffuse) category(material) -->
<diffuse>
<albedo_spectrum>
<rgb>
<rgb>0.334400 0.435280 0.800000</rgb>
<gamma>1.0</gamma>
</rgb>
</albedo_spectrum>
</diffuse>
</material>

<!-- output all meshes and models -->
<!-- processing object /obj/platonic_object1, geometry mode: write -->
<include>
<pathname>
C:/Users/jiversen/AppData/Local/Temp/platonic_object1.igs
</pathname>
</include>

</scene>

scene to be included: C:/Users/jiversen/AppData/Local/Temp/platonic_object1.igs wrote: <!-- writeGeometries: geometry definition follows -->
<!-- geometry from sop: /obj/platonic_object1/merge1 -->
<mesh>

<!-- defining partitioned mesh for material: -->
<name>_obj_platonic_object1-mesh</name>
<normal_smoothing>true</normal_smoothing>
<embedded>

<expose_uv_set>

<index>0</index>
<name>uv</name>
</expose_uv_set>
<vertex pos="-0.500000 1.000000 -0.500000" normal="-0.666667 -0.333333 -0.666667" uv0="0.432262 0.309241" uv2="0.000000 0.000000" uv3="0.000000 0.000000" />
<vertex pos="0.500000 1.000000 -0.500000" normal="0.408248 -0.816497 -0.408248" uv0="0.571125 0.310709" uv2="0.000000 0.000000" uv3="0.000000 0.000000" />
<vertex pos="0.500000 1.000000 0.500000" normal="0.666667 -0.333333 0.666667" uv0="0.571125 0.689291" uv2="0.000000 0.000000" uv3="0.000000 0.000000" />
<vertex pos="-0.500000 1.000000 0.500000" normal="-0.408248 -0.816497 0.408248" uv0="0.432262 0.690759" uv2="0.000000 0.000000" uv3="0.000000 0.000000" />
<vertex pos="-0.500000 2.000000 -0.500000" normal="-0.408248 0.816497 -0.408248" uv0="0.067738 0.309241" uv2="0.000000 0.000000" uv3="0.000000 0.000000" />
<vertex pos="0.500000 2.000000 -0.500000" normal="0.666667 0.333333 -0.666667" uv0="0.928875 0.310709" uv2="0.000000 0.000000" uv3="0.000000 0.000000" />
<vertex pos="0.500000 2.000000 0.500000" normal="0.408248 0.816497 0.408248" uv0="0.928875 0.689291" uv2="0.000000 0.000000" uv3="0.000000 0.000000" />
<vertex pos="-0.500000 2.000000 0.500000" normal="-0.666667 0.333333 0.666667" uv0="0.067738 0.690759" uv2="0.000000 0.000000" uv3="0.000000 0.000000" />
<vertex pos="-0.500000 -0.500000 -0.500000" normal="-0.666667 -0.333333 -0.666667" uv0="0.432262 0.309241" uv2="0.000000 0.000000" uv3="0.000000 0.000000" />
<vertex pos="0.500000 -0.500000 -0.500000" normal="0.408248 -0.816497 -0.408248" uv0="0.571125 0.310709" uv2="0.000000 0.000000" uv3="0.000000 0.000000" />
<vertex pos="0.500000 -0.500000 0.500000" normal="0.666667 -0.333333 0.666667" uv0="0.571125 0.689291" uv2="0.000000 0.000000" uv3="0.000000 0.000000" />
<vertex pos="-0.500000 -0.500000 0.500000" normal="-0.408248 -0.816497 0.408248" uv0="0.432262 0.690759" uv2="0.000000 0.000000" uv3="0.000000 0.000000" />
<vertex pos="-0.500000 0.500000 -0.500000" normal="-0.408248 0.816497 -0.408248" uv0="0.067738 0.309241" uv2="0.000000 0.000000" uv3="0.000000 0.000000" />
<vertex pos="0.500000 0.500000 -0.500000" normal="0.666667 0.333333 -0.666667" uv0="0.928875 0.310709" uv2="0.000000 0.000000" uv3="0.000000 0.000000" />
<vertex pos="0.500000 0.500000 0.500000" normal="0.408248 0.816497 0.408248" uv0="0.928875 0.689291" uv2="0.000000 0.000000" uv3="0.000000 0.000000" />
<vertex pos="-0.500000 0.500000 0.500000" normal="-0.666667 0.333333 0.666667" uv0="0.067738 0.690759" uv2="0.000000 0.000000" uv3="0.000000 0.000000" />
<triangle_set>

<material_name>/shop/i_diffuse1</material_name>
<tri> 0 4 5 </tri>
<tri> 5 6 2 </tri>
<tri> 2 6 7 </tri>
<tri> 7 4 0 </tri>
<tri> 3 0 1 </tri>
<tri> 4 7 6 </tri>
<tri> 4 6 5 </tri>
<tri> 3 1 2 </tri>
<tri> 3 7 0 </tri>
<tri> 2 7 3 </tri>
<tri> 1 5 2 </tri>
<tri> 0 5 1 </tri>
<tri> 8 12 13 </tri>
<tri> 13 14 10 </tri>
<tri> 10 14 15 </tri>
<tri> 15 12 8 </tri>
<tri> 11 8 9 </tri>
<tri> 12 15 14 </tri>
<tri> 12 14 13 </tri>
<tri> 11 9 10 </tri>
<tri> 11 15 8 </tri>
<tri> 10 15 11 </tri>
<tri> 9 13 10 </tri>
<tri> 8 13 9 </tri>
</triangle_set>
</embedded>
</mesh>
<model>

<!-- outputModel: name: /obj/platonic_object1 -- mesh name _obj_platonic_object1-mesh -->
<pos>0.203738 1.011745 -0.162896</pos>
<rotation>

<matrix>0.415164120422 0.0 -0.355625820908 -0.355625820908 -2.38950212095e-008 -0.415164120422 -1.55448989524e-008 0.546654343605 -1.81474007826e-008</matrix>
</rotation>
<scale>1</scale>
<mesh_name>_obj_platonic_object1-mesh</mesh_name>
</model>

User avatar
fused
Developer
Posts: 3583
Joined: Fri Sep 22, 2006 7:19 am
Location: Berlin, Germany
3D Software: Cinema 4D

Post by fused » Fri Apr 25, 2008 6:20 pm

hi!

the included scene must be inside a <scenedata></scenedata> element.

jiversen
Posts: 29
Joined: Tue Jan 29, 2008 10:53 am

Post by jiversen » Fri Apr 25, 2008 6:24 pm

Ah yes - that works, thanks.

Can I suggest that information gets added to the Manual?

Post Reply
3 posts • Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest