Search the archive:
YaBB - Yet another Bulletin Board
 
   
 
Page Index Toggle Pages: 1
Send Topic Print
FSDS and Attachpoint stuff (Read 1817 times)
Oct 18th, 2007 at 8:53pm

Felix/FFDS   Offline
Admin
FINALLY an official Granddad!
Orlando, FL

Gender: male
Posts: 1000000627
*****
 
Until FSDS 3.5.1 it was practically impossible to create true hard surfaces and attach lights to animated parts, etc.

This is my Stits Playboy (yes, that old FS2000 model reprocessed for FS-X)_ sporting an attached landing light  on the right spat (and it moves with the landing gear compression!)

...

Here's the Air Creation ultra-light on my squished 6-sided die.  It now sports a concrete hard surface onto which I rolled the AC.

...


All made with FSDS 3.5.1 and tagging things correctly.


As to the how:



It is my solemn duty
to obfuscate and
confuse.

Posts: 3442
  Re: Landing lights
Reply #4 - Yesterday at 7:59pm  Quote  Modify  Split  Remove  With the help and guidance of both Louis and Fr. Bill,.... 

create a small (or large, it shouldn't matter since the "attach point" generates no geometry) point for the effect to attach to. 

In this case, I placed a small triangle just ahead of the part, and tagged "attachpt_landing_1" (note that per the FS-X SDK this NEEDS a unique name so that if you want a second landing light, you can name it "attachpt_landing_2" and add another blurb) 

Then the following attachpoint xml blurb is added to a PartDataDefs.txt file in your main FSDS 3.5 folder: 

attachpt_landing_1 <?xml version="1.0" encoding="ISO-8859-1" ?> <FSMakeMdlData version="9.0"> <Attachpoint name="attachpt_landing_1"> <AttachedObject> <Effect effectName="fx_landing" effectParams=""/> </AttachedObject> </Attachpoint> <Visibility name="general_light"> </Visibility> </FSMakeMdlData> 


THERE MUST BE AT LEAST ONE ANIMATION IN YOUR MODEL. My first attempt, on a basic cylnder and attached light were not working. Note that the visibility condition is "general light" which is a part in the modeldef.xml file, therefore, if there is no animation, an *.xanim file is not there for xtomdl.exe to parse through the modeldef.xml file and you get a "fixed" light that doesn't respond to the "L" and "CTRL-L" keyboard commands. 

To get the light "spread" I went whole hog and assigned the attachpt_landing_1 part a material that had all channels (sorry for the gmaxspeak) 255 and a specular of 40. With just the default material, you get a tiny point light. 

I "aimed"  the light with the Y axis. I rotated the part in x so as to point the Y axis opposite - to the rear of the plane - 


IF you want a second landing light, it appears that you have to create a new attachpoint tag (attachpt_landing_2) and add a modified blurb to the PartDataDefs.txt file. 

You would also have to add to the modeldef.xml file the appropriate visibility condition if it isn't already there, such as a taxi light 

(The following is courtesy of Fr. Bill: 

Add to the PartDataDefs.txt file: 
attachpt_taxi_1 <?xml version="1.0" encoding="ISO-8859-1" ?> <FSMakeMdlData version="9.0"> <Attachpoint name="attachpt_taxi_1"> <AttachedObject> <Effect effectName="fx_landing" effectParams=""/> </AttachedObject> </Attachpoint> <Visibility name="taxi_light"> </Visibility> </FSMakeMdlData> 

To the modeldef.xml file: 

<Animation name="taxi_light" guid="43347384-cff6-479c-a654-9b9cd33e4f09" length="100" type="Sim" typeParam2="taxi_light" typeParam="AutoPlay" /> 

<PartInfo> 
<Name>taxi_light</Name> 
<AnimLength>100</AnimLength> 
<Visibility> 
<Parameter> 
<Sim> 
<Variable>LIGHT TAXI</Variable> 
<Units>bool</Units> 
</Sim> 
</Parameter> 
</Visibility> 
</PartInfo> 
--------------------------------------- 

OF course I repeat my thanks to Louis and Fr. Bill, you don't think I can make all of this up myself, eh?

---------------------------------------

the PartDataDefs.txt file is a straight text file placed in the main FSDS35 folder and will hold the attach point XML blurbs that FSDS will parse into the x file, and then process with xtomdl. 

You should be able to add a scenery type xml blurb (Create the platform polygon, add the blurb to tell it its concrete or whatever) and have a hard surface. etc.  I haven't tried the scenery aspect of it yet. 
All thanks to Fr. Bill and Louis Sinclair who clarified the how to....
 

Felix/FFDS...
IP Logged
 
Reply #1 - Oct 18th, 2007 at 9:04pm

Felix/FFDS   Offline
Admin
FINALLY an official Granddad!
Orlando, FL

Gender: male
Posts: 1000000627
*****
 
... and since I was running out of characters,

the concrete "pad" is actually the three top polygons of the overall object, properly tagged.

I cloned the object, deleted all but the three "top" polygons (which form the hard surface)

I renamed the part:   "platform_CONCRETE_0"

and added the following to the PartDataDefs.txt file:

platform_CONCRETE_0      <?xml version="1.0" encoding="ISO-8859-1" ?> <FSMakeMdlData version="9.0"> <Platform name="platform_CONCRETE_0" surfaceType="CONCRETE" > </Platform> </FSMakeMdlData>


I compiled to bgl directly and fired up FS-X.


NOW...  Each separate attach point in your model HAS TO HAVE a separate and unique attachpt_xxxxx name.  So your next CONCRETE platform could be:

platform_CONCRETE_1      <?xml version="1.0" encoding="ISO-8859-1" ?> <FSMakeMdlData version="9.0"> <Platform name="platform_CONCRETE_1" surfaceType="CONCRETE" > </Platform> </FSMakeMdlData>

Now, as you start creating your "library" of attachpoint names, you can add them to your PartNames.txt file:

[FSX Attachpoint Tags]
platform_CONCRETE_0
platform_CONCRETE_1
attachpt_landing_1
attachpt_taxi_1


etc.,   and that way, they will be there for your next project.

 

Felix/FFDS...
IP Logged
 
Reply #2 - Oct 19th, 2007 at 5:18am
The Revelator   Ex Member

 
I haven't read all, but it's good this is one more realistic thing we can make again... Wink

rev
 
IP Logged
 
Reply #3 - Dec 24th, 2007 at 4:12am

gary20   Offline
Major
I love YaBB 1G - SP1!

Posts: 4
*****
 
Quote:
... and since I was running out of characters,

the concrete "pad" is actually the three top polygons of the overall object, properly tagged.

I cloned the object, deleted all but the three "top" polygons (which form the hard surface)

I renamed the part:   "platform_CONCRETE_0"

and added the following to the PartDataDefs.txt file:

platform_CONCRETE_0      <?xml version="1.0" encoding="ISO-8859-1" ?> <FSMakeMdlData version="9.0"> <Platform name="platform_CONCRETE_0" surfaceType="CONCRETE" > </Platform> </FSMakeMdlData>


I compiled to bgl directly and fired up FS-X.


NOW...  Each separate attach point in your model HAS TO HAVE a separate and unique attachpt_xxxxx name.  So your next CONCRETE platform could be:

platform_CONCRETE_1      <?xml version="1.0" encoding="ISO-8859-1" ?> <FSMakeMdlData version="9.0"> <Platform name="platform_CONCRETE_1" surfaceType="CONCRETE" > </Platform> </FSMakeMdlData>

Now, as you start creating your "library" of attachpoint names, you can add them to your PartNames.txt file:

[FSX Attachpoint Tags]
platform_CONCRETE_0
platform_CONCRETE_1
attachpt_landing_1
attachpt_taxi_1


etc.,   and that way, they will be there for your next project.



Hi Felix

Is there any way you can be more specific about how to make this "hard surface" work in FSDS.
I've tried following your instructions, but am obviously missing a step or something.

Thanks in advance

Gary20
 
IP Logged
 
Reply #4 - Dec 26th, 2007 at 10:51am

Felix/FFDS   Offline
Admin
FINALLY an official Granddad!
Orlando, FL

Gender: male
Posts: 1000000627
*****
 
Let me see if I can re-word it for a cleaner - step-by-step.

I've been out of the loop for a few days  (no hangover, but probably five pounds heavier!) and have to try to get some quiet time

 

Felix/FFDS...
IP Logged
 
Reply #5 - Dec 26th, 2007 at 11:45am

gary20   Offline
Major
I love YaBB 1G - SP1!

Posts: 4
*****
 
Felix/FFDS wrote on Dec 26th, 2007 at 10:51am:
Let me see if I can re-word it for a cleaner - step-by-step.

I've been out of the loop for a few days  (no hangover, but probably five pounds heavier!) and have to try to get some quiet time



Thanks Felix

Appreciate the help.

Gary
 
IP Logged
 
Reply #6 - Dec 29th, 2007 at 12:46am

gary20   Offline
Major
I love YaBB 1G - SP1!

Posts: 4
*****
 
gary20 wrote on Dec 26th, 2007 at 11:45am:
Felix/FFDS wrote on Dec 26th, 2007 at 10:51am:
Let me see if I can re-word it for a cleaner - step-by-step.

I've been out of the loop for a few days  (no hangover, but probably five pounds heavier!) and have to try to get some quiet time



Thanks Felix

Appreciate the help.

Gary


Hi Felix

While waiting for your step by step, do you think it would br possible if you could email me your PartDataDefs.txt file.
I just want to eliminate that as the source of my problem.

Thanks again Felix

Best wishes

Gary
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print