ROM graphics, 2D to 1D?

Discussion in 'NDS - ROM Hacking and Translations' started by KazoWAR, Jul 3, 2010.

Jul 3, 2010

ROM graphics, 2D to 1D? by KazoWAR at 7:29 AM (1,409 Views / 0 Likes) 5 replies

  1. KazoWAR
    OP

    Member KazoWAR GBAtemp Advanced Maniac

    Joined:
    Aug 12, 2008
    Messages:
    1,749
    Location:
    Winter Haven
    Country:
    United States
    I am trying to make another program to edit trainer sprites, but I ran into a road block and would like to ask if anyone else can help me with my problem.

    In Tile Molester there is a setting called 1-Dimensional and 2-Dimensional. Does anyone know what exactly TM does to the bytes to edit the image when going from 2-D to 1-D?

    This is the image I got from TM as a 1-D image.
    [​IMG]

    It is pretty much perfect except for the bottom, and I already know how to fix that.


    When changed it to 2-D it looks like this
    [​IMG]
    Pretty messy right?

    Well when I try to open the image in my program it looks like this
    [​IMG]

    It is exactly the same as when you change it to 2D mode it TM, So I need to know how to rearrange the pixels to make it in to a 1-D image
    Please anyone help?
     
  2. Noitora

    Member Noitora ::

    Joined:
    Aug 9, 2007
    Messages:
    3,768
    Location:
    Athens
    Country:
    Greece
  3. KazoWAR
    OP

    Member KazoWAR GBAtemp Advanced Maniac

    Joined:
    Aug 12, 2008
    Messages:
    1,749
    Location:
    Winter Haven
    Country:
    United States
    Thanks, I will take a look.
     
  4. Roxas75

    Member Roxas75 GBAtemp Advanced Fan

    Joined:
    Oct 9, 2010
    Messages:
    518
    Country:
    Italy
    Anyone resolved this? I have the same problem, i'm watching the TileMolester source, but i haven't found anything for now..
     
  5. pleonex

    Member pleonex GBAtemp Regular

    Joined:
    Jan 16, 2009
    Messages:
    197
    Location:
    South of Spain
    Country:
    Spain
    I think this is the tile form, the structure of the tiles in the image, usually named too as "Lineal (or No Tile), Horizontal and Vertical". The image is formed by blocks of pixels, normally 8x8.

    I have explained that some time ago here: http://code.google.com/p/tinke/wiki/NCGR?wl=en#Image_data
     
  6. Roxas75

    Member Roxas75 GBAtemp Advanced Fan

    Joined:
    Oct 9, 2010
    Messages:
    518
    Country:
    Italy
    Many thanks i got it.
     

Share This Page