body_LZ.bin textures

Discussion in '3DS - Homebrew Development and Emulators' started by roflmuffin, May 16, 2016.

  1. roflmuffin
    OP

    roflmuffin Newbie

    Newcomer
    7
    0
    Nov 11, 2015
    Hi guys,

    I am working on a tool that will let me extract the images from 3ds themes (body_LZ.bin) but I am a bit stuck.
    I am using the code from EveryFileExplorer as a guide (here) and have successfully obtained the top screen texture offset (0xD0). I then read the next (256*512) * 2 bytes but always end up with a data file that when loaded into GIMP in RGB565 looks muddled.

    I can't seem to see what else I need to do except for that. I am reading from an uncompressed bin file.
    I've attached the bin file, expected output, and the output I receive. Hopefully someone will be able to point me in the right direction.
     

    Attached Files:

  2. Ricken

    Ricken So long, and goodnite / So long, not goodnite

    Member
    2,221
    2,417
    Jan 19, 2016
    United States
    Shibuya, The small one from Vegas
    Isnt this already a function in Usagi?