FSX Attach Tool for 3D Canvas

Another small step closer to full FSX support in 3D canvas. I now have a working attachment point editor.
I modelled it on the Microsoft version for gMax and 3DS, just so it looks similar to the screens in the SDK.

It has 2 modes of operation, selecting a face on an object will add a new attachment group and object on or above the face. Selecting an object will convert the group containing the object into an attachment.

All it does internally is create an XML string into a Group Custom field. This is then exported as PartData in the X file on export.

fsxatt1

Adds the following XML to the new group containing the small purple pyramid in the image below.

<?xml version="1.0" encoding="ISO-8859-1" ?> <FSMakeMdlData version="9.0"> <Attachpoint name="attachpt_smoke"><AttachedObject> <Effect effectName="fx_SmokeStack2.fx" effectParams=""/> </AttachedObject></Attachpoint></FSMakeMdlData>

fsxatt2

It still requires a little more work on validation but it works for now. This just leaves export of bone parameters in to the X file as the last major job – then it’s on to some proper testing.

Advertisements
Post a comment or leave a trackback: Trackback URL.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: