<div dir="ltr"><div><div><div>Thanks very much Toni. I got in touch with one of the OpenCollada devs. He also advised me to stick with my C# code.<br><br></div>I continued on with C# but, while testing today, the results were less than encouraging. It's painfully slow to load meshes with more than a few thousand polygons. I haven't gotten to the bottom of it yet, but I think it's down to the very nature of collada data. The data is stored in a raw form and one has to calculate just about everything manually. From normals to share vertices, etc. These calculations seem to scale exponentially with model complexity.<br><br></div>Some months back, I invented my own xml-based 3d format where everything is pre-calculated before being written to file. I've been using that to save/load 3d scenes within the app. It looks more and more likely that I'll have to write a blender exporter for that format rather than using collada. Fingers crossed, that should fix the long waits when loading models.<br><br></div>Thank you very much.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jul 24, 2016 at 6:03 PM, Toni Alatalo <span dir="ltr"><<a href="mailto:toni@playsign.net" target="_blank">toni@playsign.net</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">OpenCollada is a C++ library that Blender indeed uses.<div><br></div><div>I don't think there is any secret documentation, just what they have in github to describe the parts of their code repository <a href="https://github.com/KhronosGroup/OpenCOLLADA/#directories" target="_blank">https://github.com/KhronosGroup/OpenCOLLADA/#directories</a> . Then you can read the C++ sources to see what's there, for example this tells how you can get mesh information: <a href="https://github.com/KhronosGroup/OpenCOLLADA/blob/master/COLLADAFramework/src/COLLADAFWMesh.cpp" target="_blank">https://github.com/KhronosGroup/OpenCOLLADA/blob/master/COLLADAFramework/src/COLLADAFWMesh.cpp</a></div><div><br></div><div>It is possible to use C++ libraries in C# code but can be simpler for you to just add what you need in your code. Both because using C++ in C# adds complexity and indeed because OpenCOLLADA is not so documented and reportedly (have no experience myself) painful to work with.</div><div><br></div><div>Khronos is now active with glTF which has been adopted by some companies and projects. It is JSON + binary data instead of XML. Work there is active on many fronts so if you want a bandwagon to jump on it can be a good choice, depending what you need (glTF is to have small files to transfer, unlike COLLADA which was made for interop between apps using bigger files). They are marketing it here at SIGGRAPH now, gave t-shirts yesterday and sponsor a lunch to talk about it here at the web3d event where am now :)<br><a href="https://github.com/KhronosGroup/glTF" target="_blank">https://github.com/KhronosGroup/glTF</a></div><div><br></div><div>But again if you already have things working with your own .net XML code it can be simplest to just add what you need there, depends on the specifics.</div><div><br></div><div>~Toni</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Sun, Jul 17, 2016 at 10:58 PM, Khalifa Lame <span dir="ltr"><<a href="mailto:khalibloo@gmail.com" target="_blank">khalibloo@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="h5"><div dir="ltr"><div><div>Hello. I've been working with collada files on a personal project for a while now. I wrote an importer using an xml parser. Now everything works fine, but I'm considering upgrading to OpenCollada SDK in order to take advantage of some advanced features that would take ages to develop on my own.<br><br>Honestly, I'm not even sure what OpenCollada is... let alone how to use it.<br>I can't find any documentation on it and the data around it is confusing.<br><br>Does someone have any documentation or examples on how to use the SDK? My project is written in C#, would that be a problem?<br></div></div><div>I understand blender uses OpenCollada. Did the devs have access to some secret documentation or something? :D<br></div><div><br></div>I've never done something like this before so please assume I'm a total noob.<span><font color="#888888"><br clear="all"><div><div><div><div><br>-- <br><div data-smartmail="gmail_signature">khalibloo®<br><br></div>
</div></div></div></div></font></span></div>
<br></div></div>_______________________________________________<br>
Bf-python mailing list<br>
<a href="mailto:Bf-python@blender.org" target="_blank">Bf-python@blender.org</a><br>
<a href="https://lists.blender.org/mailman/listinfo/bf-python" rel="noreferrer" target="_blank">https://lists.blender.org/mailman/listinfo/bf-python</a><br>
<br></blockquote></div><br></div></div>
<br>_______________________________________________<br>
Bf-python mailing list<br>
<a href="mailto:Bf-python@blender.org">Bf-python@blender.org</a><br>
<a href="https://lists.blender.org/mailman/listinfo/bf-python" rel="noreferrer" target="_blank">https://lists.blender.org/mailman/listinfo/bf-python</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">khalibloo®<br><br></div>
</div>