WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   Target arrow (https://www.wowinterface.com/forums/showthread.php?t=51847)

zork 02-05-15 10:27 AM

Target arrow
 
Just watched https://www.youtube.com/watch?v=LJQmwx4iqbk

I have no clue how many of the ui elments are done.

One of the features is the target arrow which I think is super cool. And I want to rebuild that. Semlar posted his sizer idea lately and that is really useful here aswell.

Basically if PLAYER_TARGET_CHANGED is fired and we have a target nameplate we need to wait for 1 frame. After that the target nameplate will be set to the correct alpha. We scan for the target nameplate and clear the sizer setpoints. After that we can disable the OnUpdate by hiding the timer frame.

The sizer frame has OnSizeChanged as an event. Thus once the nameplate moves it will let us know. Now we only need to calculate the position in relation to the screen center and have a texture position in the center of the screen that we rotate properly.

sirann 02-05-15 11:03 AM

Holy shit. Not sure if Iron Man hud or a wow ui. Call me Jon Snow, 'cause I know nothing anymore.

Banknorris 02-05-15 12:17 PM

Quote:

Originally Posted by zork (Post 306107)

I watched that video without using a welding mask and now I am blind.

Duugu 02-05-15 12:55 PM

I really would like to know how he'S doing those "plates" or "tooltips" or whatever it is:


I can't imagine a way to render that stuff in a perspectively correct way ... especially not if they are moving like in the video.

zork 02-05-15 01:30 PM

I sat down and wrote the addon for the target pointer.
http://www.wowinterface.com/download...etPointer.html

http://imgur.com/a/4fl4T

To bad I could not disable the OnUpdate completly. I forget about what happens when a nameplate gets off-screen. Another nameplate may take its place. >_<

Nevertheless. Works pretty nicely.

The rotation itself could be done with the WoW animation API I think. Thus I could ease the movement a bit more.

@Duugu
Me too. That 3D transformation lol.
He replied to my questions over at MMO. Maybe he will answer your questions aswell.
http://www.mmo-champion.com/threads/...1#post32115494

semlar 02-05-15 01:52 PM

I use targeting arrows with my own nameplate addon, but I try and connect all of the units that are targeting each other.

Each set of arrows is just one texture sized and rotated to connect the frames.

Pretty much stole the idea from NPA, just a different implementation.

As for SilverLion's interface, he did almost everything entirely in weak auras and swapping static images out for animations.

zork 02-05-15 06:15 PM

What is this NPA?

semlar 02-05-15 06:33 PM

NamePlateAdvance

zork 02-06-15 03:15 AM

@semlar
Btw have I mentioned that your video is quite amazing aswell? If you can extract some of the arrow code and post it I would be grateful. I want to take a look at it.

Tonyleila 02-06-15 05:37 AM

What is up with his player model. I never know it woud be possible to only show the model and not the texturs and even more important it dosen't move e.g. male trolls normaly always go up and down whole time, thats a problem with many 3D portrait addons.

zork 02-06-15 06:43 AM

His animation is selfmade out of textures. One texture per frame. He probably used some model viewer or sth like that to generate them.

Tonyleila 02-06-15 07:52 AM

Quote:

Originally Posted by zork (Post 306149)
His animation is selfmade out of textures. One texture per frame. He probably used some model viewer or sth like that to generate them.

So what you are saying its not a real 3D animation its just a row of pics that show the model from each side? Then how woud that look if the model dosen't fit your char? He said he is going to upload this as an UI.

Phanx 02-06-15 10:24 AM

Quote:

Originally Posted by Tonyleila (Post 306154)
So what you are saying its not a real 3D animation its just a row of pics that show the model from each side?

Yes, exactly.

Quote:

Originally Posted by Tonyleila (Post 306154)
Then how woud that look if the model dosen't fit your char? He said he is going to upload this as an UI.

I'd guess he'd either just take out the "model" entirely, or maybe provide some generic options to pick from, depending on how much work it is to create the graphics.

siweia 02-19-15 08:47 PM

He posted the ui at a blizz fan website, named NGA in China.
The main structure is working on weakauras, all the animations are created by this addon.

Here is the site: http://bbs.ngacn.cc/read.php?tid=7829347&_ff=200

You can google translate the site.:p


All times are GMT -6. The time now is 02:23 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI