What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Playing with game's camera: simple 3d overlay demo (augmented reality on WoW)

cowdude

Active Member
Joined
Feb 17, 2010
Messages
337
Reaction score
27
[Update]Playing with game's camera: simple 3d overlay demo (augmented reality on WoW)

Update! 10/23/2011
Seems the latest release of HB finally got camera properties... great! Here's a nice plugin to play with: a little showcase of this augmented reality stuff.

Screenshot:
avr_preview.webp
Green line: 20yard range around player, ground level
Red line: player->target (screen coordinates)
Blue line: path to reach target (meh, I found that example path a bit weird too)
Names and circles are part of the plugin
White terrain grid

Everything can be enabled/disabled from the plugin config panel. Just warning you about the terrain option, that's quite CPU intensive (1000 raycasts to find terrain height every pulse, better not try it on a 3 years old laptop).

It's using GDI rendering over a crappy transparent window, no anti aliasing support. This could surely change one day, who knows.

How to use it:
1. Download, extract and install the plugin. See attached files.
2. Launch HB, check that the plugin 'AVR - test' is enabled.
3. Start the bot (combat bot for ex.). You'll see a blue border around your WoW window when you put it on the foreground. That's all.
4. Go back to HB and open the 'AVR - test' plugin config panel. Play around with the buttons. Everyone loves clicking buttons. Here's your chance.
5. Switch back to WoW, enjoy.
Note: you don't need to close the plugin config panel to apply your settings.

Improvements, ideas, etc.
Feel free to post your suggestions in this thread. I surely will make a little 'in game' HB profile editor using these features, but I'm quite interested to know your thoughts and ideas too.

You can also drop a few bucks on my Paypal account (see link in signature) if a flood of thanks/this-is-amazing/lol-wtf-wut in size 7 is not enough... :)

-----------------------------------------------------------------------

Here are two screenshots of one of my new ideas: building an Augmented reality layer for WoW.

I'm sure most of you remember the addon named 'AVR' that allowed addons to draw 3D shapes over the world frame. You could for example draw circles around players while raiding to ensure nobody was standing near of anybody, or add a huge red circle over AOE effects (who said 'fire'?).

Thanks to Apoc, who provided me a way to get the game's camera data, I've been able to create a function that casts a WoWPoint (3D) into screen coordinates (2D).

Now add a nice way of drawing stuff over the screen, and you got augmented reality :)

I'm using a simple transparent form and GDI+ rendering to draw stuff over the game's window.

The first picture shows a dump of the ObjectManager's units: I'm just printing each unit's name over their locations. There's also a line between the player and its current target.

The 2nd one shows the output of HB's navigator algorithm, basically drawing the path to reach your current target.

fakenameplates.webp detour.webp
 

Attachments

Last edited:
yea,its funny since highvoltz showed me something like this a maybe a month or two ago, i said then and ill say now, if you could find a way of showing profiles and showing blackspots and do on the fly manipulation, then that would really be something.
 
Looks awesome Cowdude! i can see this becoming very useful...although im failing to see the funny part that codenameG can see...what have i missed?
 
as been said before, would love to use this for making profiles so blackspots will be easier to spot right on and add imidiatly!
 
Tell me if I'm wrong but are the hills to steep when they show no blocks/whitesquaresgridthingies?
It would appear that this is correct.

As others have asked, since you can get the HB projected path to target, can you take loaded profile information and project it on the screen?
And aren't blackspots 360 degree spheres? Or are they only Circles on ground level? Or are they Cylinders that run from all the way below ground to all the way into the air on the Z axis? I've always wondered these things... I would like to know how the Blackspots are understood by HB.
 
This allows you to display a 3d point over the game window, which means any kind of point. Can be your character location, target location, current path, and even profile data such as hotspots and blackspots, yes.

You could even basically hide the game window and draw a new one, even though that would be kind of useless.

About the terrain: you are roughly correct. No triangle drawn means it was not able to find the terrain height at that point. Either because it has multiple values (like there's a cave below) or simple because there is no nav mesh on that area.
 
Can you give a tut on how to? Or release your resources to do this... Having this to help make profiles would be amazing!
 
wow thats pretty cool. I'm looking forward to see what sort of cool stuff you can do with it.
 
Yup, thanks for the message. I'm not playing WoW these days, will create a play4free account to test and pack this plugin asap. :)
 
@cowdude something ive been wondering for a while is, how did you manage to draw that line in the second picture? im kinda wondering if it would be possible to use something like that for better finding directions to blink in.
 
@cowdude something ive been wondering for a while is, how did you manage to draw that line in the second picture? im kinda wondering if it would be possible to use something like that for better finding directions to blink in.

WoWPoint[] Navigator.FindPath(WoWPoint dest) (can't remember the exact name for now, but you get the idea)
 
Ding, updated. I've added a demo plugin in attachment on page 1.
 
So, reckon we could have an aggro radius marked on nearby mobs with this?
 
Back
Top