anyone help me

Posts 18 of 8 · Page 1 of 1
anyone help me
anyone can say me as can make a hack with image
It's impossible, no one can do it.
Idk what your talking bout man
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:
http://www.mpgh.net/forum/207-combat...w-sprites.html


@OBrozz using Huge BYTE arrays like that will cause Visual Studios to lag
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.
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
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.
Posts 18 of 8 · Page 1 of 1

Post a Reply

Tags for this Thread

None

Need help?