Forum Announcement, Click Here to Read More From EA_Cade.

@SimGuruModSquad RLES Additional Chunk Information Please

SimKureeSimKuree Posts: 39 Member
edited March 5 in Nominated Threads
@SimGuruModSquad
Hi guru, I got some problems decoding the RLES format. In addition to RLE2, there's another data offset defined in the mipmap header. That chunk info is not necessary to produce a single DXT5 DDS image and its length varies. Would you please provide more information about this particular chunk? Thanks in advance.
You can find my S4PE here.
Post edited by EA_Cade on

Comments

  • Options
    SimGuruModSquadSimGuruModSquad Posts: 597 Member
    Resource type 0xba856c78, right? Not sure what chunk you are referring to exactly, here is the structure of the file.

    uint32 mName1 <format=hex>; // "DXT5"
    uint32 mName2 <format=hex>; // "RLES"
    uint16 nWidth;
    uint16 mHeight;
    uint16 mMipCount;
    uint16 mReserved;
    
    uint32 mBlockPositions[6*mMipCount];
    
    local int i=0;
    for(i=0; i<mMipCount; i++)
    {
        FSeek( mBlockPositions[(i*6)+0]);
        uint16 mControlDataStart;
        FSeek( mBlockPositions[(i*6)+1]);
        uint32 mColorData1DataStart;
        FSeek( mBlockPositions[(i*6)+2]);
        uint32 mColorData2DataStart;
        FSeek( mBlockPositions[(i*6)+3]);
        uint16 mAlphaData1DataStart;
        FSeek( mBlockPositions[(i*6)+4]);
        uint16 mAlphaData2PosStart;
        FSeek( mBlockPositions[(i*6)+5]);
        byte mMaskDataPosStart;
    }
    
  • Options
    SimKureeSimKuree Posts: 39 Member
    edited October 2014
    Hi would you please explain the maskData? From my experiment the previous four block data are sufficient to generate the DDS image.
    Post edited by SimKuree on
    You can find my S4PE here.
  • Options
    SimGuruModSquadSimGuruModSquad Posts: 597 Member
    Those are alpha values used to blend the textures together when compositing the sim texture. Note that this resource is a specular texture.
  • Options
    SimKureeSimKuree Posts: 39 Member
    Hi would you please explain mast data in details, like how to compute them or it's just a separated image used for alpha threshold masking.
    You can find my S4PE here.

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file
Return to top