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

Shape Drawing Contest
Old 07-20-2010, 04:51 PM   #1
SEGnosis
Guest

Posts: n/a
Shape Drawing Contest

Objective
Create a function that will draw a shape in Direct3D v.9

Rules
  • Must have 500000 sides
  • Must have a size of 50 pixels width and height
  • Source must be provided
  • No changes allowed once source is provided
  • Execution time will be called directly before function calling, and calculated right after
PHP Code:
DWORD dwTime GetTickCount()
MyFunction();
dwTime = ( GetTickCount() - dwTime ); 
  • Contest is open to any user
  • When posting source, post a single self sufficient header file.
  • Also post execution time with post.
  • Any editing of released source will end in a dishonorable disqualification. ( so make sure not to edit your post )
  • Language: C/C++
  • OS: Windows xp, vista, or 7
  • Submissions are only open until 5pm Central time USA 7/21/2010
  • The Base This base is pretty basic and is required
  • The test environment will be the one created by CME App ( use on default size )
  • The shape calculation must be within the calling function.
  • No call to other user made functions will be allowed ( only the 1 function you made for calculating and drawing )
  • Drawing variables and calls must only be created/used within the calling function unless the variable requires releasing OnLostDevice()
  • MessageBox() call with results of calculation must be immediately after time calculation
  • The winning result will be the average of 5 accumulated runs.
  • All Points MUST be set on every call
  • All parameters must be passed into function, no constant position.
PHP Code:
// Line Var can be global
void MyFunction()
{
// Line creating function must be in here

// Reserved for my source

Last edited by SEGnosis; 07-21-2010 at 12:32 AM.

Reply With Quote


Old 07-20-2010, 05:14 PM   #2
Level 3

AlexSleyore's Avatar

Join Date: Sep 2007
Posts: 29
Reputation: 380
Rep Power: 57
AlexSleyore has learned Kazaa is not a third world countryAlexSleyore has learned Kazaa is not a third world countryAlexSleyore has learned Kazaa is not a third world countryAlexSleyore has learned Kazaa is not a third world country
Points: 3,334, Level: 5
Points: 3,334, Level: 5 Points: 3,334, Level: 5 Points: 3,334, Level: 5
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Last Achievements
can we make that 5pm tomorrow, cause i kinda actually had stuff to do.. and havn't slept in 2 days. also so all the cpp file should look like is a hook and the timer and function call or are we allowed to create our lines and whatnot before calling the drawing function? There will have to be a way to compare ways while drawing on the same computer - else whoever had the better computer would win even if they where not more efficient. (in case your wondering, im around 500 Milliseconds as of what i have right now, however again now 100% sure on how "Self contained" this header must be.. i mean its obvious not gonna hook Directx by itself.. perhaps we should agree on a starter kit as well or a function hook, else this will be a whos hook is more efficient as well (FYI im using a straight hook on EndScene created by DrUnKeN ChEeTaH, and considering hes in your credits im just taking a wild guess you might be as well)
AlexSleyore is offline

Reply With Quote

Old 07-20-2010, 05:37 PM   #3
SEGnosis
Guest

Posts: n/a
Quote:
can we make that 5pm tomorrow, cause i kinda actually had stuff to do.. and havn't slept in 2 days.
Sounds fine

Quote:
also so all the cpp file should look like is a hook and the timer and function call or are we allowed to create our lines and whatnot before calling the drawing function?
The base to use is now added into the rules.
You should only append a single header file when compiling and post the header file along with your finished compiled dll ( upload to ucdownloads )


Quote:
There will have to be a way to compare ways while drawing on the same computer - else whoever had the better computer would win even if they where not more efficient. (in case your wondering, im around 500 Milliseconds as of what i have right now.
Might find someone to test both files as well, until then this area is gray.



edit: also I hope you got a better method, cus so far when I tested your function against mine using GDI functions

Results in milliseconds:

Yours: 12854
Mine: 4602

Last edited by SEGnosis; 07-20-2010 at 06:14 PM.

Reply With Quote

Old 07-20-2010, 10:30 PM   #4
Retired Admin

learn_more's Avatar

Join Date: Sep 2006
Posts: 5,249
Reputation: 93628
Rep Power: 1106
learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!
Recognitions:
Members who have contributed financial support towards UnKnoWnCheaTs. Donation (2)
sieg heil Nazi
Points: 70,490, Level: 39
Points: 70,490, Level: 39 Points: 70,490, Level: 39 Points: 70,490, Level: 39
Activity: 24.7%
Activity: 24.7% Activity: 24.7% Activity: 24.7%
Last Achievements
Award-Showcase
base approved, no binary, no scanlog
__________________
learn_more is offline

Reply With Quote

Old 07-20-2010, 11:04 PM   #5
UC Contributor

Freaky123's Avatar

Join Date: Sep 2009
Location: Netherlands
Posts: 730
Reputation: 18059
Rep Power: 223
Freaky123 Will always be a legend at UCFreaky123 Will always be a legend at UCFreaky123 Will always be a legend at UCFreaky123 Will always be a legend at UCFreaky123 Will always be a legend at UCFreaky123 Will always be a legend at UCFreaky123 Will always be a legend at UCFreaky123 Will always be a legend at UCFreaky123 Will always be a legend at UCFreaky123 Will always be a legend at UCFreaky123 Will always be a legend at UC
Intresting contest
__________________
Proud to be a hacker!
Programming languages I know: PHP, Javascript, XHTML, Flash Actionscript, c++
Also good at: MYSQL/Oracle databases, ERD, SQL-injection and XSS
Games I hack: Battlefield Heroes, Face of Mankind and Call of Duty MW2
Freaky123 is offline

Reply With Quote

Old 07-20-2010, 11:40 PM   #6
Level 3

AlexSleyore's Avatar

Join Date: Sep 2007
Posts: 29
Reputation: 380
Rep Power: 57
AlexSleyore has learned Kazaa is not a third world countryAlexSleyore has learned Kazaa is not a third world countryAlexSleyore has learned Kazaa is not a third world countryAlexSleyore has learned Kazaa is not a third world country
Points: 3,334, Level: 5
Points: 3,334, Level: 5 Points: 3,334, Level: 5 Points: 3,334, Level: 5
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Last Achievements
Quote:
Originally Posted by SEGnosis View Post
Sounds fine

The base to use is now added into the rules.
You should only append a single header file when compiling and post the header file along with your finished compiled dll ( upload to ucdownloads )


Might find someone to test both files as well, until then this area is gray.



edit: also I hope you got a better method, cus so far when I tested your function against mine using GDI functions

Results in milliseconds:

Yours: 12854
Mine: 4602
fear not - i had updated my function before i made the 500 milisecond post.. but then again yours was 3500 seconds.. so yeah.. granted mines shouldnt of been 12000 unless you got a really piss slow computer..

we might need to extend the deadline.. base = "Invalid File ID"

are the points allowed to be defined before the Drawing function?

Last edited by AlexSleyore; 07-20-2010 at 11:57 PM.
AlexSleyore is offline

Reply With Quote

Old 07-21-2010, 12:16 AM   #7
SEGnosis
Guest

Posts: n/a
Quote:
Originally Posted by AlexSleyore View Post
fear not - i had updated my function before i made the 500 milisecond post.. but then again yours was 3500 seconds.. so yeah.. granted mines shouldnt of been 12000 unless you got a really piss slow computer..

we might need to extend the deadline.. base = "Invalid File ID"

are the points allowed to be defined before the Drawing function?
Nope, the only thing that is allowed global is the line variable, just because it needs to reset.
Everything else should be inside the single function.

Also by 500 miliseconds do you mean the function's execution time?
When called in a endscene detour.


edit:
also your function is pretty bad when I call it.
It takes 140 ms and the line is all scattered and choppy.
http://i27.tinypic.com/2naifm8.jpg



Mine takes 62 ms and is 100% smooth
http://i27.tinypic.com/2z8qbt4.png

Even if I doubled my time, its still more efficient than yours.

Quote:
Originally Posted by learn_more View Post
file got caught in the server move, i reuploaded it
ty



Count Down: 7

Last edited by SEGnosis; 07-21-2010 at 12:34 AM.

Reply With Quote

Old 07-21-2010, 12:28 AM   #8
Retired Admin

learn_more's Avatar

Join Date: Sep 2006
Posts: 5,249
Reputation: 93628
Rep Power: 1106
learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!
Recognitions:
Members who have contributed financial support towards UnKnoWnCheaTs. Donation (2)
sieg heil Nazi
Points: 70,490, Level: 39
Points: 70,490, Level: 39 Points: 70,490, Level: 39 Points: 70,490, Level: 39
Activity: 24.7%
Activity: 24.7% Activity: 24.7% Activity: 24.7%
Last Achievements
Award-Showcase
Quote:
Originally Posted by AlexSleyore View Post
we might need to extend the deadline.. base = "Invalid File ID"
file got caught in the server move, i reuploaded it
__________________
learn_more is offline

Reply With Quote

Old 07-21-2010, 12:40 AM   #9
Level 3

AlexSleyore's Avatar

Join Date: Sep 2007
Posts: 29
Reputation: 380
Rep Power: 57
AlexSleyore has learned Kazaa is not a third world countryAlexSleyore has learned Kazaa is not a third world countryAlexSleyore has learned Kazaa is not a third world countryAlexSleyore has learned Kazaa is not a third world country
Points: 3,334, Level: 5
Points: 3,334, Level: 5 Points: 3,334, Level: 5 Points: 3,334, Level: 5
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Last Achievements
actually my timer was based off of the average time to execute 20 frames..

the choppy ness seems to be caused by the line being to thick...

Last edited by AlexSleyore; 07-21-2010 at 12:48 AM.
AlexSleyore is offline

Reply With Quote

Old 07-21-2010, 01:26 AM   #10
SEGnosis
Guest

Posts: n/a
Yep yours goes to 78 - 94 with 1 width

Count Down: 6

Reply With Quote

Old 07-21-2010, 03:19 AM   #11
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
Seggy, use the high resolution timer in windows instead of GetTickCount().
__________________
[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 07-21-2010, 03:39 AM   #12
SEGnosis
Guest

Posts: n/a
Quote:
Originally Posted by raiders View Post
Seggy, use the high resolution timer in windows instead of GetTickCount().
okie

Using C++ | typedef struct { LARGE_ - Anonymous - FhnwXbAD - Pastebin.com this function

And implementing it like so
PHP Code:
CStop.startTimer();

MyFunction300300500000150 ); // x, y, sides, size
CStop.stopTimer();

    
CDraw.String1010CDraw.m_coRedFF_DEFAULT"Time: %f"CStop.getElapsedTime() ); 
I got the result of 0.075440 of a second

Alex test yours using this method as well

Reply With Quote

Old 07-24-2010, 01:13 AM   #13
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
Quote:
Originally Posted by SEGnosis View Post
okie

Using C++ | typedef struct { LARGE_ - Anonymous - FhnwXbAD - Pastebin.com this function

And implementing it like so
PHP Code:
CStop.startTimer();

MyFunction300300500000150 ); // x, y, sides, size
CStop.stopTimer();

    
CDraw.String1010CDraw.m_coRedFF_DEFAULT"Time: %f"CStop.getElapsedTime() ); 
I got the result of 0.075440 of a second

Alex test yours using this method as well
you may want to test all functions on the same machine as well if you want truly accurate results.
__________________
[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 07-24-2010, 03:03 AM   #14
SEGnosis
Guest

Posts: n/a
Yea, but this is pretty dead.
The fagit never returned.


USER RECEIVED AN INFRACTION FOR THIS POST


Reply With Quote Received Infraction
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
contest, drawing, segnosis, shape
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 09:58 AM.