unknowncheats uc-forum.com ucdownloads ucdownloads.com

Go Back   UC-Tutorials - Multiplayer Game Hacking and Cheat Tutorials > Programming > Direct3D

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

Reply
 
Thread Tools Display Modes
  #1  
Old 12-24-2006, 06:19 AM
zero_tolerance zero_tolerance is offline
Senior Member
 
Join Date: Dec 2006
Posts: 289
Default Transparent overlays/objects

By RoverTurbo

Not drawing some objects like scope overlays, Sea and sky can be benefical.

Returning zero for these objects will give you that effect.

Code:
HRESULT APIENTRY IDirect3DDevice9::DrawIndexedPrimitive(D3DPRIMITIVETYPE Type, INT BaseVertexIndex, UINT MinIndex, UINT NumVertices, UINT startIndex, UINT PrimitiveCount)
{

  if(Object Here)
  
  return 0;

  return Device->DrawIndexedPrimitive(Type, BaseVertexIndex, MinIndex, NumVertices, startIndex, PrimitiveCount);

}
Credits: Directx documentation.
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
overlays or objects, transparent

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:16 AM.


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