Correcting contact points (again) with AvHistory light effects.
Page 1 of 2 12 LastLast
Results 1 to 25 of 26

Thread: Correcting contact points (again) with AvHistory light effects.

  1. #1

    Correcting contact points (again) with AvHistory light effects.

    I’ve been trying to work out a way of making contact points easier to correct on published models. This post really belongs in the Aircraft Design and Animation forum, but there are good visual tools already for ordinary Flight Simulator versions, whereas CFS3 has none, nada, zip, zilch, zero.



    The modellers will know what I mean – or they should! – but from time to time the keen downloader will come across an aircraft that doesn’t sit on the runway properly, bounces around a lot on first appearance or in extremis explodes on the runway without a shot being fired. The same model will still fly quite happily so long as you start in the air. :isadizzy:

    There’s a very good article on contact points here at SOH:- http://www.sim-outhouse.com/index.php?loc=articles&page=cp which explains particularly how the landing gear contact points work and how to use lights to spot problems and fine-tune the settings. Jerry Beckwith’s AirWrench goes one better by making it easy to set these up by just ticking a check box for each contact point. This makes it a doddle to correct an aircraft model that doesn’t sit correctly on the ground.

    If only this worked in CFS3!!!! 'Cos it doesn’t, there is no [Lights] section in aircraft.cfg for CFS3.
    Last edited by hairyspin; February 12th, 2019 at 10:10.
    Tom
    __________________________________________________ ___________________________________________
    Wisdom is the principal thing; therefore get wisdom: and with all thy getting get understanding. Proverbs 4:7



  2. #2

    Enter the Effects Team

    Some time ago, AvHistory included lights with their excellent effects and started releasing aircraft with the long-absent landing and aircraft lights which came on within a defined speed range. You can see where this is going, can’t you…




    The obvious thing is to add AvH lights corresponding to the contact points to the [Effects] section of the .XDP file, fine-tune the light positions and then correct the landing gear contact points accordingly.


    There are a couple of problems in doing this:-

    • Contact points are sized in feet, effects are sized in metres!
    • Sizes for contact points are in a different order to that used for effects!

    There’s another more subtle problem which may crop up, but more of that later.
    You’ll need a couple of tools to make this easier, so here is an unashamed plug for XMLWrench and AirWrench, both dashed good utilities!

    XMLWrench is free:- www.xmlwrench.com and is a fine XML editor (you can use Notepad, but it won’t check xml syntax for you and you’ll likely screw up the .xdp file before long without that)

    AirWrench costs $25 but can be used for free in evaluation mode which allows you to edit contact points:- www.mudpond.org/AirWrench_main.htm Cheers, Jerry! UPDATE AirWrench is now version 2 and available from Flight1 Software www.flight1.com

    You’ll also need to install the AvHistory effects for CFS3 and you'll find them in the SOH Library.
    Last edited by hairyspin; February 12th, 2019 at 13:12.
    Tom
    __________________________________________________ ___________________________________________
    Wisdom is the principal thing; therefore get wisdom: and with all thy getting get understanding. Proverbs 4:7



  3. #3

    Aircraft.cfg and "Model Name".xdp

    In the aircraft folder for each model is the file Aircraft.cfg which will open in Notepad without problems. Scroll down to the section marked [contact points] and you’ll see something like this:-




    Nicely commented, the bits that matter are point.0=…, point.1=… etc followed by long lines of numbers. This is for a stock aircraft and your eyes are probably glazing already.

    Fire up AirWrench, point it at the .air file for the model you want to work on and make sure you select Metric units:-





    Now go to the Contacts tab and there is the same eye-glazing data, but in a more readable table:-




    Class 1 points are for the undercarriage, Class 2 are scrape points.
    For the undercarriage, the first three lines are what we want and the Lon, Lat and Vert values. If the table says the sizes are in feet, go back to the Specs tab and set the units to Metric.




    Now open the model’s .XDP file with XMLWrench and scroll to the end to find the [Effects] section:-




    We want to add lines like:-

    <Effect Type="Track" EffectName="fx_ac_Light_nav_red" PosX="0" PosY="-0.651" PosZ="-8" MinVel="0" MaxVel="244"></Effect>

    which will add a red light to the relevant contact point, but PosX, PosY and PosZ do not correspond to Lon, Lat and Vert respectively in AirWrench.
    Rearrange them in this order -PosZ, PosX, PosY - and all will be well! You’ll need a line like this for each contact point to be lit.




    Notice also the velocity range – the lights will show as soon as the aircraft starts moving and if you’re lucky they may show while it’s stationary.
    Now you can arrange XMLWrench and AirWrench on your desktop so both are clearly readable and start filling in the .XDP data in XMLWrench.

    If you haven’t already done so, make backup copies of Aircraft.cfg and the model’s .XDP file right now!
    Tom
    __________________________________________________ ___________________________________________
    Wisdom is the principal thing; therefore get wisdom: and with all thy getting get understanding. Proverbs 4:7



  4. #4





    You’ll see I’ve used a red nav light for the tail (point 0) and left (point 1) wheels and a green one for the right wheel (point 2). The additional white tail lights are to mark out other contact points. When you’re done, save the .XDP file and delete the model’s .BDP file.

    Now go fly the model in CFS3 Quick Combat with the undercarriage down:-




    Oh dear. The tailwheel’s contact point is too far forward – PosZ will have to be reduced. Also the main wheels’ points are too low – PosY will have to be increased.
    Some adjustments and deleting the .BDP later:-



    That looks pretty good. Check them head-on as well:-




    That will do nicely.




    A few points about this:-
    • You may have to pan your view around to see the lights clearly.
    • When adjusting these points and going back to the sim, they may not seem to change at all.
      1. Always make sure you’ve deleted the .BDP file
      2. Select several different aircraft in CFS3 before flying the one
      you’re working on. That way your changes don’t get lost in the
      computer’s virtual memory until you’ve done five or six adjustments!
    Once you’re happy with the position of the lights, you can copy the figures back to the Contact points in AirWrench so that
    Lon = PosZ Lat = PosX Vert = PosY for each contact point
    and click the Update Contact Points button.


    This is for a model with animated wheel suspension – like most models. Taxi the aircraft off the runway and you’ll soon see the wheels moving up and down independently of the aircraft.

    If the model you want to work on does not have the suspension animated, you’ll need to lower each wheel’s contact point by the amount of the Static Compression or the wheels will be half-sunk in the runway.
    In this example the tail wheel’s position (contact point 0) is:
    Lon -5.97 Lat 0.0 Vert -1.771 and the Static Comp is 0.061.

    Subtract the Static Comp from the Vert value and you get:
    Lon -5.97 Lat 0.0 Vert -1.771 - 0.061 = -1.832

    The same calculation would then be done subtracting 0.122 in this example from the Vert value of the main wheels (contact points 1 and 2).

    Now try the model out in CFS3 and see how well it sits on the ground and whether it rolls for takeoff correctly. If all’s well and good, you can restore the old .XDP file. Remember to delete the .BDP for the last time and you’re done!
    Tom
    __________________________________________________ ___________________________________________
    Wisdom is the principal thing; therefore get wisdom: and with all thy getting get understanding. Proverbs 4:7



  5. #5

    Differences in aircraft and flight model geometry

    There is a possible problem in this method. It’s entirely down to the modeller how to construct a model: there is good modelling practice and then there’s other ways. Here’s what happens in one of those other ways.
    This is the stock Spitfire IXe as supplied with CFS3. The contact points have been used to set up lights exactly as detailed above, but not one lines up correctly on the model. And yet the model sits correctly on the ground and rolls for takeoff in a proper manner!






    A closer look suggests the lights are all ‘off’ by the same amount, and they in fact are. Here’s the reason:-



    The modeller has built the aircraft with the model’s centre, the point 0,0,0, at the tip of the nose. All contact points are measured from this point. (Lon is either 0 or negative for all points in this case)
    The simulator meanwhile uses a point on the model’s centre line and 25% back from the leading edge of the model’s wing for all flight model calculations. All effect measurements are measured from that point! (PosZ may be positive, negative or zero)

    It only takes a moment to check Aircraft.cfg to verify this:-




    The model’s centre is 8.85 feet forward of the simulator’s centre, therefore all the light effects will be 8.85 feet behind the contact points.
    8.85 feet is 2.697 metres, so 2.697 has to be added to PosZ for each light effect (the .XDP is in metres, remember?).

    Presto!




    Once the lights are sitting correctly, we have to subtract 2.697 from PosZ for each point before re-entering the data in AirWrench.

    Don’t you just love it? :isadizzy:
    Tom
    __________________________________________________ ___________________________________________
    Wisdom is the principal thing; therefore get wisdom: and with all thy getting get understanding. Proverbs 4:7



  6. #6

    Static Pitch and Static Height

    These have come up recently, so here’s how to work them out. It’s just simple geometry and trigonometry but anyone can do it, honest!

    When a model first appears in the sim, it’s at a height from and angle to the ground set by these measurements. Then (simulated) gravity takes over and the model settles on its contact points. Get either of these too far off and a bouncing or exploding model is the result.

    The first thing to fix is Static Pitch – then you can set Static Height correctly.




    Static Pitch is just the angle the model’s centre line makes with the ground: aircraft like the P-38, B25, Do-335, Me262 have nose wheels and sit almost level on the ground and the Static Pitch is at or nearly zero, but all the taildraggers like the Spitfire IXe sit with their noses in the air (stuck-up lot!).


    You need:
    • PosZ and PosY values for the tailwheel and a main wheel – the first and second lines in our light effects respectively
    • The Windows Calculator set to scientific mode.



    For the mathematically literate, the Static Pitch is
    tan-1 ((tailwheel PosY – mainwheel PosY) / (mainwheel PosZ –tailwheel PosZ))


    For the rest of us, subtract the tailwheel’s PosY from the main wheel’s PosY
    -0.738 minus -2.012 equals 1.274

    then subtract the main wheel’s PosZ from the tailwheel’s PosZ
    0.259 minus -6.142 equals 6.401

    Now divide 1.274 by 6.401 in the Windows Calculator:-




    and making sure the calculator is working in Dec, with Degrees set and the Inv box ticked, click on tan and you’ll see the static pitch is 11.256 degrees.






    Now we can work out the Static Height:-




    The aircraft pivots around the Flight Simulator centre (not the modeller’s centre), so it doesn’t take a genius to realise that the Static Height for an aircraft that sits level will be different from one with the same length of main gear that sits back on its tail.

    The calculation is, (for mathematicians)
    Static Height = cos (Static Pitch) x (-main wheel PosY)


    And for the rest of us, get the value of PosY for a main wheel (second line of our effects) which is -2.012. Drop the minus sign.

    Enter the value we got for Static Pitch (11.256 degrees) in the Calculator, making sure again that Dec and Degrees are set, and click cos.




    Multiply the result by 2.012 and you get a Static Height of 1.973m. Maybe we should compare the actual values for the stock Spitfire IXe with these?

    -------------------Static Height ----Static Pitch
    Stock model figures 1.929m ............. 12 degrees
    Calculated figures .. 1.973m ........... 11.256 degrees

    4.4cm difference in height and less than a degree in pitch? We’ll call that a result!

    This method sets the Static Pitch and Static Height for the aircraft to appear with the wheels just touching the ground and then to sink on to its suspension. You may prefer it to sink a bit less or not at all: if so you’ll want to reduce the Static Height a little – it’s up to you. Enter the values in the relevant boxes in AirWrench (Contacts tab, bottom of the page) and click the Update Contact Points button.

    Job done.
    Tom
    __________________________________________________ ___________________________________________
    Wisdom is the principal thing; therefore get wisdom: and with all thy getting get understanding. Proverbs 4:7



  7. #7
    I vote for this one to become a sticky...

    :salute:
    US Army, Major, Ret.

    Service To The Line,
    On The Line,
    On Time

    US Army Ordnance Corps.

  8. #8
    SOH-CM-2021
    Join Date
    Sep 2005
    Location
    Dayton,ohio
    Age
    68
    Posts
    5,749
    Blog Entries
    1
    Second the Vote

    <<<S>>>

  9. #9
    Hairy Spin I might be misunderstating what it is your trying to explain with that process. It seems however that you are taking the long way around if leveling the aircraft properly is all your trying to do. Here is the simple way that I use and it requires only an adjustment to the aircraft.cfg file. In the aircraft.cfg file, the first 3 numerical strings of the contact
    points (lines 0, 1, 2,) contain the numbers that determine landing gear position on the ground. The nose/tail gear number is in line zero while the main gear is line one and line two (left and right). The number is always the 4th number in the string as you see highlighted in the number strings below.

    The number in line zero is obviously much lower than the numbers in line one and two when it is a tail dragger but will be the same or nearly the same if it has tricycle gear. Obviously because a plane with nose gear sits in more of a level attitude. If the nose/tail or main gear hover above the ground while the aircraft is parked or sink below the ground then these numbers need adjustment. Raise the numbers to raise the aircraft or lower these to lower the aircraft. While these numbers control where the wheels actually meet terrain, the static height controls the height that the wheels spawn at meaning the wheels can spawn high or low.

    In other words if the numbers in line 0, 1, and 2, are properly adjusted but the static height is too high, the plane will spawn above the ground and quickly drop to a level position. This is what causes what is referred to as ground hop. If those numbers are too far apart causing the plane to jump or fall to its level position then it will sometimes explode on start up. Obviously once you get the numbers in lines 0, 1, and 2 correct you must adjust static pitch and height so that the plane indicates no vertical shifting on start up.

    When I explain this someone always points out that aircraft contact point sequence is not necessarily configured in the order that I indicated. I can only say that in more than a few hundred times I have done this it has Never failed even once, so although it may technically be true you will probably never see it any differently than I have stated.

    point.0=1, -13.68, 0, -3.7, 2165.354, 0, 0.549, 12, 0.253, 2.5, 0.498, 4, 5, 0, 158, 179

    point.1=1, 2.02, -5.917, -7.4, 2165.354, 1, 0.549, 0, 0.633, 2.5, 0.8, 5.5, 6, 2, 158, 179

    point.2=1, 2.02, 5.917, -7.4, 2165.354, 2, 0.549, 0, 0.633, 2.5, 0.8, 6, 6.5, 3, 158, 179

    static_pitch= 13
    static_cg_height= 6.2

  10. #10
    Done that a few times too Lewis! Problem is if the points are off in Lon and Lat as well, like a freeware Spit I got which was a tippy crate on the ground - turned out the main points were too narrow and instead of the wheels being about 6 feet apart they were more like 4.5 feet!
    This way you can see what's wrong.

    See the SOH article link in the first post to get the other problem with the points being off

    Cheers!
    Tom
    __________________________________________________ ___________________________________________
    Wisdom is the principal thing; therefore get wisdom: and with all thy getting get understanding. Proverbs 4:7



  11. #11
    That would be a simple adjustment of another set of numbers in those same number strings. That would also be the only adjustment you would need to create visual reference for needing to use lights as you did above. I shall investigate and post when I figure that out which numbers those are!

  12. #12
    Got it!

    The numbers that determine the distance apart of the main landing gear is the third set of numbers in the string as you can see the tail gear is 0 because its centered and the left and right main are positive and negative numbers. So you just increase the numbers on strings 1, and 2, to widen the wheel base contact points and decrease to narrow the wheel base contact points. Unlike the height adjustments you can not see exactly where this contact point is so using the lights for just this one would be necessary. For the previously mentioned adjustments however it is a simple matter of raising and lowering a couple of those numbers.

    point.0=1, -13.68, 0, -3.7, 2165.354, 0, 0.549, 12, 0.253, 2.5, 0.498, 4, 5, 0, 158, 179

    point.1=1, 2.02, -5.917, -7.4, 2165.354, 1, 0.549, 0, 0.633, 2.5, 0.8, 5.5, 6, 2, 158, 179

    point.2=1, 2.02, 5.917, -7.4, 2165
    .354, 2, 0.549, 0, 0.633, 2.5, 0.8, 6, 6.5, 3, 158, 179

  13. #13
    hi lewis, in some mossies I have the tailwheel is positioned a feet or so boyond ground level; accordingly to your theory (and practice also) would it as simple as adjusting that "0" on the first line?
    I cannot at the present open the cgf of that airplane but what I expect do to is increasing thet "0" until the airplane sits in the right way on the ground, isn´t it?

    sorry I´d better said I have to adjust the fourth number on the first line....
    Gianluca

  14. #14
    Gianluca to adjust the tail wheel position, first you would need to adjust the 4th number in the first string then the static pitch as I have highlighted below. Raise the number in the first string if the wheel sinks and lower it if the wheel hovers above the ground. I would modify it one full point at a time initially to avoid having to make a million adjustments then adjust by tenths of a number to fine tune. For instance -3.7 to
    -4.7 then smaller increments -4.7 to -4.9 and so forth.

    Once you get the tail wheel to set squarely on the ground now the attitude the plane spawns at will probably be off then it will immediately snap to the new correct position. If so you will now need to adjust the static pitch but you will increase the number to bring the tail down and decrease it to raise the tail up. Just the opposite of what you did with the other number. That should fix your problem.

    point.0=1, -13.68, 0, -3.7, 2165.354, 0, 0.549, 12, 0.253, 2.5, 0.498, 4, 5, 0, 158, 179

    point.1=1, 2.02, -5.917, -7.4, 2165.354, 1, 0.549, 0, 0.633, 2.5, 0.8, 5.5, 6, 2, 158, 179

    point.2=1, 2.02, 5.917, -7.4, 2165.354, 2, 0.549, 0, 0.633, 2.5, 0.8, 6, 6.5, 3, 158, 179

    static_pitch= 13
    static_cg_height= 6.2

    If you cannot open the aircraft.cfg file then right click on the file and set it to open with note pad just as you did the .xpd files.

  15. #15
    thks Lewis, easy to understand and useful!
    Gianluca

  16. #16
    Okay, let's give this a bump.

    I read through this again and found all the math to be perfectly sensible, but reading about it in words makes the process comes across as impossibly complicated.

    What I've actually been doing the last couple of years was a couple of iterations of trial and error adjustments in the cfg contact points table by looking at how the aircrafts sits in the game.

    I can "see" the number relationships in my head, so I suppose I'm a special case (or a nut case)...
    US Army, Major, Ret.

    Service To The Line,
    On The Line,
    On Time

    US Army Ordnance Corps.

  17. #17
    How about another bump , what a great thread to fix those contact points.

    Ive been looking for a RAAF Kittyhawk Skin suitable for combat over Italy in 1943 and I found one in the ETO install - ETO_KittyhK450

    It has the dreaded wheels half sunken in the ground and this thread may just have the answers I need, this will be my weekend project.

    Mick


  18. #18
    Member sixstrings5859's Avatar
    Join Date
    May 2011
    Location
    Sulphur,South West Louisiana in the good'ol USA
    Age
    59
    Posts
    3,518
    Blog Entries
    1
    Will experiment with this new knowledge. Never seen this post before ! Rene just recently showed me how to fix the canopy glass problem with some of the early models for CFS3 . Now into fixing the small little nagging problems with CFS3,and this is one of those. Thanks guys for the useful information. I'm not too good with words but someone should post how to effect the canopy glass on some early models also. This important thread should be put in the knowledge base sticky. Regards ,Scott

  19. #19
    Unfortunately the images that illustrated the process are lost. Good explanations of contact points can be found at FSDeveloper: the process is the same in CFS2, CFS3, FS9, FSX, P3D but I don’t know how MSFS might differ. I also found the process described above doesn’t take the compression ratio properly into account, but trial and error has a long and honourable history in flight sim development.
    Tom
    __________________________________________________ ___________________________________________
    Wisdom is the principal thing; therefore get wisdom: and with all thy getting get understanding. Proverbs 4:7



  20. #20
    Thanks for the FSdeveloper hint hairyspin, I see your name popping up over there on a search for "contact points".

    Just a follow up question, will adjusting the contact points fix the spawned in "mole" aircraft on airfields that sink into the ground leaving only the top half visible?

    Am I correct that in the case of "mole" aircraft they are sitting on the centerline of the model and that there is something wrong with the contact points?


    Mick

  21. #21
    The moling problem, as Clive discussed a long time ago, is due to errors in the model where the undercarriage parts are not correctly named and organised in the model hierarchy. Corrado discovered how to hack a model’s .BDP file and get around this and there certainly used to be hacked versions for some aircraft, but he didn’t share how this was done. Unfortunately.
    Tom
    __________________________________________________ ___________________________________________
    Wisdom is the principal thing; therefore get wisdom: and with all thy getting get understanding. Proverbs 4:7



  22. #22
    Thanks I found this thread which explains it

    http://www.sim-outhouse.com/sohforum...ighlight=moles

    Comparing Corrado's mole fix BDP files with the original BDP created by same aircraft may highlight the area involved, more weekend work

    Corrado's mole fixes are available here using the time machine thing

    http://web.archive.org/web/200705141...i.com/misc.htm

    Mick

  23. #23
    After a bit of experimenting I managed to adjust the contact points and the compression ratio to suit my requirements, plane takes off and lands without any strange visuals



    If anybody is interested here are the adjustments I made - Changes in red

    point.0 = 1, -19.15, 0, -1.9, 1165, 0, 0.35, 180, 0.56, 1.5, 0.5, 4, 5, 0, 123, 137
    point.1 = 1, 2.15, -4.25, -7.15, 1165, 1, 1, 0, 0.6, 2.5, 0.82308, 5, 7, 2, 123, 137
    point.2 = 1, 2.15, 4.25, -7.15, 1165, 2, 1, 0, 0.6, 2.5, 0.82308, 7, 16, 3, 123, 137

    static_cg_height= 5.0

    Original
    point.0 = 1, -19.15, 0, -.5, 1165, 0, 0.35, 180, 0.26, 1.5, 0.5, 4, 5, 0, 123, 137
    point.1 = 1, 2.15, -4.25, -5.50, 1165, 1, 1, 0, 0.3, 2.5, 0.82308, 5, 7, 2, 123, 137
    point.2 = 1, 2.15, 4.25, -5.50, 1165, 2, 1, 0, 0.3, 2.5, 0.82308, 7, 16, 3, 123, 137

    static_cg_height= 4.5

    Mick

  24. #24
    Member sixstrings5859's Avatar
    Join Date
    May 2011
    Location
    Sulphur,South West Louisiana in the good'ol USA
    Age
    59
    Posts
    3,518
    Blog Entries
    1
    Thank you so very much ! A long standing problem found ! Please, fill us in on the way to fix this in layman's terms . Will try this out on the P-40 given. Thanks so much for looking into this and cracking the code ! Regards , Scott

  25. #25
    Its all found in this thread, plus the links below

    https://www.fsdeveloper.com/forum/th...2/#post-834294

    https://www.fsdeveloper.com/wiki/ind...Contact_Points

    http://www.sim-outhouse.com/sohforum...l=1#post858258

    After reading and taking in those threads then its just a case of -

    Change cfg file

    Delete bdp file

    Load game

    Check aircraft

    Rinse and repeat as required until you have the result you need.

    Its not hard just time consuming

    Mick

Similar Threads

  1. Contact points, lights and effects.
    By OleBoy in forum FSX General Discussion
    Replies: 18
    Last Post: May 9th, 2013, 05:38
  2. IL-76 contact points
    By SSI01 in forum FS 2002/2004 General Discussion
    Replies: 10
    Last Post: November 9th, 2011, 15:33
  3. My new contact points for the AH F3F-2 for FS9
    By Cazzie in forum FS 2002/2004 General Discussion
    Replies: 3
    Last Post: October 10th, 2009, 17:09
  4. Contact Points
    By NachtPiloten in forum CFS2 General Discussion
    Replies: 1
    Last Post: October 6th, 2009, 05:06
  5. Contact points VS scrape points
    By Sid2008 in forum FS 2002/2004 General Discussion
    Replies: 5
    Last Post: August 3rd, 2009, 10:11

Members who have read this thread: 4

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •