Go Back   UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats > Anti-Cheat Software & Programming > Direct3D

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

Welcome to the UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats.
You have to register before you can post and see and access any of the advanced forum features, please click the register link to proceed to the registration form. To start viewing threads or posts, select a forum that you want to visit from the selection below.
Direct3D
hacking programming reversing
You are Unregistered, please register to gain Full access.    
Reply
 
Thread Tools

GenerateShader fix for ati
Old 05-13-2010, 07:24 AM   #1
Donator

raiders's Avatar

Join Date: Nov 2007
Posts: 1,494
Reputation: 72055
Rep Power: 802
raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!
Recognitions:
Members who have contributed financial support towards UnKnoWnCheaTs. Donation (5)
The UC Member of the Month award is a prestigious award given to a single community member on a monthly basis. Based on a vote by UnKnoWnCheaTs staff, the award is given to the forum member that has shown exemplary achievement and potential in the UnKnoWnCheaTs community, and has shown great commitment to upholding the principles upon which UnKnoWnCheaTs stands for. A member who has been awarded the Member of the Month award has been distinguished as an asset to the UnKnoWnCheaTs community. Member of the Month
Points: 44,627, Level: 32
Points: 44,627, Level: 32 Points: 44,627, Level: 32 Points: 44,627, Level: 32
Activity: 20.0%
Activity: 20.0% Activity: 20.0% Activity: 20.0%
Last Achievements
GenerateShader fix for ati

I was having issues with shaders working on ati cards. Using pixel shader 3.0 fixed the issue.

Quote:
HRESULT GenerateShader(IDirect3DDevice9 *pD3Ddev, IDirect3DPixelShader9 **pShader, float r, float g, float b )
{
char szShader[ 256 ];
ID3DXBuffer *pShaderBuf = NULL;
sprintf( szShader, "ps_3_0\n"
"def c0, %f, %f, %f, %f\n
"mov oC0,c0", r, g, b, 1.0f );
D3DXAssembleShader( szShader, sizeof( szShader ), NULL, NULL, 0, &pShaderBuf, NULL );
if( FAILED( pD3Ddev->CreatePixelShader((const DWORD*)pShaderBuf->GetBufferPointer(), pShader)) )return E_FAIL;
return S_OK;
}
I was having the issue in bad company 2, perhaps it has to do with a version conflict with the game itself, but ps1.1 worked on my nvidia card.

If I am missing something as far as pixel shader 1.1 working with ati cards, do point it out to me.

Credits?
GD is down as I post this, so this is a guess... original function by s0beit?
MSDN

Enjoy,
Raiders
__________________
[22:22] monster64: yo dawg i heard u like chams so i put chams in your chams so you can see through shit while you see through shit

[09:07] Tally: grab your ak47 and put on your bomb jacket.... its gonna be a long morning

09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
raiders is offline

Reply With Quote


Old 05-13-2010, 11:48 AM   #2
Supreme G0d

d1gitalSLR's Avatar

Join Date: Sep 2008
Posts: 379
Reputation: 3457
Rep Power: 83
d1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating community
Points: 6,148, Level: 8
Points: 6,148, Level: 8 Points: 6,148, Level: 8 Points: 6,148, Level: 8
Activity: 3.5%
Activity: 3.5% Activity: 3.5% Activity: 3.5%
Last Achievements
Is there a way to make it do PS 2.0? I tried changing ps_2_0 and then my game crashed =/ But, the games I use chams are quite old. So they don't support 3.0.

Also Thanks for this, will work flawlessly with my new BC2Pub
__________________
I'm no pro hacker. But when I say stuff I pretty much know what I am talking about. So just chill. If you need some help just ask.

-Unknown-Cheats-
d1gitalSLR is online now

Reply With Quote

Old 05-13-2010, 03:08 PM   #3
Donator

raiders's Avatar

Threadstarter
Join Date: Nov 2007
Posts: 1,494
Reputation: 72055
Rep Power: 802
raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!
Recognitions:
Members who have contributed financial support towards UnKnoWnCheaTs. Donation (5)
The UC Member of the Month award is a prestigious award given to a single community member on a monthly basis. Based on a vote by UnKnoWnCheaTs staff, the award is given to the forum member that has shown exemplary achievement and potential in the UnKnoWnCheaTs community, and has shown great commitment to upholding the principles upon which UnKnoWnCheaTs stands for. A member who has been awarded the Member of the Month award has been distinguished as an asset to the UnKnoWnCheaTs community. Member of the Month
Points: 44,627, Level: 32
Points: 44,627, Level: 32 Points: 44,627, Level: 32 Points: 44,627, Level: 32
Activity: 20.0%
Activity: 20.0% Activity: 20.0% Activity: 20.0%
Last Achievements
Using the same code with 2.0 instead of 3.0 it worked on my nvidia card in bc2.

Check out the pixel shader page on wiki for a dx version - ps version chart.

I really wanna know why ps 1.1 doesn't work for ati cards... Hell, this issue dates back to my fc2 pub chams >.>
__________________
[22:22] monster64: yo dawg i heard u like chams so i put chams in your chams so you can see through shit while you see through shit

[09:07] Tally: grab your ak47 and put on your bomb jacket.... its gonna be a long morning

09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
raiders is offline

Reply With Quote

Old 05-13-2010, 03:25 PM   #4
The 0n3

KN4CK3R's Avatar

Join Date: Jun 2008
Posts: 414
Reputation: 20685
Rep Power: 259
KN4CK3R has reputation that takes up 2GB of server space!KN4CK3R has reputation that takes up 2GB of server space!KN4CK3R has reputation that takes up 2GB of server space!KN4CK3R has reputation that takes up 2GB of server space!KN4CK3R has reputation that takes up 2GB of server space!KN4CK3R has reputation that takes up 2GB of server space!KN4CK3R has reputation that takes up 2GB of server space!KN4CK3R has reputation that takes up 2GB of server space!KN4CK3R has reputation that takes up 2GB of server space!KN4CK3R has reputation that takes up 2GB of server space!KN4CK3R has reputation that takes up 2GB of server space!
Points: 14,588, Level: 15
Points: 14,588, Level: 15 Points: 14,588, Level: 15 Points: 14,588, Level: 15
Activity: 36.8%
Activity: 36.8% Activity: 36.8% Activity: 36.8%
Last Achievements
but you need to know that most of the users can't use PS3.0 because they don't have the right hardware.

greetz KN4CK3R
__________________
when 1337 isn't enough
KN4CK3R is online now

Reply With Quote

Old 05-13-2010, 04:10 PM   #5
Donator

raiders's Avatar

Threadstarter
Join Date: Nov 2007
Posts: 1,494
Reputation: 72055
Rep Power: 802
raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!
Recognitions:
Members who have contributed financial support towards UnKnoWnCheaTs. Donation (5)
The UC Member of the Month award is a prestigious award given to a single community member on a monthly basis. Based on a vote by UnKnoWnCheaTs staff, the award is given to the forum member that has shown exemplary achievement and potential in the UnKnoWnCheaTs community, and has shown great commitment to upholding the principles upon which UnKnoWnCheaTs stands for. A member who has been awarded the Member of the Month award has been distinguished as an asset to the UnKnoWnCheaTs community. Member of the Month
Points: 44,627, Level: 32
Points: 44,627, Level: 32 Points: 44,627, Level: 32 Points: 44,627, Level: 32
Activity: 20.0%
Activity: 20.0% Activity: 20.0% Activity: 20.0%
Last Achievements
Quote:
Originally Posted by KN4CK3R View Post
but you need to know that most of the users can't use PS3.0 because they don't have the right hardware.

greetz KN4CK3R
According to wikipedia if your card supports directx 9.0c you support shader model 3.0.
__________________
[22:22] monster64: yo dawg i heard u like chams so i put chams in your chams so you can see through shit while you see through shit

[09:07] Tally: grab your ak47 and put on your bomb jacket.... its gonna be a long morning

09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
raiders is offline

Reply With Quote

Old 05-14-2010, 12:53 AM   #6
Affiliate VIP

zoomgod's Avatar

Join Date: Aug 2007
Posts: 2,491
Reputation: 73953
Rep Power: 843
zoomgod has a huge epeen!zoomgod has a huge epeen!zoomgod has a huge epeen!zoomgod has a huge epeen!zoomgod has a huge epeen!zoomgod has a huge epeen!zoomgod has a huge epeen!zoomgod has a huge epeen!zoomgod has a huge epeen!zoomgod has a huge epeen!zoomgod has a huge epeen!
Recognitions:
Members who have contributed financial support towards UnKnoWnCheaTs. Donation (2)
The UC Member of the Month award is a prestigious award given to a single community member on a monthly basis. Based on a vote by UnKnoWnCheaTs staff, the award is given to the forum member that has shown exemplary achievement and potential in the UnKnoWnCheaTs community, and has shown great commitment to upholding the principles upon which UnKnoWnCheaTs stands for. A member who has been awarded the Member of the Month award has been distinguished as an asset to the UnKnoWnCheaTs community. Member of the Month
Points: 46,850, Level: 32
Points: 46,850, Level: 32 Points: 46,850, Level: 32 Points: 46,850, Level: 32
Activity: 43.5%
Activity: 43.5% Activity: 43.5% Activity: 43.5%
Last Achievements
I tried this a while back, 2 diff Nvidia cards gave different results, my GTX285 crashed the PC when trying to use 3.0 but didn't go any farther to see why. I don't think 9.0c is the only requirement since there is hardware in use though.
__________________
I'm like a virus, you can delete me but I am never really gone.
Links die, searching does not. (Fravia : searchlores.org)
Solving problems requires effort not a college degree.
zoomgod is offline

Reply With Quote

Old 05-14-2010, 01:04 AM   #7
Donator

raiders's Avatar

Threadstarter
Join Date: Nov 2007
Posts: 1,494
Reputation: 72055
Rep Power: 802
raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!
Recognitions:
Members who have contributed financial support towards UnKnoWnCheaTs. Donation (5)
The UC Member of the Month award is a prestigious award given to a single community member on a monthly basis. Based on a vote by UnKnoWnCheaTs staff, the award is given to the forum member that has shown exemplary achievement and potential in the UnKnoWnCheaTs community, and has shown great commitment to upholding the principles upon which UnKnoWnCheaTs stands for. A member who has been awarded the Member of the Month award has been distinguished as an asset to the UnKnoWnCheaTs community. Member of the Month
Points: 44,627, Level: 32
Points: 44,627, Level: 32 Points: 44,627, Level: 32 Points: 44,627, Level: 32
Activity: 20.0%
Activity: 20.0% Activity: 20.0% Activity: 20.0%
Last Achievements
Quote:
Originally Posted by zoomgod View Post
I tried this a while back, 2 diff Nvidia cards gave different results, my GTX285 crashed the PC when trying to use 3.0 but didn't go any farther to see why. I don't think 9.0c is the only requirement since there is hardware in use though.
From what I can tell, if a card supports directx 9.0c it should support shader model 3.0. Wiki lists models that are supported, something like GeForce 6 series and up and radeon x1300 and up.

You may be right though, since apparently ati doesn't support shader model 1.1...

Raiders
__________________
[22:22] monster64: yo dawg i heard u like chams so i put chams in your chams so you can see through shit while you see through shit

[09:07] Tally: grab your ak47 and put on your bomb jacket.... its gonna be a long morning

09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
raiders is offline

Reply With Quote

Old 05-14-2010, 02:06 PM   #8
Affiliate VIP

zoomgod's Avatar

Join Date: Aug 2007
Posts: 2,491
Reputation: 73953
Rep Power: 843
zoomgod has a huge epeen!zoomgod has a huge epeen!zoomgod has a huge epeen!zoomgod has a huge epeen!zoomgod has a huge epeen!zoomgod has a huge epeen!zoomgod has a huge epeen!zoomgod has a huge epeen!zoomgod has a huge epeen!zoomgod has a huge epeen!zoomgod has a huge epeen!
Recognitions:
Members who have contributed financial support towards UnKnoWnCheaTs. Donation (2)
The UC Member of the Month award is a prestigious award given to a single community member on a monthly basis. Based on a vote by UnKnoWnCheaTs staff, the award is given to the forum member that has shown exemplary achievement and potential in the UnKnoWnCheaTs community, and has shown great commitment to upholding the principles upon which UnKnoWnCheaTs stands for. A member who has been awarded the Member of the Month award has been distinguished as an asset to the UnKnoWnCheaTs community. Member of the Month
Points: 46,850, Level: 32
Points: 46,850, Level: 32 Points: 46,850, Level: 32 Points: 46,850, Level: 32
Activity: 43.5%
Activity: 43.5% Activity: 43.5% Activity: 43.5%
Last Achievements
You could provide a shader version option via menu, defaulted to 1.1
__________________
I'm like a virus, you can delete me but I am never really gone.
Links die, searching does not. (Fravia : searchlores.org)
Solving problems requires effort not a college degree.
zoomgod is offline

Reply With Quote

Old 05-14-2010, 06:44 PM   #9

Alexak92's Avatar

Join Date: Jan 2009
Location: Mother Russia
Posts: 617
Reputation: 29959
Rep Power: 349
Alexak92 has reputation that takes up 2GB of server space!Alexak92 has reputation that takes up 2GB of server space!Alexak92 has reputation that takes up 2GB of server space!Alexak92 has reputation that takes up 2GB of server space!Alexak92 has reputation that takes up 2GB of server space!Alexak92 has reputation that takes up 2GB of server space!Alexak92 has reputation that takes up 2GB of server space!Alexak92 has reputation that takes up 2GB of server space!Alexak92 has reputation that takes up 2GB of server space!Alexak92 has reputation that takes up 2GB of server space!Alexak92 has reputation that takes up 2GB of server space!
Points: 20,630, Level: 19
Points: 20,630, Level: 19 Points: 20,630, Level: 19 Points: 20,630, Level: 19
Activity: 3.5%
Activity: 3.5% Activity: 3.5% Activity: 3.5%
Last Achievements
I Own An Ati Hd 4850 When Using Shader After A while They Disappear And The Game Crashes.

So TryingOut 3.0 And I Got A Problem.

It Says This Function Does Not take six Arguments.

PHP Code:
GenerateShader(pDevice, &shaderRed1.00.0f0.0ffalse); 
Whats The 3.0 Syntax For Setting Colors?
__________________
Alexak92 is online now

Reply With Quote

Old 11-03-2010, 07:02 PM   #10
n00bie

mecachapeau's Avatar

Join Date: Nov 2010
Posts: 2
Reputation: 10
Rep Power: 16
mecachapeau has made posts that are generally average in quality
Hi all,

Can someone tell me where i'm supposed to put this code please.(sorry i'm a noob)
mecachapeau is offline

Reply With Quote

Old 11-03-2010, 08:07 PM   #11
*_*

HOOAH07's Avatar

Join Date: Apr 2008
Location: H.M.P
Posts: 5,438
Reputation: 92853
Rep Power: 1083
HOOAH07 has a huge epeen!HOOAH07 has a huge epeen!HOOAH07 has a huge epeen!HOOAH07 has a huge epeen!HOOAH07 has a huge epeen!HOOAH07 has a huge epeen!HOOAH07 has a huge epeen!HOOAH07 has a huge epeen!HOOAH07 has a huge epeen!HOOAH07 has a huge epeen!HOOAH07 has a huge epeen!
Recognitions:
The UC Member of the Month award is a prestigious award given to a single community member on a monthly basis. Based on a vote by UnKnoWnCheaTs staff, the award is given to the forum member that has shown exemplary achievement and potential in the UnKnoWnCheaTs community, and has shown great commitment to upholding the principles upon which UnKnoWnCheaTs stands for. A member who has been awarded the Member of the Month award has been distinguished as an asset to the UnKnoWnCheaTs community. Member of the Month
Points: 68,717, Level: 38
Points: 68,717, Level: 38 Points: 68,717, Level: 38 Points: 68,717, Level: 38
Activity: 66.7%
Activity: 66.7% Activity: 66.7% Activity: 66.7%
Last Achievements
Award-Showcase
you would use this in your D3D cheat.
if your unsure you would have to learn some C++ at the least
__________________
┐(_)

°º¤ø„¸¨°º¤ø„¸¸„ø¤º°¨¸„ø¤º°¨

¨°º¤ø„¸ MONKEY „ø¤º°¨

„ø¤º°¨ FOREVER `°º¤ø...
xTc charging me up like a battery, Like 1000 volts rushing through my body
HOOAH07 is online now

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
ati, createshader, fix, generateshader, users
Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT +1. The time now is 10:11 AM.