<div dir="ltr">Hi Sybren<div><br></div><div>I had no idea about BGE but after your last email I did some research and it looks pretty amazing. The platform support seems a bit lacking though but that gave me an idea.</div><div><br></div><div>There&#39;s SDL which supports a wide range of platforms, mobile and desktop alike. Could I say create a scene, export that blend file and use SDL to control it? I would prefer to avoid rebuilding the wheel and if loading those .blend files and controlling them through SDL proves something that&#39;s performant enough then I would prefer to take that route.</div><div><br></div><div>P.S.</div><div>I don&#39;t use unity I would like to stick it out with open source software and tools. I don&#39;t mind putting in the development time to get this working.</div><div><br></div><div>Where is the blender player? I&#39;ll take a look around and see if I can get it to work.</div><div><br>Best,</div><div>Owen</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 13, 2015 at 6:52 PM, Sybren A. Stüvel <span dir="ltr">&lt;<a href="mailto:sybren@stuvel.eu" target="_blank">sybren@stuvel.eu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Owen,<br>
<span class=""><br>
On Sat, Jun 13, 2015 at 06:35:57PM +0800, Owen Alanzo Hogarth wrote:<br>
&gt; Blender has the timeline feature where you can animate an object and<br>
&gt; play it back using the timeline. In the game engine I wouldn&#39;t need<br>
&gt; to be able to edit the bones and their attributes but I would like<br>
&gt; to be able to get their position rotations, angle, scale etc.<br>
&gt;<br>
&gt; Let&#39;s say that I author a 2 second animation in blender where I<br>
&gt; translate, rotate and scale a cube. Blender stores all this data<br>
&gt; somewhere so that when I press the play button it can recreate the<br>
&gt; animation in blender engine.<br>
&gt;<br>
&gt; What if I could export that data as say json for example, then load<br>
&gt; that data into a game engine and play the animation in engine.<br>
<br>
</span>That&#39;s a long way around. You can create Actions in Blender. Drag the<br>
Blend file into Unity, or start the Blender Game Engine, and those<br>
actions are directly available. There is no need to save to JSON,<br>
depending on which game engine you want to use. For some engines that<br>
don&#39;t directly load Blend files, there are exporter addons specific to<br>
that engine, or to file formats that are widely supported.<br>
<br>
Of course, if you want to export to JSON just for the experience of<br>
accessing data from Blender and writing it to a file, that&#39;s a whole<br>
different story. In that case, check out the<br>
bpy.types.Object.animation_data property [1], and what you can find<br>
from there.<br>
<br>
<br>
[1] <a href="http://www.blender.org/api/blender_python_api_2_74_release/bpy.types.Object.html#bpy.types.Object.animation_data" rel="noreferrer" target="_blank">http://www.blender.org/api/blender_python_api_2_74_release/bpy.types.Object.html#bpy.types.Object.animation_data</a><br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Sybren A. Stüvel<br>
<br>
<a href="http://stuvelfoto.nl/" rel="noreferrer" target="_blank">http://stuvelfoto.nl/</a><br>
<a href="http://stuvel.eu/" rel="noreferrer" target="_blank">http://stuvel.eu/</a><br>
</div></div><br>_______________________________________________<br>
Bf-gamedev mailing list<br>
<a href="mailto:Bf-gamedev@blender.org">Bf-gamedev@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-gamedev" rel="noreferrer" target="_blank">http://lists.blender.org/mailman/listinfo/bf-gamedev</a><br>
<br></blockquote></div><br></div>