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

Mali GPU TCT: Cube-map cross and HDR mipmap feature?

Hi,

The tool has been terrific so far.  Are there any plans to support HDR-mipmap?  Is there any specific reason why the user-guide documented this so explicitly?

ASTC is great with the probe images at Light Probe Image Gallery

At the moment, to get the horizontal/vertical cross working with GL/ES, I had to cut up each face and then perform mipmap on each individually.

Are there any plans to add in this feature to the tool?

If there is a better way to do this, please be so kind as to enlighten me.

Thank you.

Message was edited by: Phi Hung Nguyen

  • Hi phn002,


    The reason HDR/mipmap/ASTC issue is documented in the User Guide is just to let the users know about the problems that we are already aware of.
    As for the cube map feature / workaround let me talk to my colleagues first.
    But thanks for bringing these issues up, we will take your input into account when planning new release.

    Cheers,
    Jacek

  • Hi phn002,

    the way you are doing it is correct. Since there is no standard format for cubemap textures (ie. they could be landscape or portrait, the face of the cube could be unrolled into the usual 'cross' shape, or different shapes), it's hard to code a standard way of dealing with it.

    My favourite way is to crop the texture into individual faces, generate mipmaps, and then convert them to ASTC.

    I suggest using an automatic way to do that, for example using the convert tool from Image Magick.

    Here's a sample script to crop a cubemap image into separate images:

    #!/bin/bash
    
    image=$1
    # Get width and height of the input image
    width=`convert $image -format "%w" info:`
    height=`convert $image -format "%h" info:`
    
    
    # Find if the image is portrait or landscape mode
    # Compute the size of each cube face
    face=0
    if (( width > height )); then
      face=$((width / 4))
    else
      face=$(($height / 4))
    fi
    echo $face
    
    
    # Crop the input image into different faces
    `convert $image -crop ${face}x${face} ${image}-parts-%02d.png`
    

    This will product 12 faces, 6 of which are meaningful, and 6 are fully black, to be discarded.

    Thanks,

    Lorenzo