Uploaded image for project: 'GMAT'
  1. GMAT
  2. GMT-4898

.3ds Models are not showing up properly in 3D Graphics

    Details

      Description

      Please load these S/C models from Visualization tab. The attached .3ds models are not showing up properly into S/C Visualization and 3D Graphics.

      Following .3ds models and their texture files were downloaded from: http://nasa3d.arc.nasa.gov/models : When you click on each model, the Description page of this website also gives # of Polygons and Vertices for the models.

      + Agena Target Vehicle (When loaded in GMAT, Most of .3ds model is missing)
      + Apollo Suyuz (When loaded in GMAT, .3ds model shows up but texture maps do not wrap onto the 3d model)

      Following .3ds models and their texture files were downloaded from: http://www.celestiamotherlode.net/catalog/satellites.php

      + Endeavor (When loaded in GMAT, most of .3ds model is missing)
      + Generic Satellite

      Following .3ds model and its texture files were grabbed from: http://www.celestiamotherlode.net/catalog/spacecraft.php

      + Helios Model (After loading into GMAT, some of the .3ds model is missing and texture maps do not wrap onto the 3d model)
      + Zond 3 (When loaded in GMAT, most of .3ds model is missing)

      Attached is also isscomplete.zip which has complete ISS .3ds model and texture files that used to work in GMAT R2011a. This ISS model used to show up just fine in R2011a but starting from R2012a to R2014a, now only some parts of the 3D model show up without any texture files. I've attached picture of ISS model when I loaded it into R2011a.

      Following three S/C .3ds models and texture files load just fine! They were grabbed from http://nasa3d.arc.nasa.gov/models as well. Note: This website tells you about # of Polygons and Vertices for models.

      + Aura (GMAT's default .3ds model)
      + Hubble Space Telescope (HST). This model displays just fine after Darrel fixed GMT-2841. Remaining issues with displaying 3D S/C models are in open ticket: GMT-3712
      + Mir.3ds (also loads fine). Note: Mir.3ds does not have texture files, so you'll only see model. Model shows up complete in OrbitView.

      Following models cause GMAT to CRASH ("unhandled exception..." GUI panel shows up and then GMAT crashes) the moment when you load these models into GMAT:

      + isscombined.3ds model causes GMAT to crash the moment when you load it from S/C Visualization tab. Loaded this ISS model from (http://nasa3d.arc.nasa.gov/detail/iss-c2). This site shows # of Polygons & Vertices as well for this particular model. # of Polygons is 175083 and vertices is 89501. Note that this .3ds model's # of Polygons exceed the limit that Darrel talked about in GMT-3712 . Per GMT-3712, "The code uses static memory resources that restrict models to 200,000 vertices, 100,000 polygons, and 500 materials/textures."

        Gliffy Diagrams

          Attachments

          1. Agena Target Vehicle.png
            Agena Target Vehicle.png
            48 kB
          2. Agena Target Vehicle.zip
            1.25 MB
          3. Apollo Suyoz.png
            Apollo Suyoz.png
            71 kB
          4. Apollo Suyoz.zip
            531 kB
          5. aura.zip
            387 kB
          6. Endeavor.png
            Endeavor.png
            48 kB
          7. Endeavour.zip
            445 kB
          8. Generic Satellite.png
            Generic Satellite.png
            52 kB
          9. generic satellite.zip
            55 kB
          10. hartley2_2012_Blender3.3ds
            438 kB
          11. hartley2_2012.obj
            2.06 MB
          12. hartley2_meshlab.tiff
            371 kB
          13. Helios.png
            Helios.png
            55 kB
          14. Helios.zip
            59 kB
          15. HST.zip
            1.12 MB
          16. isscombined.3ds
            3.38 MB
          17. ISScomplete.zip
            739 kB
          18. ISS model in R2011a.png
            ISS model in R2011a.png
            1.33 MB
          19. Mir.3ds
            119 kB
          20. Zond 3.png
            Zond 3.png
            50 kB
          21. Zond 3.zip
            99 kB

            Activity

            Hide
            rqureshi Rizwan Qureshi added a comment -

            Darrel: Quick question:

            I grabbed the following models (Agena Target Vehicle, Apollo Suyoz, Aura, Hubble, Mir) from http://nasa3d.arc.nasa.gov/models. The # of polygons and vertices for all these models does not exceed the limit of polygons & vertices that you talked about in GMT-3712. Per GMT-3712, "The code uses static memory resources that restrict models to 200,000 vertices, 100,000 polygons, and 500 materials/textures." These models load just fine without a crash.

            I grabbed isscombined.3ds from http://nasa3d.arc.nasa.gov/detail/iss-c2 as well. Since this model's # of polygons (175083) exceed the limit of 100,000 per GMT-3712, hence do you think that is the reason why GMAT crashes the moment when I first load this model into GMAT?

            There's a user who posted a forum question (http://forums.gmatcentral.org/viewtopic.php?f=46&t=49117). He tries to load isscombined.3ds and we both see GMAT crash the moment when we try to load isscombined.3ds into GMAT.

            Show
            rqureshi Rizwan Qureshi added a comment - Darrel: Quick question: I grabbed the following models (Agena Target Vehicle, Apollo Suyoz, Aura, Hubble, Mir) from http://nasa3d.arc.nasa.gov/models . The # of polygons and vertices for all these models does not exceed the limit of polygons & vertices that you talked about in GMT-3712 . Per GMT-3712 , "The code uses static memory resources that restrict models to 200,000 vertices, 100,000 polygons, and 500 materials/textures." These models load just fine without a crash. I grabbed isscombined.3ds from http://nasa3d.arc.nasa.gov/detail/iss-c2 as well. Since this model's # of polygons (175083) exceed the limit of 100,000 per GMT-3712 , hence do you think that is the reason why GMAT crashes the moment when I first load this model into GMAT? There's a user who posted a forum question ( http://forums.gmatcentral.org/viewtopic.php?f=46&t=49117 ). He tries to load isscombined.3ds and we both see GMAT crash the moment when we try to load isscombined.3ds into GMAT.
            Hide
            djcinsb Darrel Conway added a comment -

            My 2w estimate is a WAG. It could be a simple fix (3-4 days, mostly to relearn the poorly constructed code) or 4 weeks (to make the code maintainable and conforming to the OpenGL specs).

            Show
            djcinsb Darrel Conway added a comment - My 2w estimate is a WAG. It could be a simple fix (3-4 days, mostly to relearn the poorly constructed code) or 4 weeks (to make the code maintainable and conforming to the OpenGL specs).
            Hide
            shughes Steven Hughes added a comment - - edited

            The Millenium Falcon from this page causes a crash.
            http://www.scifi3d.com/list.asp?intGenreID=10&intCatID=10

            Show
            shughes Steven Hughes added a comment - - edited The Millenium Falcon from this page causes a crash. http://www.scifi3d.com/list.asp?intGenreID=10&intCatID=10
            Hide
            rqureshi Rizwan Qureshi added a comment -

            This ticket has been fixed. John Downing's new .3ds model file reader has fixed 3DS models issue. Fixture is in R2015a builds.

            Show
            rqureshi Rizwan Qureshi added a comment - This ticket has been fixed. John Downing's new .3ds model file reader has fixed 3DS models issue. Fixture is in R2015a builds.
            Hide
            rqureshi Rizwan Qureshi added a comment -

            Closing since fixture has been verified and GUI tests have been written by Tetyana

            Show
            rqureshi Rizwan Qureshi added a comment - Closing since fixture has been verified and GUI tests have been written by Tetyana

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2 weeks
                  2w
                  Remaining:
                  Remaining Estimate - 2 weeks
                  2w
                  Logged:
                  Time Spent - Not Specified
                  Not Specified