Thread: anyone help me

Results 1 to 8 of 8
  1. #1
    snayfer's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    25
    Reputation
    10
    Thanks
    6
    My Mood
    Twisted

    anyone help me

    anyone can say me as can make a hack with image

  2. #2
    Stephen's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Engine.exe
    Posts
    4,689
    Reputation
    184
    Thanks
    1,149
    My Mood
    Aggressive
    It's impossible, no one can do it.

  3. #3
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Idk what your talking bout man

  4. #4
    OBrozz's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    819
    Reputation
    65
    Thanks
    813
    Quote Originally Posted by whit View Post
    Idk what your talking bout man
    @snayfer
    @whit
    I think he is referring to something like this:





    I don't know C++ very well but i think Acid_Burn released a tutorial on it. Here let me explain...

    First get your image and open it up in the converter that acid_Burn provided(goggle it)
    Convert the image to bytes. The output bytes will be in the text file.

    Define you bytes like this:
    Code:
    BYTE Menu[ ] = {output bytes here};
    In the globals put,
    Code:
    LPD3DXSPRITE Sprite;
    LPDIRECT3DTEXTURE9 MenuTexture;
    static BOOL Create = TRUE;

    Now, Go to your Endscene or Present(were you make your menu) and create your texture and sprite like so:
    Code:
    if(Create){
    D3DXCreateTextureFromFileInMemory(Device,&Menu,siz eof(Menu),&MenuTexture);
    D3DXCreateSprite(pDevice,&Sprite);
    Create = FALSE;
    }

    Now you need to draw the sprite (In Endscene or Present again)
    Code:
    D3DXVECTOR3 POS;
    POS.x = 15;
    POS.y = 15;
    POS.z = 0;
    
    Sprite->Begin();
    Sprite->Draw(MenuTexture,NULL,NULL,&POS,0xFFFFFFFF);
    Sprite->End();

    If you would like the image transperent, Replace
    Code:
    Sprite->Begin();
    With
    Code:
    Sprite->Begin(D3DXSPRITE_ALPLHABLEND);
    All credits go to Acid_Burn and pyroctain666. If you just go to the following thread you can get the image to byte converter and your all set.
    Thread:
    https://www.mpgh.net/forum/207-combat...w-sprites.html



  5. #5
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    @OBrozz using Huge BYTE arrays like that will cause Visual Studios to lag

  6. #6
    OBrozz's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    819
    Reputation
    65
    Thanks
    813
    Quote Originally Posted by whit View Post
    @OBrozz using Huge BYTE arrays like that will cause Visual Studios to lag
    @whit
    I haven't coded in C++ in a long time so i wouldn't know.The only thing i tried to convert to a byte array would be a .wav file for sound in my C++ hack but i stopped coding in c++ because i prefer delphi. This is just a public release, im not giving him my filetobyte array.

  7. #7
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Quote Originally Posted by OBrozz View Post
    @whit
    This is just a public release, im not giving him my filetobyte array.
    No need too..mmbob released one that converts instantly

  8. The Following User Says Thank You to whit For This Useful Post:

    OBrozz (06-09-2011)

  9. #8
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    5,052
    My Mood
    Cool
    It is D3d and you can use SPRITES as shown about or you can Draw a texture on a Primitive for better control over your image.
    I just like programming, that is all.

    Current Stuff:

    • GPU Programmer (Cuda)
    • Client/Server (Cloud Server)
    • Mobile App Development

  10. The Following User Says Thank You to topblast For This Useful Post:

    OBrozz (06-09-2011)