Add new comment

ACFTools+AC3D tutorial


My attempt to show how is it possible to make X-Plane models using AC3D editor and my ACFTools.
  1. Open AC3D Smiling
  2. Now you shall use Side (ZY) view to draw a shape of revolution object to be imported. You may wish to draw it as Polyline:

    Object shape

    Note that the shape polyline has exactly 9 vertices and it is closed.
  3. Put your shape a bit off-center. You will be revolving it around Y axis, so just create small gap between shape edge and Y axis:

    First gap

    Later you will see the meaning of this gap Smiling
  4. Select your shape as group, and do "Object -> Revolve...". Enter with 180 degrees, Y axis and 11 segments:

    Revolve dialog

    Wow, look, you got half of your object:

    One half

    By default it has flat surface but you may wish to set a smooth one like I did.
  5. Go to Side (XY) view. Select your object and "Edit -> Duplicate" it. Then flip it on X axis. Now align both halves so they again have a very small gap between them. DO NOT SNAP THEM TOGETHER!. Then do "Object -> Merge". You should get this:

    Both halves

    Note "move to" coordinates. X is 0.53 instead of 0.5! That 0.03 difference on both sides of Y axis makes that desired gap.
    You may be wondering why to have yet another gap here? Well, 18 vertices in each section are supposed to be sorted automatically in counter-clockwise order. If you have overlapping vertices like in this case, algorithm treats vertices with same coordinates as being one vertex and thus messes everything. Sorry.

    VERY IMPORTANT: switch to vertex selection mode. You should see exactly 216 vertices. If you do not have 216 vertices you're terrible wrong, start over!!!
  6. At this moment you are ready for the most boring part. Split AC3D-generated object to sections that X-Plane would accept. Now a bit of theory. X-Plane treats all aircraft models as 3D objects with 12 sections with 18 vertices each one. If you try to feed it with everything else, surface will be mismapped. Thus you NEED to cut your AC3D object into 12 sections with 18 vertices each one. And 12 * 18 = 216, got it? Smiling. OK, to start section splitting you need to remove all surfaces. Sorry again Smiling "Surface -> Remove surface only". Now hurry up, "File -> Save" as original.ac.
  7. Let the pain begin. >%E~
    Go to Plan (XZ) view. Select 18 vertices:

    Section #1

    1. Copy these vertices to clipboard. Delete them.
    2. "File -> Save" original.ac
    3. "File -> New..." and paste 18 vertices from clipboard.
    4. Save as section01.ac

    Now reopen original.ac. Select next 18 vertices:

    Section #2

    Do the same steps as for first section, but now save it as section02.ac. Unless you are screaming in anger extract all the 12 sections in this way. Calm down, it's not that boring when you start to do it Smiling
  8. Understood the meaning of the first gap? If you added none, when you try to select 18 vertices you select 48 each time you reach center, as you select some central vertices from other sections.
  9. Supposing you were patient enough, at this moment your original.ac is empty and you have sections 1 to 12 in separate .ac files. Now merge them back. No, I'm not kidding. Merging all sections in sequence from 1 to 12 puts them in the order that X-Plane accepts. OK, I think that there is no need to explain how to "File -> Merge.." 12 section files in one. The result will look the same as original.ac (rest in peace) but internal order would be the right one. You should now "Object -> Merge" & Group 216 vertices (assure that you still have 216!). Call your group "body[45]", it will import to X-Plane as "misc. body 1":

    Final result

    Rescale this object to any size you want (in feets) and save all the stuff as importable.ac.
  10. OK, now go and merge importable.ac in any model of yours using ACFTools:
    acftools -e -acf C:\X-Plane\Aircraft\UPHO.acf -txt UPHO.txt
    (prepare UPHO.txt to work with) acftools -me -ac3d importable.ac -txt UPHO.txt (merge! don't worry about warnings)
    Fine! Next step is to edit UPHO.txt in your favorite text editor (I use Write) to mark that "misc. body 1" was added:
    1. Seek for PARTS_WingBodyGear_part_eq[45] and make it "= 1"
    2. Seek for PARTS_WingBodyGear_body_r[45] and set it to desired radius of your body (or Plane-Maker will mess the things up)
    3. Seek for PARTS_WingBodyGear_body[45][0][0]. This was your section01.ac. Remember the second gap? Remove it setting all the X values for 1st section to 0. Remember that each section has 18 vertices, so, don't harm neighbor ones!
    4. Seek for PARTS_WingBodyGear_body[45][11][0]. This was your section12.ac. Make the same as for section 1 Smiling
  11. acftools -g -txt UPHO.txt -acf test.acf
    (generate test.acf from edited .txt file)
    Finally open test.acf in Plane-Maker and see what the heck you just did =D
    It may be a bit broken, just fix it in Plane-Maker as normal body.

stas » May 10, 2006 » 01:22

Reply

*
*
The content of this field is kept private and will not be shown publicly.


*

  • Allowed HTML tags: <a> <i> <b> <u> <img> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre>
  • Lines and paragraphs break automatically.
  • Textual smileys will be replaced with graphical ones.