Page 1 of 3 123 LastLast
Results 1 to 15 of 38
  1. #1
    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

    [RELEASE] How To Draw Sprites

    Well i thought id create a tutorial on this, Since some people are asking. The code is NOT mine. Credits to pyroctain666 for the code and im not sure who made the program

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

    Define you bytes like this:
    [php]
    BYTE Menu[ ] = {output bytes here};
    [/php]

    In the globals, Put:
    [php]
    LPD3DXSPRITE Sprite;
    LPDIRECT3DTEXTURE9 MenuTexture;
    static BOOL Create = TRUE;
    [/php]

    Now, Go to your Endscene or Present and create your texture and sprite like so:
    [php]
    if(Create){
    D3DXCreateTextureFromFileInMemory(Device,&Menu,siz eof(Menu),&MenuTexture);
    D3DXCreateSprite(pDevice,&Sprite);
    Create = FALSE;
    }
    [/php]

    Now you need to draw the sprite (In Endscene or Present again)
    [php]
    D3DXVECTOR3 POS;
    POS.x = 15;
    POS.y = 15;
    POS.z = 0;

    Sprite->Begin();
    Sprite->Draw(MenuTexture,NULL,NULL,&POS,0xFFFFFFFF);
    Sprite->End();
    [/php]

    If you would like the image transperent, Replace
    [php]
    Sprite->Begin();
    [/php]

    With
    [php]
    Sprite->Begin(D3DXSPRITE_ALPLHABLEND);
    [/php]

    I havent tested it yet, But it should work. I will tesst once CA finishes patching.

    acid_buRn

    Ohh and the virus scan:
    VirusTotal - Free Online Virus and Malware Scan - Result

  2. The Following 20 Users Say Thank You to ac1d_buRn For This Useful Post:

    -Dimensions- (07-28-2010),aboo67 (01-08-2013),CAFlames (07-14-2010),CoderNever (07-13-2010),dllbase (10-11-2010),InterXa (01-28-2011),ken53406 (09-30-2010),koolwrench (10-11-2010),MEkhi2 (12-01-2010),NOOB (10-11-2010),Otaviomorais (08-28-2012),peter4d5 (05-13-2013),Ryuzaki™ (09-14-2012),UKnownError (08-27-2010),whatup777 (07-14-2010),whatup777+ (10-11-2010),whit (07-13-2010),yarulzwwe (08-25-2010),~GodLike~ (07-13-2010),~Silver~ (04-26-2012)

  3. #2
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Thanks mate..
    So it will Make Any pic you want transparent?

  4. #3
    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 whit View Post
    Thanks mate..
    So it will Make Any pic you want transparent?
    yes it will make the image you put in there transparent

  5. #4
    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
    You need 2 virusscans.
    and a screenshot
    -Rest in peace leechers-

    Your PM box is 100% full.

  6. #5
    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 Zoom View Post
    You need 2 virusscans.
    and a screenshot
    A SS of what? The program?

  7. #6
    CAFlames's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Where ever my imagination takes me
    Posts
    3,006
    Reputation
    202
    Thanks
    2,944
    My Mood
    Twisted
    Quote Originally Posted by ac1d_buRn View Post


    A SS of what? The program?
    The Menu?.. proof it works?
    Probably the Program...

    Ill try it out and get you an SS.. if you want.

    but what bytes do we put in

    Current Works:
    ---Horror Game





    [IMG]https://i645.photobucke*****m/albums/uu180/drgnforce9/Siggys/signature3.jpg[/IMG]
    Special thanks to drgnforce9 for my sig picture

    Quote Originally Posted by m_t_h View Post

    CAflames is one epic coder.

    Rep and thanks him.. or you're perma banned.

  8. #7
    Mordecai's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    0
    My Mood
    Cheerful
    Quote Originally Posted by ac1d_buRn View Post
    Well i thought id create a tutorial on this, Since some people are asking. The code is NOT mine. Credits to pyroctain666 for the code and im not sure who made the program

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

    Define you bytes like this:
    [php]
    BYTE Menu[ ] = {output bytes here};
    [/php]

    In the globals, Put:
    [php]
    LPD3DXSPRITE Sprite;
    LPDIRECT3DTEXTURE9 MenuTexture;
    static BOOL Create = TRUE;
    [/php]

    Now, Go to your Endscene or Present and create your texture and sprite like so:
    [php]
    if(Create){
    D3DXCreateTextureFromFileInMemory(Device,&Menu,siz eof(Menu),&MenuTexture);
    D3DXCreateSprite(pDevice,&Sprite);
    Create = FALSE;
    }
    [/php]

    Now you need to draw the sprite (In Endscene or Present again)
    [php]
    D3DXVECTOR3 POS;
    POS.x = 15;
    POS.y = 15;
    POS.z = 0;

    Sprite->Begin();
    Sprite->Draw(MenuTexture,NULL,NULL,&POS,0xFFFFFFFF);
    Sprite->End();
    [/php]

    If you would like the image transperent, Replace
    [php]
    Sprite->Begin();
    [/php]

    With
    [php]
    Sprite->Begin(D3DXSPRITE_ALPLHABLEND);
    [/php]

    I havent tested it yet, But it should work. I will tesst once CA finishes patching.

    acid_buRn

    Ohh and the virus scan:
    VirusTotal - Free Online Virus and Malware Scan - Result

    you got the file2bytearray from some base on other forum xD..

    ONTOPIC: Nice, will be helpful to the choobs.

  9. #8
    CAFlames's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Where ever my imagination takes me
    Posts
    3,006
    Reputation
    202
    Thanks
    2,944
    My Mood
    Twisted
    please get the ss and other vscan.. i ned this

    Current Works:
    ---Horror Game





    [IMG]https://i645.photobucke*****m/albums/uu180/drgnforce9/Siggys/signature3.jpg[/IMG]
    Special thanks to drgnforce9 for my sig picture

    Quote Originally Posted by m_t_h View Post

    CAflames is one epic coder.

    Rep and thanks him.. or you're perma banned.

  10. #9
    whatup777's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    CA Source Code Section
    Posts
    4,025
    Reputation
    147
    Thanks
    351
    My Mood
    Dead
    So do I
    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

  11. #10
    Ali's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Qc, Canada
    Posts
    11,450
    Reputation
    342
    Thanks
    3,518
    My Mood
    Cool
    Get a virscan.org scan please or whatever ...

  12. #11
    Bombsaway707's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Gym
    Posts
    8,799
    Reputation
    791
    Thanks
    4,004
    My Mood
    Amused
    /approved .

  13. #12
    whatup777's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    CA Source Code Section
    Posts
    4,025
    Reputation
    147
    Thanks
    351
    My Mood
    Dead
    Quote Originally Posted by Bombsaway707 View Post
    /approved .
    He doesnt have Screenshot.
    Could you dissaprove it?
    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

  14. #13
    ^...,^'s Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    New Zealand,Auckland
    Posts
    698
    Reputation
    4
    Thanks
    90
    My Mood
    Lonely
    Quote Originally Posted by whatup777 View Post
    He doesnt have Screenshot.
    Could you dissaprove it?
    ummm he dose? i see it loud and clear like ss is ment to be?

  15. #14
    whatup777's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    CA Source Code Section
    Posts
    4,025
    Reputation
    147
    Thanks
    351
    My Mood
    Dead
    I dont see any screenshot but now I need a sprite to hook.

    Does anyone wanna photoshop me a sprite.
    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

  16. #15
    UnOwN CoD3R's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Elmo's World!
    Posts
    296
    Reputation
    14
    Thanks
    371
    Nice job acid... looks nice (:

Page 1 of 3 123 LastLast

Similar Threads

  1. [Release]How to make Windows Genuine
    By SunBeam in forum General Hacking
    Replies: 2
    Last Post: 12-21-2008, 12:15 PM
  2. [Release] How to make a favicon.
    By KyleForrest in forum General
    Replies: 0
    Last Post: 10-24-2008, 11:00 AM
  3. [Release] How to make a video in CA
    By duyxngoc94 in forum Combat Arms Hacks & Cheats
    Replies: 12
    Last Post: 09-08-2008, 09:57 PM
  4. [Release]How To Do Cap The Flag Glitch
    By KakashiRock in forum Combat Arms Hacks & Cheats
    Replies: 13
    Last Post: 08-05-2008, 04:42 AM
  5. How to draw a car in MS
    By AN1MAL in forum Entertainment
    Replies: 9
    Last Post: 12-18-2006, 05:38 PM