[FSX] SDK - 3D model for Garmin GPS 500
Page 1 of 2 12 LastLast
Results 1 to 25 of 29

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

  1. #1

    [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
    Thank you very much David ! this is excellent
    Craig

  4. #4
    Thank you too

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

  5. #5
    Pearl Harbor Project developer
    Join Date
    Jun 2005
    Location
    The Big D .. Dallas
    Age
    56
    Posts
    2,426
    WoW! Thank you very much for sharing with us.
    crashAZ- Virtual Navy
    [SIGPIC]http://www.sim-outhouse.net/images/rtwr2013/rtwr2013_sm.png[/SIGPIC]

  6. #6
    SOH Staff Tako_Kichi's Avatar
    Join Date
    Sep 2007
    Location
    SW Ontario, Canada (Ex-pat Brit)
    Age
    67
    Posts
    5,123
    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


  7. #7
    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 :d)


    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
    67
    Posts
    5,123
    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


  9. #9
    SOH Staff Tako_Kichi's Avatar
    Join Date
    Sep 2007
    Location
    SW Ontario, Canada (Ex-pat Brit)
    Age
    67
    Posts
    5,123
    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


  10. #10
    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

  11. #11
    SOH Staff Tako_Kichi's Avatar
    Join Date
    Sep 2007
    Location
    SW Ontario, Canada (Ex-pat Brit)
    Age
    67
    Posts
    5,123
    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
    I understood perfectly and your English is very good.
    Larry


  12. #12
    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
    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
    News !!

    [YOUTUBE]h2cipIjDtPQ[/YOUTUBE]

  16. #16
    See below the fisrt documentation (french) for the SDK !!
    SDK 3D Garmin GPS 500 - Readme



    The next release coming soon !!

  17. #17


    Now I try to increase the brigthness to have a LCD effect. If you have some idea you are welcome !

  18. #18
    SOH Staff Tako_Kichi's Avatar
    Join Date
    Sep 2007
    Location
    SW Ontario, Canada (Ex-pat Brit)
    Age
    67
    Posts
    5,123
    David go to the link below and download the file....

    http://rapidlibrary.com/files/fsx-em...feqmi89on.html

    ...that will explain how to add a 'back-light' effect to the GPS screen but you may have to change the way you made the screen plane and the materials you used as both Robert and myself tried to do this for you already but the way you have the model set up at the moment won't work.
    Larry


  19. #19


    File Name: SDK - 3D Model for Garmin GPS 500
    Author File: David W.
    Date Added File: April 29, 2012
    Category File: Developer
    Version Flight Simulator: FSX
    MD5 Checksum: 518874409E4A7375C00CCE546C65AAFE

    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 FS-Developer



    [b] Update [/ b]

    [quote] Versioning:
    --------------------
    0.3.0 / 29/04/2012

    - Improved the code buttons
    - Improved code knobs
    - Added button "Logic" to reset variables
    - Added the rotary ON / OFF
    - Added a texture "Light Map" [/ quote]

    I want to thank "FlipFlap" for taking the time to read the documentation in order to correct errors.

  20. #20
    SOH Staff Tako_Kichi's Avatar
    Join Date
    Sep 2007
    Location
    SW Ontario, Canada (Ex-pat Brit)
    Age
    67
    Posts
    5,123
    Hi David, I just tried to download the file but when I click on the download button (telecharger) it takes me to a log in screen instead.
    Larry


  21. #21
    Retry, I think is okay now !!

  22. #22
    SOH Staff Tako_Kichi's Avatar
    Join Date
    Sep 2007
    Location
    SW Ontario, Canada (Ex-pat Brit)
    Age
    67
    Posts
    5,123
    Quote Originally Posted by David W. View Post
    Retry, I think is okay now !!
    It works now.

    EDIT: There appears to be a problem with your exe package David as it shuts down automatically after being open for a few seconds. It doesn't even give me time to navigate to the folder I want to unpack it to. I think a zip file may be a better option especially for non-French speakers like me.
    Larry


  23. #23
    Quote Originally Posted by Tako_Kichi View Post
    It works now.

    EDIT: There appears to be a problem with your exe package David as it shuts down automatically after being open for a few seconds. It doesn't even give me time to navigate to the folder I want to unpack it to. I think a zip file may be a better option especially for non-French speakers like me.

    Hello Tako_Kichi ;-)

    It is possible to check the MD5 of the file, and look is the same of this 518874409E4A7375C00CCE546C65AAFE

    Are you on Vista or Seven ? If yes, which level do you use on UAC (User Account Control) ?

    Try with right click and select "Run As Administrator", to see is better.

    I send (email) you a video how it's work, and a second exe file to try is better with.

    I prefer today use a exe. If I can't correct this bug maybe I switch in a zip file, maybe

  24. #24
    SOH Staff Tako_Kichi's Avatar
    Join Date
    Sep 2007
    Location
    SW Ontario, Canada (Ex-pat Brit)
    Age
    67
    Posts
    5,123
    Quote Originally Posted by David W. View Post
    Hello Tako_Kichi ;-)

    It is possible to check the MD5 of the file, and look is the same of this 518874409E4A7375C00CCE546C65AAFE
    Sorry I don't have a MD5 checksum program installed at the moment so can't check the value of the exe file.

    Quote Originally Posted by David W. View Post
    Are you on Vista or Seven ? If yes, which level do you use on UAC (User Account Control) ?
    I am on Win 7 64 bit and always run as an Admin.

    Quote Originally Posted by David W. View Post
    Try with right click and select "Run As Administrator", to see is better.
    Tried that and it still timed out.

    Quote Originally Posted by David W. View Post
    I send (email) you a video how it's work, and a second exe file to try is better with.

    I prefer today use a exe. If I can't correct this bug maybe I switch in a zip file, maybe
    I did manage to get the new exe to complete the unpack process just once but nothing appeared on my desktop which is where I told it to unpack to.
    Larry


  25. #25
    Update !

    Versioning: :
    --------------------
    0.3.1 / 01/05/2012

    - Improved the textures

    Tako_Kichi, it's possible to look if is the same bug with this new version ? Thank you

Similar Threads

  1. Garmin GPS personnel tracking
    By Tboomer57 in forum Ickie's NewsHawks
    Replies: 2
    Last Post: January 6th, 2011, 12:18

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
  •