<div dir="ltr">Hi,<div><br></div><div>While documentation could indeed be improved, you should consider looking into existing standalone application which has all basics implemented. Some more extese examples could be found in the blender integration.</div><div><br></div><div>Basically to cancel rendering you have to call: session-&gt;progress.set_cancel(&quot;Canceled&quot;)</div><div><br></div><div>You can also check around session-&gt;progress.set_cancel_callback from the Blender integration to see how cancel is integrated there.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 30, 2015 at 11:28 PM, haggi krey <span dir="ltr">&lt;<a href="mailto:haggi@haggi.de" target="_blank">haggi@haggi.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I&#39;m not sure if this is the correct list to ask. But I could not find<br>
another ressource.<br>
So if I&#39;m wrong here it would be great if you could give me a hint where<br>
to search so some support about Cycles.<br>
<br>
So what do I want?<br>
I plan to implement Cycles into Autodesk Maya. I have built a framework<br>
to implement 3rd party renderers into Maya was works quite fine with<br>
Appleseed and others.<br>
Because I already implemented some OSL translation from Maya to<br>
Appleseed I thought it could be an interesting idea to reuse the whole<br>
system to do the same with Cycles.<br>
I started with the Cycles standalone, compiled it and try to write a<br>
simple application which creates a triangle and renders it.<br>
Well, interestingly it already seems to work even if I did not throw<br>
anyting into the scene yet, what means Cycles is a really well designed<br>
renderer.<br>
<br>
But I&#39;m a bit lost how the whole system works. I could not find any<br>
documentation of the methods or params.<br>
e.g. how can I stop a rendering? I created a session and started it what<br>
seems to start a rendering:<br>
<br>
     session-&gt;start();<br>
To block the process unti it it finished I do:<br>
     session-&gt;wait();<br>
But the process seems to to end and waits for something. The last log<br>
line says:<br>
<br>
Sample 800 Done: Path Tracing Tile 80/80, Sample 10/10<br>
<br>
Thanks for any support.<br>
<br>
haggi<br>
<br>
_______________________________________________<br>
Bf-cycles mailing list<br>
<a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-cycles" rel="noreferrer" target="_blank">http://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div><span style="color:rgb(102,102,102)">With best regards, Sergey Sharybin</span></div></div>
</div>