Board index FlightGear Development

W.I.P. Blender to flightgear

FlightGear is opensource, so you can be the developer. In the need for help on anything? We are here to help you.
Forum rules
Core development is discussed on the official FlightGear-Devel development mailing list.

Bugs can be reported in the bug tracker.

Re: W.I.P. Blender to flightgear

Postby speedflighery » Thu Nov 14, 2013 9:08 am

I now can save the xml file but the script only writes the coment section into it

Part of this file was generating by a blender script

Script fg2blender v0.1 alpha (c)paf

Posts: 14
Joined: Thu Oct 31, 2013 9:17 am
Version: 2.12
OS: linux

Re: W.I.P. Blender to flightgear

Postby run » Thu Nov 14, 2013 1:13 pm

Blender is a powerfull software for creating animation. You can create multiple bone in one armature. Each bone can move, scalling, rotate, drive another bone, and after drive a mesh. In blender, for a rotate animation, blender can use vector and angle or vector and quaternion. For flightgear, we don't need this. Animation in flightgear are more simple.
It 's very important to use in blender the "f key". This shortcut open a menu "FLightgear tools menu". This menu create armature with correct parameter for the script.

The script concept is, one bone for each armature. Very important, insert keyframe in "pose mode", when the armature is select. If you insert keyframe in Object mode, the coordinate of armature change and the result is a wrong value in the xml file.

If you need a complex animation for flightgear, use different armature, and link the armatures with "parent" association. The script use a recursive algorithm for computing the correct value in the xml file for each armature, and the correct sorting.

When you insert keyframe, move the timeline in the correct position. And after the script compute the interpolation.

Don't forget it's a work in progress. Now the script, export the ac file with a timeline dependance. And the result are wrong, when you export the mesh in ac3d format with armature" not in zero position". This is the next step for the script, and many tool function are write. For having a ac3d exporter with the timeline independance.
Actualy , I work to convert a x-plane plane for flightgear, with author authorization. And the script change.
Posts: 17
Joined: Fri Jul 06, 2012 2:03 pm

Re: W.I.P. Blender to flightgear

Postby speedflighery » Fri Nov 15, 2013 8:47 pm

It worked thank you very much. And just a tip if you are going to make more video tutorials you can use the screenecast addon. It helps following the tutorial
Posts: 14
Joined: Thu Oct 31, 2013 9:17 am
Version: 2.12
OS: linux

Re: W.I.P. Blender to flightgear

Postby Nick R » Wed Jul 02, 2014 8:41 pm

This looks really great. I was a little worried about how I would get animation working for my project but with this it should be fairly simple since I'm quite familier with blender.
Modelling the Pipistrel Virus SW (github, website)
Nick R
Posts: 173
Joined: Tue Nov 26, 2013 3:50 pm
Location: Stettler, AB, Canada
Callsign: NickR
Version: 2017.2.1
OS: Linux


Return to Development

Who is online

Users browsing this forum: No registered users and 1 guest