<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;color:#444444">Hello,</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:#444444"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:#444444">I applaud Nathan for his efforts so far and ask the community to <u>support this guy</u> in his requests... The easier it is to implement cycles as a render engine in standalone apps, the better...</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:#444444"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(68,68,68)">​I came across his project, trying to implement a node system for a complex math equation for holographic visualisations, which i never finished due to lack of finance and support... </div><div class="gmail_default" style="font-family:verdana,sans-serif;color:#444444"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:#444444">Nevertheless, I still think there is a huge market in converting 90&#39;s single core matlab programs for math visualisations to standalone software using the best of the graphics card and a node system export which can be understood by any artist, without too much study. </div><div class="gmail_default" style="font-family:verdana,sans-serif;color:#444444"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:#444444">Sincerely,</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:#444444"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:#444444">JK</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 17 March 2016 at 09:46, Nathan Letwory <span dir="ltr">&lt;<a href="mailto:nathan@mcneel.com" target="_blank">nathan@mcneel.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have been improving the XML API somewhat in my CCSycles project. I&#39;ve<br>
added in my own XML parsing implementation a way to essentially do mesh<br>
instancing.<br>
<br>
In Cycles stand-alone XML implementation the &lt;mesh&gt; tag also results in<br>
the creation of an object, but it&#39;d be better if mesh and object<br>
creation were separated.<br>
<br>
I propose that the &lt;mesh&gt; tag only creates meshes, and that we introduce<br>
the &lt;object&gt; tag that can reference then &lt;mesh&gt;es.<br>
<br>
For this to work I propose &lt;mesh&gt; gets a new attribute &#39;name&#39;. The<br>
&lt;object&gt; tag takes a &#39;mesh&#39; attribute that should have a value that was<br>
introduced by a &lt;mesh&gt; with a &#39;name&#39;.<br>
<br>
Example:<br>
<br>
&lt;shader name=&quot;plane&quot;&gt;<br>
        &lt;diffuse_bsdf name=&quot;cube_closure&quot; roughness=&quot;0.0&quot; color=&quot;0.8 0.8 0.8&quot; /&gt;<br>
        &lt;connect from=&quot;cube_closure bsdf&quot; to=&quot;output surface&quot; /&gt;<br>
&lt;/shader<br>
<br>
&lt;state interpolation=&quot;smooth&quot; shader=&quot;plane&quot;&gt;<br>
        &lt;mesh name=&quot;groundplane&quot; P=&quot;1.0 1.0 0.0 -1.0 1.0 0.0 -1.0 -1.0 0.0 1.0<br>
-1.0 0.0&quot; nverts=&quot;4&quot; verts=&quot;0 1 2 3&quot; /&gt;<br>
&lt;/state&gt;<br>
<br>
&lt;transform translate=&quot;0 0 0&quot; scale=&quot;1000 1000 0&quot;&gt;<br>
        &lt;object mesh=&quot;groundplane&quot; /&gt;<br>
&lt;/transform&gt;<br>
<br>
End example.<br>
<br>
For a larger example see<br>
<a href="https://github.com/jesterKing/CCSycles/blob/master/tests/scene_many_cubes.xml" rel="noreferrer" target="_blank">https://github.com/jesterKing/CCSycles/blob/master/tests/scene_many_cubes.xml</a><br>
<br>
Now, I know that some want to move away from XML, but at this point I&#39;d<br>
prefer the Cycles file format stay in XML, since there is already a<br>
wealth of tools out there that help with authoring XML, it is easy to<br>
parse and transport.<br>
<br>
That said, I&#39;m not much interested in writing the C code to do this<br>
myself - my parser is in C# and will stay like that. But perhaps this<br>
could be part of someones GSoC efforts.<br>
<br>
Cheers,<br>
<br>
/Nathan<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Nathan Letwory<br>
<br>
Integrating Cycles into Rhino 3D<br>
<br>
<a href="https://github.com/jesterKing/CCSycles" rel="noreferrer" target="_blank">https://github.com/jesterKing/CCSycles</a><br>
<a href="https://github.com/mcneel/RhinoCycles" rel="noreferrer" target="_blank">https://github.com/mcneel/RhinoCycles</a><br>
<br>
</font></span><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>
<br></blockquote></div><br></div>