Jump to content
  • Advertisement
Sign in to follow this  
bobbias

Drawing over top of a 3D game

This topic is 3602 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Alright, I'm thinking of making a simple ping notification program that is supposed to run on top of a game, and show me my ping to the game server as I'm playing. However, I have not been able to find any info on how to actually draw over top of a game. I've seen programs like FRAPS draw on top of a game (I've seen a few others do similar things as well), so I've been wondering how exactly to do this. I'm assuming that it is possible to hook the draw function and insert my own code, but I'm hoping that's not the only way, since I know jack all about hooking function calls.

Share this post


Link to post
Share on other sites
Advertisement
Thanks for the link, I'll check it out. As a quick question, would I be able to get this working in C#?

I haven't really touched C++ in ages, and don't have any of the other visual studio express suite installed except C#, lol.

Hopefully I can cook something up though, I'm getting sick and tired of not being able to set my games to show me my framerate, or my lag.

I'm sorta surprised that function hooking is discussed here though, since most programming places generally refuse to discuss that sort of thing for fear of helping people become hackers (since as far as I know, once you know how to hook one function, you can hook just about any one).

Share this post


Link to post
Share on other sites

It all depends on how you use it obviously, but as mentioned in that thread MS supports this since their own PIX tool reportedly does the exact same thing.

The core part of the hooking is probably impossible to do in C#, but once you get it to draw some text to the screen, you could set up some inter-process thingy to feed it text from a C# app. I'm afraid I'll have to leave you with that vague suggestion, since C++ isn't my cup of tea either, so hopefully someone else can weigh in on this.

Share this post


Link to post
Share on other sites
Well, hopefully I can figure something out, as I mentioned, my C++ is pretty rusty. The last languages I've worked in are Java and C#, and I know that C# is quite a bit different than C++ in many ways, despite being very heavily inspired by it :/

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!