Results 1 to 10 of 10
  1. #1
    dean-wingess's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Posts
    409
    Reputation
    29
    Thanks
    213
    My Mood
    Stressed

    [Snippet]Anti Overdrawn[Closed]

    Hi Gangas

    Whyz myz menuz nots gettingz overdraws?

    Thatzz whyzz:

    Serious Notice:
    Put this Code at the top of your Present or Endscene.

    Code:
    
    pDevice->SetRenderState( D3DRS_SRCBLEND, D3DBLEND_SRCALPHA );
    pDevice->SetRenderState( D3DRS_BLENDOP, D3DBLENDOP_ADD );
    pDevice->SetRenderState( D3DRS_DESTBLEND, D3DBLEND_INVSRCALPHA );
    pDevice->SetRenderState( D3DRS_ALPHATESTENABLE, FALSE );
    pDevice->SetRenderState( D3DRS_SEPARATEALPHABLENDENABLE, FALSE );
    pDevice->SetRenderState( D3DRS_STENCILENABLE, FALSE );
    pDevice->SetRenderState( D3DRS_ALPHABLENDENABLE, TRUE );
    pDevice->SetRenderState( D3DRS_VERTEXBLEND, D3DVBF_DISABLE );
    pDevice->SetRenderState( D3DRS_INDEXEDVERTEXBLENDENABLE, FALSE );
    pDevice->SetRenderState( D3DRS_COLORWRITEENABLE, D3DCOLORWRITEENABLE_ALPHA | D3DCOLORWRITEENABLE_BLUE |D3DCOLORWRITEENABLE_GREEN | D3DCOLORWRITEENABLE_RED );
    pDevice->SetRenderState( D3DRS_SHADEMODE, D3DSHADE_GOURAUD );
    pDevice->SetRenderState( D3DRS_FOGENABLE, FALSE );
    pDevice->SetRenderState( D3DRS_SPECULARENABLE, FALSE );
    pDevice->SetRenderState( D3DRS_LIGHTING, FALSE );
    pDevice->SetRenderState( D3DRS_CULLMODE, D3DCULL_NONE );
    pDevice->SetRenderState( D3DRS_ZWRITEENABLE, FALSE ); 
    pDevice->SetRenderState( D3DRS_ZENABLE, FALSE );
    pDevice->SetRenderState( D3DRS_FILLMODE, D3DFILL_SOLID );
    
    
    //Additional if you use remove the /* and */ and edit Sprites to the name of your sprite.
    /*
    Sprites->Begin( D3DXSPRITE_DONOTSAVESTATE | D3DXSPRITE_DONOTMODIFY_RENDERSTATE || D3DXSPRITE_ALPHABLEND  );
    */
    AJAJAJAJ!

    Creditz MicroSoftz DirectX 9z
    Last edited by dean-wingess; 01-15-2011 at 01:16 PM.
    [YOUTUBE]e89lqiE0wi0[/YOUTUBE]

  2. The Following 3 Users Say Thank You to dean-wingess For This Useful Post:

    ♪~ ᕕ(ᐛ)ᕗ (01-15-2011),Drake (01-15-2011),NOOB (02-01-2011)

  3. #2
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Old is old

  4. #3
    dean-wingess's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Posts
    409
    Reputation
    29
    Thanks
    213
    My Mood
    Stressed
    Quote Originally Posted by whit View Post
    Old is old
    wayne?

    The message you have entered is too short. Please lengthen your message to at least 10 characterz.
    [YOUTUBE]e89lqiE0wi0[/YOUTUBE]

  5. #4
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Quote Originally Posted by dean-wingess View Post
    wayne?

    The message you have entered is too short. Please lengthen your message to at least 10 characterz.
    What......

  6. #5
    dean-wingess's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Posts
    409
    Reputation
    29
    Thanks
    213
    My Mood
    Stressed
    Quote Originally Posted by whit View Post


    What......
    I mean "Who gives a fuck"
    if yar really backyard you'd know that ^^
    [YOUTUBE]e89lqiE0wi0[/YOUTUBE]

  7. #6
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Quote Originally Posted by dean-wingess View Post
    I mean "Who gives a fuck"
    if yar really backyard you'd know that ^^
    Someone is on thar period..

  8. #7
    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
    THIS IS STUPID.. What if i am doing 3D draws WITH LIGHT.. THEN WHAT.. ur setting renderstates that i might need to use. Do u really understand DirectX or are u just C&P codes.
    I just like programming, that is all.

    Current Stuff:

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

  9. #8
    GodHack2's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    644
    Reputation
    38
    Thanks
    762
    My Mood
    Amused
    Quote Originally Posted by topblast View Post
    THIS IS STUPID.. What if i am doing 3D draws WITH LIGHT.. THEN WHAT.. ur setting renderstates that i might need to use. Do u really understand DirectX or are u just C&P codes.
    turn everything off
    render menu
    turn everything back on
    not that hard O.o





    beat this bitches ^^^^^^^

    Current Stats : Bored :/


    Respect list :
    Crash !
    Gordon'
    Markoj

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

    Fell0w (01-16-2011)

  11. #9
    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
    Quote Originally Posted by GodHack2 View Post
    turn everything off
    render menu
    turn everything back on
    not that hard O.o
    Yea but do he dont kno what these mean.. he just copy them all and think it helps.
    I just like programming, that is all.

    Current Stuff:

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

  12. #10
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Spam thread closed.

    Just too much guys, Don't like it = don't use it, know it = ignore it, use it = thank him.

    Everything else, Pointless.

    @OP, place snippets in the snippets vault, no spam that way.



     


     


     



    The Most complete application MPGH will ever offer - 68%