Quantcast
Download
(16 Kb)
Download
Updated: 01-21-16 09:16 PM
Pictures
File Info
Compatibility:
Minor patch (6.2.3)
Updated:01-21-16 09:16 PM
Created:unknown
Downloads:82,338
Favorites:239
MD5:
Categories:Graphic UI Mods, Unit Mods

Adapt - Almost-Default Animated Portraits  Popular! (More than 5000 hits)

Version: 2.1.0
by: Gello [More]

This small addon animates the static portraits of (nearly) any UI.

When the UI goes to draw a static portrait, this addon instead draws an animated model to the dimensions of the intended portrait.

Adapt is meant to be configuration-free (especially if you use the default unit frames), but there are some options you can change in the Interface Options Panel.

__ FAQ __

Q: Will it work with my custom unit frames?
A: If your existing unit frames are static portraits and not models already, yes it should. The universal approach this addon takes will attempt to convert any 2d portrait texture into a 3d model (if it's bigger than 30 pixels). However, if Adapt already came with the unit frame addon or UI compilation you use, you may need to get an updated version of that addon/compilation if it made any tweaks to portraits/Adapt.

Q: It's not working or there's a bug.
A: I'd love to hear about it in the comments. Please mention what Unit Frame addon or UI compilation you use.

Q: I use circular unit frames (like default), but when I look closely the model cut off as a square! Can the model be fit into a true circle?
A: Sadly, it can't. Addons have no genuine way to mask models. For circular unit frames the model is shrunk to fit within the circle.

Q: What's an "anonymous portrait"?
A: When this addon was first written in 2006, practically everyone named all their textures(portraits). Nowadays it's more common for textures to go unnamed as a courtesy to the UI ecosystem. For anonymous portraits you can only turn them all on or off, unlike named portraits which you can selectively disable.

Q: I want to disable my default focus frame from animating, but I don't see it in the options list.
A: The list in options is only of portraits it's encountered in that session (and those already disabled). Adapt has no awareness of what frames it will be asked to draw until it encounters them. So in this case you can /focus yourself and then when you go back into options the focus frame should be listed so you can disable it.

01/21/2016 version 2.1.0
- Rewrote options panel.
- Restructured settings (some with non-standard settings may need to set them back).
- Added new option "With Overlay Mask" to add a circular texture over models to soften the corners and make them more round.
- Added new option "Smaller Portrait" to bring round portraits in even further.
- "Torso Portrait" mode reworked: model turned to "default rotation" and zoomed in just a bit for a more natural view.
- "Full Model" mode zoomed in a bit.
- All animations now (theoretically) use a standing animation without idle animations (such as undead going off camera).
- Fixed camera issue when changing the UI scale or display size.

2.0.17 01/15/16 brought corners in slightly for "circle" portraits
2.0.16 06/23/15 toc update for 6.2 patch
2.0.15 02/24/15 toc update for 6.1 patch
2.0.14 10/30/14 fix for frames being removed from blacklist staying on blacklist
2.0.13 10/29/14 fix for achievement comparison portrait
2.0.12 10/14/14 toc update for 6.0 patch
2.0.11 4/9/14 torso portrait option
2.0.10 10/27/13 fix for blacklisted portraits belonging to an addon that later gets disabled
2.0.9 09/11/13 toc update for 5.4 patch
2.0.8 05/21/13 toc update for 5.3 patch
2.0.7 04/04/13 added blacklist cache, removed debug code
2.0.6 03/30/13 rewrite
- portraits indexed by the texture itself, not the texture name
- instead of a frame with back and model drawn off it, back and model drawn straight to parent of original texture.
- useParentLevel inherited by models
- setCamera replaced with SetPortraitZoom
- instead of reacting to every SetPortraitTexture, a SetUnit done only if the GUID changed. At the same time, if a UNIT_MODEL_CHANGED happens, every portrait of that unit will be updated at a lower priority update.
- rebuilt options frame
1.92 08/28/12 fixed _ tainting
1.91 08/27/12 5.0 (Mists of Pandaria) update
1.9 09/02/10 4.0 (Cataclysm) support, TargetFrameToTPortrait defaulted DontUse
1.82 10/08/08 scroll fix, /adapt goes to options panel
1.81 08/08/08 updated for WotLK (toc, this->self)
1.8 04/12/08 moved options to new interface options, added full model option
1.71 01/12/07 fixed initialization
1.7 01/11/07 fixed taint issue with default ToT
1.6 10/04/06 edits for lua 5.1
1.5 08/21/06 changed DressUpModel to PlayerModel, moved SetCamera OnUpdate to OnShow
1.4 06/22/06 disabled mouse on portraits, added known frames to /adapt list
1.3 06/11/06 /adapt animate/unanimate options, visibility fix by Lafiell, attempt at more flexibility with frameStrata
1.2 04/01/06 slash options added for circle/square portraits and background
1.0 03/19/06 initial release
Optional Files (0)


Archived Files (16)
File Name
Version
Size
Author
Date
2.0.17
12kB
Gello
01-15-16 12:12 PM
2.0.16
12kB
Gello
06-23-15 07:51 AM
2.0.15
12kB
Gello
02-24-15 06:17 AM
2.0.14
12kB
Gello
10-29-14 11:04 PM
2.0.13
12kB
Gello
10-29-14 09:53 AM
2.0.12
12kB
Gello
10-14-14 06:28 AM
2.0.11
12kB
Gello
04-09-14 07:31 PM
2.0.10
10kB
Gello
10-27-13 03:21 PM
2.0.9
10kB
Gello
09-11-13 10:12 AM
2.0.8
10kB
Gello
05-21-13 11:18 AM
2.0.7
10kB
Gello
04-04-13 11:32 AM
2.0.6
10kB
Gello
03-29-13 11:24 PM
1.92
12kB
Gello
08-28-12 04:36 PM
1.91
12kB
Gello
08-27-12 08:34 PM
1.9
12kB
Gello
01-30-12 06:53 AM
1.82
10kB
Gello
10-14-08 04:43 AM


Post A Reply Comment Options
Unread 05-14-16, 07:32 PM  
Gello
A Firelord
AddOn Author - Click to view AddOns

Forum posts: 472
File comments: 451
Uploads: 115
If anyone is looking for a version of Adapt for the Legion beta, you can find it here.
Report comment to moderator  
Reply With Quote
Unread 03-02-16, 12:34 PM  
Deadlyz
An Aku'mai Servant

Forum posts: 35
File comments: 152
Uploads: 0
Thanks for a quick reply
Originally Posted by Gello
- The old SetCamera that this addon used to use is an option, but it had issues like worgen and others showing as full model instead of a typical head profile.
- A custom camera to set a position closer, but this would probably require a database of coordinates for different models. This addon is super tiny (<50k) and any such database of absolutely off the table.
- Use the 1.2 SetPortraitZoom and rotate the model a little to the right. If it's a player character model it can rotate a little, and for non-player character models it can rotate even more. I'd have to experiment on the specifics and range of behavior which is an amount of research I don't have time to commit to at the moment, sorry.
Sounds complicated!
Originally Posted by Gello
In the future I may research more on models (it's all very poorly documented, so 90% of work is by experimentation), but for the moment this addon won't help your problem.
Quess I'll keep looking

Found some addon that replaces player's portrait with a custom image.
http://www.wowinterface.com/downloads/info19596-MinyonsCoolFaceampClassPortraits.html
Not sure if it's still working.
__________________

My last movie: Rogue Sweethearts
Last edited by Deadlyz : 03-02-16 at 02:15 PM.
Report comment to moderator  
Reply With Quote
Unread 03-02-16, 08:33 AM  
Gello
A Firelord
AddOn Author - Click to view AddOns

Forum posts: 472
File comments: 451
Uploads: 115
Originally Posted by Deadlyz
I'm asking you: is it possible to add an option to move, zoom in/out and rotate character's model in the player frame to set a custom static (or even animated) player portrait?
Yes and no.

If you open Adapt.lua and find this bit of code (can ctrl+F for SetCamera and it's the second instance of SetCamera in the file):
Code:
function adapt.SetCamera(texture)
  local zoom = AdaptSettings.Zoom==3 and 0.33 or AdaptSettings.Zoom==2 and 0.75 or 1
  adapt.portraits[texture].modelLayer:SetPortraitZoom(zoom)
end
and change the "or 1" to "or 1.2" it will zoom the camera in a bit more, but it also rotates the character to the model's left a bit.

This has two effects:
1) Since models can't be properly masked into circles, the "squared edges" problem becomes more pronounced. The circular overlay mask softens the corners a bit, but it looks imperfect.
2) NPC models seem to have a different "scale" for this zoom-rotation, so you're looking at the back of the heads for some targets.

There are alternatives:
- The old SetCamera that this addon used to use is an option, but it had issues like worgen and others showing as full model instead of a typical head profile.
- A custom camera to set a position closer, but this would probably require a database of coordinates for different models. This addon is super tiny (<50k) and any such database of absolutely off the table.
- Use the 1.2 SetPortraitZoom and rotate the model a little to the right. If it's a player character model it can rotate a little, and for non-player character models it can rotate even more. I'd have to experiment on the specifics and range of behavior which is an amount of research I don't have time to commit to at the moment, sorry.

In the future I may research more on models (it's all very poorly documented, so 90% of work is by experimentation), but for the moment this addon won't help your problem.

Sorry!
Report comment to moderator  
Reply With Quote
Unread 03-02-16, 12:24 AM  
Deadlyz
An Aku'mai Servant

Forum posts: 35
File comments: 152
Uploads: 0
Hi!

Gello, blizzard developers have been ignoring the portrait bug since WoD release, so I'm asking you: is it possible to add an option to move, zoom in/out and rotate character's model in the player frame to set a custom static (or even animated) player portrait?

I was hoping your addon would help me fix those ugly shrunken character portraits Blizz released with WoD expansion.
My thread on the official forum: http://eu.battle.net/wow/en/forum/topic/17288990190



But.. it turned out that Adapt's animated portrait looks even tinier than the default one



Honestly I don't really like animated portraits. They can be really distracting!
__________________

My last movie: Rogue Sweethearts
Last edited by Deadlyz : 03-02-16 at 12:27 AM.
Report comment to moderator  
Reply With Quote
Unread 01-21-16, 09:37 PM  
Gello
A Firelord
AddOn Author - Click to view AddOns

Forum posts: 472
File comments: 451
Uploads: 115
Just a heads up for the update posted tonight (2.1.0 on January 21, 2016): If you find your options seem to have reset, go back into options and set them back. There are a couple new options there too. (I try very hard not to reset options on users; but this addon has been around for over 9 years so it's due for a little savedvar cleanup. )

Also this update removes a file and adds two files. You will need to do the update while exited out of the game. If you do an update while logged in, it will error. Just exit the game and log back in to fix everything.
Report comment to moderator  
Reply With Quote
Unread 10-29-14, 10:55 PM  
Gello
A Firelord
AddOn Author - Click to view AddOns

Forum posts: 472
File comments: 451
Uploads: 115
Originally Posted by Banknorris
I found the problem, my saved variables were:
AdaptSettings = {
["BackColor"] = {
["a"] = 1,
["b"] = 0.5,
["g"] = 0.5,
["r"] = 0.5,
},
["BlacklistAnonymous"] = false,
["ColorByClass"] = 1,
["ModelZoom"] = 1,
["Blacklist"] = {
["PlayerPortrait"] = false,
},
}
When i deleted the saved variables the TargetPortrait started animation again. But I think there is some bug in your code assigning false instead of nil (or checking for nil instead of false). And yes just disabling the compareachievement frame is more than good enough. Thank you and sorry for pointing out such a little thing lol.
Nice find, thanks!

You're exactly right with the nil/false. It builds a cache from the blacklist
Code:
for texture in pairs(AdaptSettings.Blacklist) do
  if _G[texture] then
    adapt.Blackcache[_G[texture]] = 1
  end
end
So PlayerPortrait=false will add PlayerPortrait to the Blackcache.

The culprit is GetChecked() will return false now instead of nil. This is easy enough to fix. Thanks again!
Report comment to moderator  
Reply With Quote
Unread 10-29-14, 04:34 PM  
Banknorris
A Flamescale Wyrmkin
 
Banknorris's Avatar
AddOn Author - Click to view AddOns

Forum posts: 113
File comments: 5
Uploads: 7
I found the problem, my saved variables were:
AdaptSettings = {
["BackColor"] = {
["a"] = 1,
["b"] = 0.5,
["g"] = 0.5,
["r"] = 0.5,
},
["BlacklistAnonymous"] = false,
["ColorByClass"] = 1,
["ModelZoom"] = 1,
["Blacklist"] = {
["PlayerPortrait"] = false,
},
}
When i deleted the saved variables the TargetPortrait started animation again. But I think there is some bug in your code assigning false instead of nil (or checking for nil instead of false). And yes just disabling the compareachievement frame is more than good enough. Thank you and sorry for pointing out such a little thing lol.
Last edited by Banknorris : 10-29-14 at 04:35 PM.
Report comment to moderator  
Reply With Quote
Unread 10-29-14, 08:49 AM  
Gello
A Firelord
AddOn Author - Click to view AddOns

Forum posts: 472
File comments: 451
Uploads: 115
I can't figure out how to get back to that bug report Banknorris sorry. Is your player portrait still not showing? If so is it just for one character or all?

I'll have an update today to turn off the animation of that achievement compare portrait.

edit: figured out how to get back there. Sorry didn't reply earlier. I'll have a fix for the achievement comparison. Probably just disable the model--the way this addon works passively it makes no judgement on the unit it's about to draw. It just passes the unit along. When I get time I'll see if I can experiment with why it's getting the wrong unit.
Last edited by Gello : 10-29-14 at 08:57 AM.
Report comment to moderator  
Reply With Quote
Unread 10-25-14, 05:03 PM  
10leej
A Molten Giant
 
10leej's Avatar
AddOn Author - Click to view AddOns

Forum posts: 566
File comments: 423
Uploads: 21
Just a quick plugin here (a month late) Gello, BobUI no longer uses adapt as the unitframes are now oUF based as of version 6.0

The older files are still available for download however the unitframes.lua file is required as my custom textures I used the the unitframes don't match the default layout.

If peopl are going to use my textures I suggest using BobUI v5.4.1 as that was the last interation of the texture were I fixed a lot of texture issues. I do allow fan updates in the license as well if players would just like to update the UI so long as it's posted on wowinterface or curse.com (and associated websites aka curseforge, wowace, ect)
Report comment to moderator  
Reply With Quote
Unread 09-27-14, 12:00 PM  
Gello
A Firelord
AddOn Author - Click to view AddOns

Forum posts: 472
File comments: 451
Uploads: 115
WoD

Just a note that this addon has been tested on the WoD beta and appears to require no changes beyond changing its interface number to make it up to date.

That will happen with the 6.0 pre-patch. A WoD-specific version will not be uploaded until then unless there's any demand.
Report comment to moderator  
Reply With Quote
Unread 04-29-14, 07:31 PM  
Grizzly UK
A Black Drake
 
Grizzly UK's Avatar

Forum posts: 80
File comments: 123
Uploads: 0
Originally Posted by Gello
Originally Posted by Grizzly UK
Are there any addons that change the portrait frame so as to match the square portrait? Long time ago I used BUFX but that broke for and was never fixed. Since then I've been looking but so far unable to find a suitable replacement so figured that maybe some of Adapt's users might know of something.
I use default myself and was hoping others could have suggestions for you. Now and then I get an urge to create an addon to change default portraits to squares but it looks kinda odd without more drastic changes.

I don't know how drastic a change you want, but BobUI has square portraits. Practically any unit frame addon would too.
I'm just looking for something that's nice and simple, BUFX (and it's inspiration Gypsy Unit Frames) are the best examples of what I'd like. I've looked at lots of unit frame addons but they all seem to give the entire thing a complete overhaul / revamp which is more than I want really. Ah well, my search must continue for a while longer it seems, but thanks for the reply!
Report comment to moderator  
Reply With Quote
Unread 04-29-14, 04:59 PM  
Gello
A Firelord
AddOn Author - Click to view AddOns

Forum posts: 472
File comments: 451
Uploads: 115
Originally Posted by Grizzly UK
Are there any addons that change the portrait frame so as to match the square portrait? Long time ago I used BUFX but that broke for and was never fixed. Since then I've been looking but so far unable to find a suitable replacement so figured that maybe some of Adapt's users might know of something.
I use default myself and was hoping others could have suggestions for you. Now and then I get an urge to create an addon to change default portraits to squares but it looks kinda odd without more drastic changes.

I don't know how drastic a change you want, but BobUI has square portraits. Practically any unit frame addon would too.
Report comment to moderator  
Reply With Quote
Unread 04-26-14, 10:00 PM  
Grizzly UK
A Black Drake
 
Grizzly UK's Avatar

Forum posts: 80
File comments: 123
Uploads: 0
Are there any addons that change the portrait frame so as to match the square portrait? Long time ago I used BUFX but that broke for and was never fixed. Since then I've been looking but so far unable to find a suitable replacement so figured that maybe some of Adapt's users might know of something.
Report comment to moderator  
Reply With Quote
Unread 04-09-14, 09:01 PM  
meljen
A Fallenroot Satyr

Forum posts: 28
File comments: 314
Uploads: 0
This addon gives a nice flavor to the default UI, thank you... I'm enjoying it very much. :-)
Report comment to moderator  
Reply With Quote
Unread 10-27-13, 07:37 PM  
10leej
A Molten Giant
 
10leej's Avatar
AddOn Author - Click to view AddOns

Forum posts: 566
File comments: 423
Uploads: 21
I thought my player portrait was broke then I realized that a 3d troll model likes to crouch down every now and then so it dispears in the portrait >.>
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: