Results 1 to 11 of 11
  1. #1
    Fabolous's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    192.168.1.01
    Posts
    2,704
    Reputation
    261
    Thanks
    682
    My Mood
    Paranoid

    [Question] Picture

    On How to draw a picture ingame, by using DX9.

    I had a friend give me this, but it doesn't work for me, someone shed some light?
    [PHP]void cMenu:rawImageF(LPDIRECT3DDEVICE9 pDevice, LPD3DXSPRITE sprite,LPDIRECT3DTEXTURE9 pTexture, float x, float y, float z, char* file, ...)
    {

    sprite = NULL;
    if (!SUCCEEDED(D3DXCreateTextureFromFileA(pDevice, file, &pTexture)))
    D3DXCreateTextureFromFileA(pDevice, file, &pTexture);

    D3DXCreateSprite(pDevice, &sprite);
    sprite->Begin(D3DXSPRITE_ALPHABLEND);
    D3DXVECTOR3 pos;
    pos.x= x;
    pos.y= y;
    pos.z= z;
    sprite->Draw(pTexture, NULL, (0,0,0), &pos, D3DCOLOR_XRGB(255,255, 255));
    sprite->End();
    }[/PHP]

  2. #2
    Crash's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    JAville
    Posts
    2,881
    Reputation
    163
    Thanks
    3,291
    My Mood
    Sleepy
    D3DX stuff D/Cs now is what I've heard. =/

  3. #3
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    Quote Originally Posted by Sealionone View Post
    D3DX stuff D/Cs now is what I've heard. =/
    / for na, nexonfageu patched all gellins base but not hans211
    -Rest in peace leechers-

    Your PM box is 100% full.

  4. #4
    Crash's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    JAville
    Posts
    2,881
    Reputation
    163
    Thanks
    3,291
    My Mood
    Sleepy
    Quote Originally Posted by Zoom View Post


    / for na, nexonfageu patched all gellins base but not hans211
    I've got a menu hack that works fine for me but I'm not sure about other people. I don't have any of my testers online to see if it works or not so / if it works or not.

  5. #5
    zmansquared's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Kickin it at Microsoft
    Posts
    2,086
    Reputation
    36
    Thanks
    221
    My Mood
    Cheerful
    try something like this bro

    this->DrawImageF(pDevice, pSprite, pTexture, 5.0f, 5.0f , 0.0f, "C:\something.jpg");
    Need Help With Coding or Something??? MSN me
    zmansquared@hotmail.com


    I am the one and only Microsoft Fag!!!

    Quote:
    Originally Posted by Arhk
    All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
    ~


    Take this Pic everyone!



    next-

  6. #6
    whatup777's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    CA Source Code Section
    Posts
    4,025
    Reputation
    147
    Thanks
    351
    My Mood
    Dead
    As Sealionone said I think that will be found by hackshield. Even if it isnt it will lag alot.
    Quotes I live by.


    A foolish person learns from his mistakes, I wise person learns from others.
    Quote Originally Posted by AVGN View Post



    mhm

    i live in texas

    i was at the grocery store with my son. He saw a mexican guy, and he said "Look daddy! a mower man!"

    he's 4 yrs old

  7. #7
    zmansquared's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Kickin it at Microsoft
    Posts
    2,086
    Reputation
    36
    Thanks
    221
    My Mood
    Cheerful
    dont call it every frame
    Need Help With Coding or Something??? MSN me
    zmansquared@hotmail.com


    I am the one and only Microsoft Fag!!!

    Quote:
    Originally Posted by Arhk
    All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
    ~


    Take this Pic everyone!



    next-

  8. #8
    ac1d_buRn's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    CA Source Section
    Posts
    3,404
    Reputation
    157
    Thanks
    4,003
    My Mood
    Flirty
    Quote Originally Posted by zmansquared View Post
    dont call it every frame
    Exactly Right.

    I found a source you might like.
    Credits to Revo

    [php]
    LPDIRECT3DTEXTURE9 Texture_Interface;
    LPD3DXSPRITE Sprite_Interface;


    HRESULT WINAPI BeginScene_Detour(LPDIRECT3DDEVICE9 Device_Interface)
    {
    static BOOL Initiate = TRUE;

    if(Initiate == TRUE)
    {
    Initiate = FALSE;
    D3DXCreateTextureFromFile(Device_Interface, "*:\\file.ext", &Texture_Interface);
    D3DXCreateSprite(Device_Interface, &Sprite_Interface);
    }

    return BeginScene_Pointer(Device_Interface);
    }


    HRESULT WINAPI EndScene_Detour(LPDIRECT3DDEVICE9 Device_Interface)
    {
    D3DXVECTOR2 Position;

    Position.x = 150.0f;
    Position.y = 200.0f;

    Sprite_Interface->Begin();
    Sprite_Interface->Draw(Texture_Interface, NULL, NULL, NULL, NULL, &Position, 0xFFFFFFFF);
    Sprite_Interface->End();

    return EndScene_Pointer(Device_Interface);
    }

    There is also one that uses the image bytes, So there is no need for the actual file. You just need a img byte converter

    Ill create a tut on it.
    [/php]
    Last edited by ac1d_buRn; 07-13-2010 at 06:47 PM.

  9. The Following User Says Thank You to ac1d_buRn For This Useful Post:

    zmansquared (07-14-2010)

  10. #9
    coryster2100's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    394
    Reputation
    13
    Thanks
    1,175
    Wow Zman beat me to it but that method laggs like crazy

  11. #10
    ac1d_buRn's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    CA Source Section
    Posts
    3,404
    Reputation
    157
    Thanks
    4,003
    My Mood
    Flirty
    Quote Originally Posted by coryster2100 View Post
    Wow Zman beat me to it but that method laggs like crazy
    Only when you create it every frame
    Do it properly and it will be fine

  12. #11
    Fabolous's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    192.168.1.01
    Posts
    2,704
    Reputation
    261
    Thanks
    682
    My Mood
    Paranoid
    @Ac1D_BuRn, I saw that

    I tried and boom worked.

    <3 Sprites :P

Similar Threads

  1. WPE Pro Question...
    By OutZida in forum General Game Hacking
    Replies: 4
    Last Post: 08-08-2011, 01:02 AM
  2. [question]picture with music
    By dav96cool in forum Exploits
    Replies: 1
    Last Post: 10-06-2009, 02:41 PM
  3. Question|i have picture .how do i find..
    By almog6666 in forum Combat Arms Europe Hacks
    Replies: 2
    Last Post: 03-13-2009, 03:25 PM
  4. Photoshop Question
    By arunforce in forum Art & Graphic Design
    Replies: 6
    Last Post: 01-15-2006, 11:38 AM
  5. question
    By wardo1926 in forum WarRock - International Hacks
    Replies: 0
    Last Post: 12-30-2005, 07:36 PM