Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-110918

Balsam Import Tool Generates Wrong Resource Paths

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.5.0, 6.6.0
    • 6.5.0 Beta2
    • Quick: 3D
    • None
    • macOS
    • 64cc4f550 (dev), 71c4f1c0d (6.5), 380f41616 (dev), fd8abfe81 (dev), c49dcd51c (6.5), 5cfeadc2c (6.5)

      Balsam generates texture source attribute like this:

        Texture {
      
              id: ____________home_app_mixamo_mini_tmp_skins_061a5a9e_1fee_460f_876c_03e0797fd994_fbm_SpacePirate_diffuse_png_texture
      
              generateMipmaps: true
      
              mipFilter: Texture.Linear
      
              source: "/Users/thomschm/Downloads/../../../../home/app/mixamo-mini/tmp/skins_061a5a9e-1fee-460f-876c-03e0797fd994.fbm/SpacePirate_diffuse.png"
      
          }
      

      The balsam call was invoked without specific arguments, just 'balsam <input_file>'.
      This seems to have a few issues:

      1. It's using a non-sanitized version of the original texture id from the imported file
      2. It uses the fully expanded path of the directory where the output goes to. This makes it impractical for future QML imports.
      3. As a side effect, there are no resource files generated, possibly because the source path is used for writing file, and obviously does not exist.

      The same balsam call on Qt 5.4 generated this output:

      Texture {
                  source: "maps/SpacePirate_diffuse.png.png"
                  pivotU: 0.5
                  pivotV: 0.5
                  generateMipmaps: true
                  mipFilter: Texture.Linear
              }
      

        For Gerrit Dashboard: QTBUG-110918
        # Subject Branch Project Status CR V

            inho Inho Lee
            thomschm Thomas Schmidt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes