unknowncheats uc-forum.com ucdownloads ucdownloads.com

Go Back   UC-Tutorials - Multiplayer Game Hacking and Cheat Tutorials > First-Person Shooters > Other FPS Games > Operation 7

- Sponsored Advertisement -
http://www.myfpscheats.com/


Reply
 
Thread Tools Display Modes
  #1  
Old 09-01-2010, 04:24 AM
Kiwinz Kiwinz is offline
Super Moderator
 
Join Date: Sep 2010
Posts: 3
Default [Source Code] Non-Buggy Wireframe

Credits: Tate

Original Thread

Some of you may have tried to make wireframe for Op7, with no avail. Here's how you SHOULD be doing it, if your wireframe is being whack. (Assuming m_pD3Ddev is your device. It couldnt anything, such as pdevice) /*Under your includes*/
PHP Code:
LPDIRECT3DTEXTURE9 texCyan
/*In CD3DManager::Initialize()*/
PHP Code:
GenerateTexture(m_pD3Ddev, &texCyanD3DCOLOR_ARGB(255,0,255,255)); 
/*In DrawIndexedPrimitive*/
PHP Code:
if(m_Stride == 20 && NumVertices == 1766) { m_pD3Ddev->SetRenderStateD3DRS_SRCBLENDD3DBLEND_ONE ); m_pD3Ddev->SetTexture(0texCyan); m_pD3Ddev->SetRenderStateD3DRS_SRCBLENDD3DBLEND_ONE ); m_pD3Ddev->SetRenderState(D3DRS_FILLMODED3DFILL_WIREFRAME); m_pD3Ddev->SetRenderStateD3DRS_SRCBLENDD3DBLEND_ONE ); } else { m_pD3Ddev->SetRenderState(D3DRS_FILLMODED3DFILL_SOLID); } 
Your wireframe should now look like this:


You can change the color of your wireframe by modifying the ARGB value, here:
PHP Code:
GenerateTexture(m_pD3Ddev, &texCyanD3DCOLOR_ARGB(255,0,255,255)) 
Reply With Quote
Reply

  • Submit Thread to Digg
  • Submit Thread to del.icio.us
  • Submit Thread to StumbleUpon
  • Submit Thread to Google
  • Submit Thread to Facebook
  • Submit Thread to My Yahoo!
  • Submit Thread to MySpace
  • Submit Thread to Twitter
  • Submit Thread to Reddit

Tags
code, nonbuggy, source, wireframe

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 02:37 PM.