Rendering over another game
Main Topics
Browse All TopicsCan anyone show me how to create a text overlay that will display over a full-screen directx capable game
Thanks in advance!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I've looked back around... I'm sure I've seen examples before. In some cases, people were putting replacement 'proxy' directx DLL in place of the real thing, and thus able to hook the Present call, and before passing along to the real directx they'd then make their own DX rendering calls.
From an old FRAPS readme:
>>>>
The first method is referred to as “API hooking”. Basically you want to obtain the address of the graphics function in memory, and patch this such that your code will get called whenever the game tries to use this function.
The other method is to write a “DLL wrapper”. Here you want to write your own DLL that exports the same functions as the graphics DLL. The idea is to rename the original DLL and put your DLL in its place. Then when your DLL is loaded, you proceed to load the original DLL and pass any function that is called through to it. Creating a DLL wrapper for DirectX is reasonably easy because there are only a few functions exported from the DLL. OpenGL however exports ALL of its API calls, which means that it can be very time consuming to build the stubs for all of the functions. If you want to pursue this method it may be easier to download and modify an existing OpenGL wrapper such as GLtrace.
<<<<
Some random stuff...
This site talks about win32 code hooking, various approaches:
http://help.madshi.net/mad
This is a GTA speedometer hack, that apparently uses DX hooking:
http://spookie.powerpill.c
This guy did a bunch of hooking stuff around FF, and talks about process of hooking APIs:
http://ffxi.archbell.com/i
A simplistic api hook example:
http://www.codeproject.com
A page with tons of hack/cheat methodologies, including ptrs to articles on directx/d3d hooking:
http://pc.nanobot2k.org/?a
... there's more. I started with googling "directx api hooking"...
-d
In case you want to check out the proxy dll method, look here: http://www.proxy.mikoweb.d
miko
Business Accounts
Answer for Membership
by: davebytesPosted on 2005-07-12 at 08:52:32ID: 14422643
Ummm. Is this a game you are writing yourself already? You just want to render some text at the end of each frame? Or are you trying to render something over a retail/existing game's rendering?