This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

the alpha value is not correct after compression by tct mac v4.2

hi guys, i just find the alpha value become much smaller after compression by Mali GPU Texture Compression Tool v4.2 mac version, this problem also happens in the latest version v4.3, but it works well in windows version, is it a valid issue? will it be fixed in the future version? thanks.

i guess the alpha value has been squared. 26/255 = 0.10196, 90/255 = 0.32594, 0.32*0.32=0.1024ScreenShot.jpg 

Parents
  • Hi Wenbo,

    Unfortunately this is a known issue for the TCT on Mac related to the version of ImageMagick that is shipped with the product. In the short term, one work around may be to install a newer version of ImageMagick on your machine and then configure the TCT to use your version of ImageMagick's convert tool rather than the one shipped (See section 4.2: Setting the Location to the Command Line Binaries of the User Guide for how to configure this).

    For ImageMagick installation instructions see ImageMagick: Install from Binary Distribution

    Regards

    Ben

Reply
  • Hi Wenbo,

    Unfortunately this is a known issue for the TCT on Mac related to the version of ImageMagick that is shipped with the product. In the short term, one work around may be to install a newer version of ImageMagick on your machine and then configure the TCT to use your version of ImageMagick's convert tool rather than the one shipped (See section 4.2: Setting the Location to the Command Line Binaries of the User Guide for how to configure this).

    For ImageMagick installation instructions see ImageMagick: Install from Binary Distribution

    Regards

    Ben

Children
  • Hi Ben,

    Thanks for your feedback.

    I have already installed ImageMagick(ImageMagick-x86_64-apple-darwin15.2.0) in my Mac(version 10.11.2) following the instructions you supplied, it's convert program works well when i use it on the command line, but it failed when it work with TCT. please refer to the screenshot of the error, do you have any idea? thanks.

    Wenbo

    Screen Shot 2016-04-28 at 7.48.46 PM.pngScreen Shot 2016-04-28 at 7.49.14 PM.png
  • Hi Wenbo,

    Thanks for your reply.

    Can you confirm your Mac is running 'El Captain' version of OSX as this is required for the ImageMagick supplied above.

    Also, did you configure the additional required environment variables for ImageMagick? If not, you will need to configure them. In particular ImageMagick requires the DYLD_LIBRARY_PATH to be set to point to the location of its dylibs.

    Unfortunately even if you set them in a Terminal window and were successfully able to run the 'convert' command from the command line, you may find that the GUI application still does not work as it will not see those environment variables.

    You should be able to configure them from the command line and launch the TCT from the same terminal causing it to see those variables:

    export MAGICK_HOME="/Users/wenboqiu/Android/ImageMagick-6.9.3"

    export PATH="$MAGICK_HOME/bin:$PATH"

    export DYLD_LIBRARY_PATH="$MAGICK_HOME/lib:$DYLD_LIBRARY_PATH"

    cd <LOCATION_OF_MALI_TEXTURE_COMPRESSION_TOOL_FOLDER>

    open -a tct.app

    Now if you re-run the compression job I should expect it to work.

    Provided it does work you may want to configure these variables so that they always are set.

    Regards

    Ben

  • Hi Ben,

    Thank you very much for your comprehensive instructions.

    I am on vacation these days, as soon as i am back next week, i will let you know if the compression job can work.

    Thanks again.

    Wenbo

  • Hi Ben,

    Sorry for the late reply, i am a little busy after my vocation.

    I am sorry to tell you that the compression error still happens even if the environment variables are set. no success can be observed after tried several times.

    Wenbo

    Screen Shot 2016-05-17 at 9.00.47 PM.png

    Screen Shot 2016-05-17 at 9.03.52 PM.png

  • Hi Wenbo

    I'm sorry to here that did not work for you. As it stands I am not sure why you are experiencing this problem still. I will raise a ticket internally against the TCT to get this resolved in the next release.

    In the meantime my only suggestion is to try an alternative ImageMagick binary. Possible alternatives are ImageMagick installer for Mac OS X or Homebrew or MacPorts , however having not used / tested these I cannot confirm there suitability.

    Alternatively the Windows and Linux builds of TCT are known not to suffer from this problem, so if you have easy access to either you may prefer that option instead.

    Regards

    Ben

  • Hi Ben,

    Thanks for your suggestion, the Windows builds of TCT works well for me.

    Regards

    Wenbo