Page 1 of 2 12 LastLast
Results 1 to 15 of 29

Thread: [FSX] SDK - 3D model for Garmin GPS 500

  1. #1
    Charter Member 2012 David W.'s Avatar
    Join Date
    Nov 2011
    Location
    LFSH - Haguenau
    Posts
    61

    [FSX] SDK - 3D model for Garmin GPS 500

    I'm proud to present my new SDK for developper who want integrate a 3D GPS model for your aircraft on FSX. Be careful, all package is in french language !

    SDK includes:

    - Gmax 3D model of Garmin GPS 500
    - Code for the modeldef.xml file to add animation on FSX
    - Textures for the 3D model
    - Code for the panel.cfg file
    - Creative Commons legalcode "http://creativecommons.org/licenses/by-nc-sa/3.0/"




    File Name: SDK - 3D Model for Garmin GPS 500
    Author File: David W.
    Date Added File: March 18, 2012
    Category File: Developer
    Version Flight Simulator: FSX
    MD5 Checksum: 851D844EC51192AC7E2103AA7B92E1F9

    Development kit for adding a 3D model Garmin GPS 500 for Flight Simulator X


    Click here to download this file


    Support

    Click here

    /!\ Reminder: No support will be made ​​on Sim-Outhouse

  2. #2
    That is very nice!
    Dutch National Aviation Theme Park and Museum.
    No DC3 without the DC2

  3. #3
    Charter Member 2010 full's Avatar
    Join Date
    Jun 2005
    Location
    London, Ruislip, UK
    Age
    34
    Posts
    347
    Thank you very much David ! this is excellent

  4. #4
    Charter Member 2012 David W.'s Avatar
    Join Date
    Nov 2011
    Location
    LFSH - Haguenau
    Posts
    61
    Thank you too

    It's a great pleasure to share my expirence with you.

  5. #5
    Pearl Harbor Project developer crashaz's Avatar
    Join Date
    Jun 2005
    Location
    The Big D .. Dallas
    Age
    45
    Posts
    2,300
    WoW! Thank you very much for sharing with us.
    crashAZ- Virtual Navy
    <font color=#333333><span style=font-family: Verdana>http://www.sim-outhouse.net/images/rtwr2013/rtwr2013_sm.png</span></font>

  6. #6
    SOH Staff Tako_Kichi's Avatar
    Join Date
    Sep 2007
    Location
    SW Ontario, Canada (Ex-pat Brit)
    Age
    56
    Posts
    4,068
    Has anyone had any success with this unit yet?

    I just placed it my current model but when I went to export it the exporter complained numerous times about 'No definition found for animation XYZ' and 'Ending an animation that wasn't started.....'.

    The model shows up in the VC (with textures) but of course nothing works. I do have the XML file in the panel folder and I added the info to the panel.cfg file.

    I am guessing that I need to assign the animations to something but I am not sure what at the moment and I'm afraid my high school French (from 40+ years ago) hasn't helped me to find an answer on the French website linked to above for support.

    Edit: I just noticed that the image for the moving map (called I presume from the default GPS) is mirrored vertically and offset so it is upside down and back to front in terms of the text on the visible buttons.
    Larry
    SOH RTWR Team Member 09-13



  7. #7
    Charter Member 2012 David W.'s Avatar
    Join Date
    Nov 2011
    Location
    LFSH - Haguenau
    Posts
    61
    Hi Tako_Kichi,

    In first thank you to try to use my kit, and you are the first that gives me a return

    And with my poor english, I will try to help you to use this package to reply on your bug.


    Quote Originally Posted by Tako_Kichi View Post
    Has anyone had any success with this unit yet?
    Yes, me (Just a joke )


    Quote Originally Posted by Tako_Kichi View Post
    I just placed it my current model but when I went to export it the exporter complained numerous times about 'No definition found for animation XYZ' and 'Ending an animation that wasn't started.....'.
    The XYZ is a generic name to use or the real message of Gmax ? It is possible to list the animations with problem ?

    When you import the model, which fonction use on Gmax; "File > Merge ..."


    Quote Originally Posted by Tako_Kichi View Post
    The model shows up in the VC (with textures) but of course nothing works. I do have the XML file in the panel folder and I added the info to the panel.cfg file.
    Do you have copy all lines of "modeldef.xml" into your "modeldef.xml" present in "...\SDK\Environment Kit\Modeling SDK\bin\modeldef.xml" before launch Gmax ?


    Quote Originally Posted by Tako_Kichi View Post
    I am guessing that I need to assign the animations to something but I am not sure what at the moment and I'm afraid my high school French (from 40+ years ago) hasn't helped me to find an answer on the French website linked to above for support.
    No problem, I try with my english...

    Quote Originally Posted by Tako_Kichi View Post
    Edit: I just noticed that the image for the moving map (called I presume from the default GPS) is mirrored vertically and offset so it is upside down and back to front in terms of the text on the visible buttons.
    Yes, a bug. I upload a new version (V0.2.1) go on http://www.danslesairs.fr/portail/in...armin-gps-500/


    Sorry for this late answer

  8. #8
    SOH Staff Tako_Kichi's Avatar
    Join Date
    Sep 2007
    Location
    SW Ontario, Canada (Ex-pat Brit)
    Age
    56
    Posts
    4,068
    Thanks for the prompt reply David and sorry it took me a while to answer but I have not felt well today and spent most of it ill in bed (and on my birthday too! )

    Quote Originally Posted by David W. View Post
    And with my poor english, I will try to help you to use this package to reply on your bug.
    Your English is way better than my French.

    Quote Originally Posted by David W. View Post
    The XYZ is a generic name to use or the real message of Gmax ? It is possible to list the animations with problem ?
    The 'XYZ' was just my way of showing there were multiple error messages that referred to every animation call.

    Quote Originally Posted by David W. View Post
    When you import the model, which fonction use on Gmax; "File > Merge ..."
    Yes I used 'File>Merge' to import.

    Quote Originally Posted by David W. View Post
    Do you have copy all lines of "modeldef.xml" into your "modeldef.xml" present in "...\SDK\Environment Kit\Modeling SDK\bin\modeldef.xml" before launch Gmax ?
    This I think is where I went wrong. I copied the 'modeldef.xml' file into the panel folder as I thought (incorrectly) that it was a gauge XML file and not a part of the core XML file in the SDK. Can I copy and paste that data anywhere in the 'modeldef.xml' file (i.e. at the bottom or between other sections) or does it have to go in a specific place?

    Quote Originally Posted by David W. View Post
    Yes, a bug. I upload a new version (V0.2.1) go on http://www.danslesairs.fr/portail/in...armin-gps-500/
    I am glad I was able to find a bug for you and I will try the newest release as soon as possible.
    Larry
    SOH RTWR Team Member 09-13



  9. #9
    SOH Staff Tako_Kichi's Avatar
    Join Date
    Sep 2007
    Location
    SW Ontario, Canada (Ex-pat Brit)
    Age
    56
    Posts
    4,068
    Quote Originally Posted by David W. View Post
    Do you have copy all lines of "modeldef.xml" into your "modeldef.xml" present in "...\SDK\Environment Kit\Modeling SDK\bin\modeldef.xml" before launch Gmax ?
    Quote Originally Posted by Tako_Kichi View Post
    This I think is where I went wrong. I copied the 'modeldef.xml' file into the panel folder as I thought (incorrectly) that it was a gauge XML file and not a part of the core XML file in the SDK. Can I copy and paste that data anywhere in the 'modeldef.xml' file (i.e. at the bottom or between other sections) or does it have to go in a specific place?
    That was indeed where I went wrong and I just copied the correct bits of the supplied code into the 'modeldef.xml' file and I have a semi-working GPS unit now (see details below). I copied the data from AFTER the line <ModelInfo> and BEFORE the line </ModelInfo> and I pasted it into the 'modeldef.xml' file right before the final </ModelInfo> line. GMAX then compiled without complaining (it did take me a few attempts before I found the correct place to paste the data though).

    The GPS unit is now working in sim with the map the correct way up (i.e. not mirrored) but I think I may have found another bug for you David. The rocker switch in the upper left corner only zooms in it does not zoom out and it does not appear to be animated in any way as it does not move, at least in FSX, although I can see it moving in GMAX when I move the animation slider.

    While I am talking about animations I feel the movement on all the buttons is just way too small. You can barely see any movement on the buttons when you press them and they could easily move twice as far (including the rocker switch) which would look better as at least then you could be certain you had pressed the button in the VC. I just double-checked the animation travel in GMAX and it is a lot more than you see in FSX so there is something odd going on there and the travel distance is being reduced in the sim for some reason.

    I also checked the unit at night and as it has no illumination on the screen or buttons it is very hard to see. Might I suggest some night lighting for the unit too David?
    Larry
    SOH RTWR Team Member 09-13



  10. #10
    Charter Member 2012 David W.'s Avatar
    Join Date
    Nov 2011
    Location
    LFSH - Haguenau
    Posts
    61
    Hi Tako_Kichi,

    I hope you feel better today

    In first, you must keep the "modeldef.xml" structure when you add line.

    See below a short exemple if a merge two "modeldef.xml":

    File A

    Code:
    <?xml version="1.0" encoding="utf-8" ?>
    <ModelInfo>
    
    <Animation name="rudder_percent_key"            guid="D9C0B557-6EA8-4DAB-BB02-C7CCCCCDBB57" length="100"    type="Sim" typeParam="AutoPlay" typeParam2="rudder_percent_key"/>
    
    
    <AnimationGroup name="Exterior" guid="0xB331C7EF,0xE2BA4276,0x84C433B2,0xBA9781B3">
        <AnimationRef guid="D9C0B557-6EA8-4DAB-BB02-C7CCCCCDBB57"/>
    </AnimationGroup>
    
    
    <PartInfo>
        <Name>rudder_percent_key</Name>
        <AnimLength>100</AnimLength>
        <Animation>
            <Parameter>
                    <Sim>
                    <Variable>RUDDER DEFLECTION PCT</Variable>
                    <Units>percent</Units>
                    <Bias>50</Bias>
                </Sim>
            </Parameter>
        </Animation>
    </PartInfo>
    
    </ModelInfo>
    File B

    Code:
    <?xml version="1.0" encoding="utf-8" ?>
    <ModelInfo>
    
    <Animation name="GPS_500_btn_fpl"                guid="EEDE017F-DD77-4D85-A190-A4C68EB29EF3" length="100"    type="Sim" typeParam="AutoPlay" typeParam2="GPS_500_btn_fpl"/>
    
    
    <AnimationGroup name="GPS" guid="0xB331C7EF,0xE2BA4276,0x84C433B6,0xBA978103">
        <AnimationRef guid="EEDE017F-DD77-4D85-A190-A4C68EB29EF3"/>
    </AnimationGroup>
    
    
    <PartInfo>
        <Name>GPS_500_btn_fpl</Name>
        <AnimLength>100</AnimLength>
        <Animation>
            <Parameter>
                <Code>50 (L:GPS_500_btn_fpl,enum) 50 * +</Code>
            </Parameter>
        </Animation>
        <MouseRect>
            <Cursor>Hand</Cursor>
            <MouseFlags>LeftSingle+LeftRelease</MouseFlags>
            <CallbackCode>
                (M:Event) 'LeftSingle' scmp 0 ==
                    if{ -1 (>L:GPS_500_btn_fpl, enum) (>K:GPS_FLIGHTPLAN_BUTTON) }
                (M:Event) 'LeftRelease' scmp 0 ==
                    if{ 0 (>L:GPS_500_btn_fpl, enum) }
            </CallbackCode>
        </MouseRect>
    </PartInfo>
    
    </ModelInfo>
    Result merge A+B

    Code:
    <?xml version="1.0" encoding="utf-8" ?>
    <ModelInfo>
    
    <Animation name="rudder_percent_key"            guid="D9C0B557-6EA8-4DAB-BB02-C7CCCCCDBB57" length="100"    type="Sim" typeParam="AutoPlay" typeParam2="rudder_percent_key"/>
    <Animation name="GPS_500_btn_fpl"                guid="EEDE017F-DD77-4D85-A190-A4C68EB29EF3" length="100"    type="Sim" typeParam="AutoPlay" typeParam2="GPS_500_btn_fpl"/>
    
    <AnimationGroup name="Exterior" guid="0xB331C7EF,0xE2BA4276,0x84C433B2,0xBA9781B3">
        <AnimationRef guid="D9C0B557-6EA8-4DAB-BB02-C7CCCCCDBB57"/>
    </AnimationGroup>
    
    <AnimationGroup name="GPS" guid="0xB331C7EF,0xE2BA4276,0x84C433B6,0xBA978103">
        <AnimationRef guid="EEDE017F-DD77-4D85-A190-A4C68EB29EF3"/>
    </AnimationGroup>
    
    
    <PartInfo>
        <Name>rudder_percent_key</Name>
        <AnimLength>100</AnimLength>
        <Animation>
            <Parameter>
                    <Sim>
                    <Variable>RUDDER DEFLECTION PCT</Variable>
                    <Units>percent</Units>
                    <Bias>50</Bias>
                </Sim>
            </Parameter>
        </Animation>
    </PartInfo>
    
    
    <PartInfo>
        <Name>GPS_500_btn_fpl</Name>
        <AnimLength>100</AnimLength>
        <Animation>
            <Parameter>
                <Code>50 (L:GPS_500_btn_fpl,enum) 50 * +</Code>
            </Parameter>
        </Animation>
        <MouseRect>
            <Cursor>Hand</Cursor>
            <MouseFlags>LeftSingle+LeftRelease</MouseFlags>
            <CallbackCode>
                (M:Event) 'LeftSingle' scmp 0 ==
                    if{ -1 (>L:GPS_500_btn_fpl, enum) (>K:GPS_FLIGHTPLAN_BUTTON) }
                (M:Event) 'LeftRelease' scmp 0 ==
                    if{ 0 (>L:GPS_500_btn_fpl, enum) }
            </CallbackCode>
        </MouseRect>
    </PartInfo>
    
    
    </ModelInfo>
    The GPS unit is now working in sim with the map the correct way up (i.e. not mirrored) but I think I may have found another bug for you David.
    Cool , but not for the new bug ;-)

    The rocker switch in the upper left corner only zooms in it does not zoom out and it does not appear to be animated in any way as it does not move, at least in FSX, although I can see it moving in GMAX when I move the animation slider.
    Indeed you right the zoom button it's not perfect but you can zoom in and zoom out. To zoom in use your left click and zoom out right click. The problem was in animation button is not perfect. For this moment I must found the good XML code to correct the bug.


    While I am talking about animations I feel the movement on all the buttons is just way too small. You can barely see any movement on the buttons when you press them and they could easily move twice as far (including the rocker switch) which would look better as at least then you could be certain you had pressed the button in the VC. I just double-checked the animation travel in GMAX and it is a lot more than you see in FSX so there is something odd going on there and the travel distance is being reduced in the sim for some reason.
    Ok, I must check the translate animation for all the button. I'll consider your point and increase the value of movement of the button for the next release.

    I also checked the unit at night and as it has no illumination on the screen or buttons it is very hard to see. Might I suggest some night lighting for the unit too David?
    Yes, but this GPS is only for VFR (no VFRNight or IFR). Hihihi just a joke.
    My knowledge of today does not allow me to add Self Illumination and night maps on texture. I can understand it's very problematic, I must learn about this feature. For moment it's not possible to add on this gauge. I'm sorry Tako_Kichi :(.
    You must be patient.


    I hope you have understood my explications

    See you soon or on the next bug :p

  11. #11
    SOH Staff Tako_Kichi's Avatar
    Join Date
    Sep 2007
    Location
    SW Ontario, Canada (Ex-pat Brit)
    Age
    56
    Posts
    4,068
    Quote Originally Posted by David W. View Post
    Hi Tako_Kichi,

    I hope you feel better today
    I'm feeling much better so far today thank you.

    Quote Originally Posted by David W. View Post
    In first, you must keep the "modeldef.xml" structure when you add line.

    See below a short exemple if a merge two "modeldef.xml":
    Thank you for the info and I now have the XML file set up correctly.

    Quote Originally Posted by David W. View Post
    Indeed you right the zoom button it's not perfect but you can zoom in and zoom out. To zoom in use your left click and zoom out right click. The problem was in animation button is not perfect. For this moment I must found the good XML code to correct the bug.
    I can use it like this for now and I hope you will be able to find the code to fix the problem. I checked out the Real Air Beechcraft Duke earlier today and it has a 3D modelled GPS 500 and a very nice animation on the rocker switch. I don't know if you have that aircraft but if you do you may be able to get some clues from the way they programmed their unit. They also have a very nice animation on all their buttons too.

    Quote Originally Posted by David W. View Post
    I also checked the unit at night and as it has no illumination on the screen or buttons it is very hard to see. Might I suggest some night lighting for the unit too David?
    Yes, but this GPS is only for VFR (no VFRNight or IFR). Hihihi just a joke.
    My knowledge of today does not allow me to add Self Illumination and night maps on texture. I can understand it's very problematic, I must learn about this feature. For moment it's not possible to add on this gauge. I'm sorry Tako_Kichi :(.
    You must be patient.
    Patience is not one of my better virtues I'm afraid!

    I had a quick play with the model/textures and came up with this after a short time.....



    The green 'lights' only show at dusk/night.

    I am more than willing to share how I did this and I could even make the texture for you but I really need to know the name of the font you used for the text as I had some close but not exact and it needs to be an exact match for the effect to work correctly. Better yet would be if you were willing to share your original layered artwork (as a PSD file) and then I could be sure of getting it exact.

    I haven't found a way of illuminating the map yet but I will make some enquiries.

    Quote Originally Posted by David W. View Post
    I hope you have understood my explications

    See you soon or on the next bug :p
    I understood perfectly and your English is very good.
    Larry
    SOH RTWR Team Member 09-13



  12. #12
    Charter Member 2012 David W.'s Avatar
    Join Date
    Nov 2011
    Location
    LFSH - Haguenau
    Posts
    61
    Hi Tako_Kichi,

    I haven't the Realair duke, but today I have seen some Youtube videos about the VC. And after, read this pages about the aircraft (http://realairsimulations.com/duke09...e=duke09_intro).

    I have now some ideas to upgrade the switch. I must add XML code and test. Maybe a new gauge for the week-end "Easter", maybe .

    Waouh the result of night texture is very cool. I send a email with forum system to give you the PSD file. Be careful, I don't use a text layer; just this image: http://www8.garmin.com/HiRes/aviatio...ps500-taws.jpg

    Sorry I don't which font you must use for the butom text :(.

    I'm very impatient to know how you create and which gmax material option for this great result.

  13. #13
    David, many thanks for the work you have done on this. I have been doing some refinements of my own that will simplify the way the display is done, along with some additions (power knob) that are forthcoming. Here is what it looks like in my current project...


  14. #14
    Charter Member 2012 David W.'s Avatar
    Join Date
    Nov 2011
    Location
    LFSH - Haguenau
    Posts
    61
    Thank you N2056... !!!

    Two videos to present the futur release !!

    Knob power with increase light:
    http://www.youtube.com/watch?v=Q3OSViBQqgk

    Update the button and zoom button (my environment test )
    http://www.youtube.com/watch?v=hrswpxPkHK4

  15. #15
    Charter Member 2012 David W.'s Avatar
    Join Date
    Nov 2011
    Location
    LFSH - Haguenau
    Posts
    61
    News !!

    [YOUTUBE]h2cipIjDtPQ[/YOUTUBE]

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Add the default Garmin GPS to an aircraft
    By ZIPPER010 in forum FSX General Discussion
    Replies: 1
    Last Post: April 2nd, 2013, 15:27
  2. Anyone familiar with the Garmin 296 GPS?
    By anthony31 in forum FSX General Discussion
    Replies: 0
    Last Post: June 21st, 2011, 18:51
  3. GPS and Garmin G1000 stuck and inop
    By Stefano Zibell in forum FSX General Discussion
    Replies: 0
    Last Post: May 24th, 2011, 11:34
  4. Garmin GPS personnel tracking
    By Tboomer57 in forum The NewsHawks
    Replies: 2
    Last Post: January 6th, 2011, 13:18
  5. Garmin G1000 SVT and G600
    By Wombat_VC in forum FSX General Discussion
    Replies: 11
    Last Post: August 3rd, 2009, 15:55

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
  •  


Avsim - Flightsim - SimFlight - Simviation - iflyonline - CFS IP - Quarter Moon Saloon - Com-Central