ACFTools+AC3D tutorial
My attempt to show how is it possible to make X-Plane models using AC3D editor and my ACFTools.
- Open AC3D

-
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:

Note that the shape polyline has exactly 9 vertices and it is closed. -
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:

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

Wow, look, you got half of your object:

By default it has flat surface but you may wish to set a smooth one like I did. -
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:

Note "move to" coordinates. X is0.53instead of0.5! That0.03difference 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!!! -
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?. OK, to start section splitting you need to remove all surfaces. Sorry again
"Surface -> Remove surface only". Now hurry up, "File -> Save" as
original.ac. -
Let the pain begin.
>%E~
Go to Plan (XZ) view. Select 18 vertices:

- Copy these vertices to clipboard. Delete them.
- "File -> Save"
original.ac - "File -> New..." and paste 18 vertices from clipboard.
- Save as
section01.ac
Now reopenoriginal.ac. Select next 18 vertices:

Do the same steps as for first section, but now save it assection02.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
- 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.
-
Supposing you were patient enough, at this moment your
original.acis empty and you have sections 1 to 12 in separate.acfiles. 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 asoriginal.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":

Rescale this object to any size you want (in feets) and save all the stuff asimportable.ac. -
OK, now go and merge
importable.acin any model of yours using ACFTools:
Fine! Next step is to edit UPHO.txt in your favorite text editor (I use Write) to mark that "misc. body 1" was added: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)-
Seek for
PARTS_WingBodyGear_part_eq[45]and make it"= 1" -
Seek for
PARTS_WingBodyGear_body_r[45]and set it to desired radius of your body (or Plane-Maker will mess the things up) -
Seek for
PARTS_WingBodyGear_body[45][0][0]. This was yoursection01.ac. Remember the second gap? Remove it setting all the X values for 1st section to0. Remember that each section has 18 vertices, so, don't harm neighbor ones! -
Seek for
PARTS_WingBodyGear_body[45][11][0]. This was yoursection12.ac. Make the same as for section 1
-
Seek for
-
Finally open
acftools -g -txt UPHO.txt -acf test.acf
(generate test.acf from edited .txt file)test.acfin 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
1930 reads
