<div dir="ltr"><div>I want to integrate my engine in Blender and the integration must be fast. I'm almost sure adding some python to glue between blender and my engine will be fast enough (probably too much data conversions).<br><br></div><div>I already wrote an export addon using the python API but it wasn't interactive enough.<br></div><div><br></div>Is it hard to maintain a non official internal addon ? I mean, I could fork Blender, integrate my engine and keep Blender updated on a monthly or weekly basis.<br><div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2017-06-18 2:38 GMT+02:00 Brecht Van Lommel <span dir="ltr"><<a href="mailto:brechtvanlommel@pandora.be" target="_blank">brechtvanlommel@pandora.be</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">The start page for code docs is here:<div><a href="https://wiki.blender.org/index.php/Dev:Source/Architecture" target="_blank">https://wiki.blender.org/<wbr>index.php/Dev:Source/<wbr>Architecture</a><br></div><div><br></div><div>However if you are writing an addon it's really the Python API docs that you need:</div><div><a href="https://docs.blender.org/api/current/" target="_blank">https://docs.blender.org/api/<wbr>current/</a><br></div><div><br></div><div>Cycles is linked directly into Blender and has access to a C++ versions of the Python API, and the C++ API is not available to external addons. But they are exactly the same besides the language, and the documentation applies to both.</div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 17, 2017 at 10:42 PM, Sylvain Meunier <span dir="ltr"><<a href="mailto:sylvain.meunier@gmail.com" target="_blank">sylvain.meunier@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi and thanks !<br><br></div>I started digging in Cycles sources and found the blender_python.cpp module.<br></div><div><br></div><div>Is there more documentation about Blender data than :<br><a href="https://wiki.blender.org/index.php/Dev:2.5/Source/Architecture/DataAPI" target="_blank">https://wiki.blender.org/index<wbr>.php/Dev:2.5/Source/Architectu<wbr>re/DataAPI</a> ?<br></div><div><br></div>Best regards<span class="m_9027473275593063678HOEnZb"><font color="#888888"><br><br></font></span></div><span class="m_9027473275593063678HOEnZb"><font color="#888888">Sylvain<br></font></span></div><div class="m_9027473275593063678HOEnZb"><div class="m_9027473275593063678h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-06-17 18:13 GMT+02:00 Brecht Van Lommel <span dir="ltr"><<a href="mailto:brechtvanlommel@pandora.be" target="_blank">brechtvanlommel@pandora.be</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div>There's an example of a custom render engine in the documentation here.<div><a href="https://docs.blender.org/api/current/bpy.types.RenderEngine.html" target="_blank">https://docs.blender.org/api/c<wbr>urrent/bpy.types.RenderEngine.<wbr>html</a><br></div><div><br></div><div>In general for renderer integration most of the Python API is the same as other types of addons. There's also lots of renderer addons out there where you can look at the code for inspiration.</div><div><br></div><div>Regards,</div><div>Brecht.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_9027473275593063678m_7821841471622620423h5">On Fri, Jun 16, 2017 at 4:39 PM, Sylvain Meunier <span dir="ltr"><<a href="mailto:sylvain.meunier@gmail.com" target="_blank">sylvain.meunier@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_9027473275593063678m_7821841471622620423h5"><div dir="ltr"><div><div><div>Hello,<br><br></div>I really love how Cycles is integrated into Blender and I want to achieve something similar with my own toy engine (not a path tracer though).<br><br></div>I'm looking for entry points in Cycles sources and interesting links to documentations.<br><br></div><div>Best regards<span class="m_9027473275593063678m_7821841471622620423m_-2030820199388288989HOEnZb"><font color="#888888"><br><br></font></span></div><span class="m_9027473275593063678m_7821841471622620423m_-2030820199388288989HOEnZb"><font color="#888888"><div>Sylvain<br></div><div><div><div><br><br></div></div></div></font></span></div>
<br></div></div>______________________________<wbr>_________________<br>
Bf-cycles mailing list<br>
<a href="mailto:Bf-cycles@blender.org" target="_blank">Bf-cycles@blender.org</a><br>
<a href="https://lists.blender.org/mailman/listinfo/bf-cycles" rel="noreferrer" target="_blank">https://lists.blender.org/mail<wbr>man/listinfo/bf-cycles</a><br>
<br></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
Bf-cycles mailing list<br>
<a href="mailto:Bf-cycles@blender.org" target="_blank">Bf-cycles@blender.org</a><br>
<a href="https://lists.blender.org/mailman/listinfo/bf-cycles" rel="noreferrer" target="_blank">https://lists.blender.org/mail<wbr>man/listinfo/bf-cycles</a><br>
<br></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
Bf-cycles mailing list<br>
<a href="mailto:Bf-cycles@blender.org" target="_blank">Bf-cycles@blender.org</a><br>
<a href="https://lists.blender.org/mailman/listinfo/bf-cycles" rel="noreferrer" target="_blank">https://lists.blender.org/mail<wbr>man/listinfo/bf-cycles</a><br>
<br></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
Bf-cycles mailing list<br>
<a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a><br>
<a href="https://lists.blender.org/mailman/listinfo/bf-cycles" rel="noreferrer" target="_blank">https://lists.blender.org/<wbr>mailman/listinfo/bf-cycles</a><br>
<br></blockquote></div><br></div></div></div></div></div></div>