WoWInterface - View Single Post - No matter what I try I can't make proper Round/Hexagonal shaped 3D unit portraits
View Single Post
03-17-19, 12:32 PM   #2
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Sep 2011
Posts: 71
Since i'm pretty sure PlayerModel derived objects can't be masked, i'm assuming you're working with non-animated 3D portraits, which iirc only come from SetPortraitTextureFromCreatureDisplayID, which will discard any set masks and use a standard circle, and also comes with an undefined background tint.
Lua Code:
  1. texture:SetMask('Interface/ARCHEOLOGY/Arch-Keystone-Mask');
  2. SetPortraitTextureFromCreatureDisplayID(texture, 83136);
would still result in a circled texture, most likely with a non-black background.

It's quite probable that the hexagonal border in that example is just covering the circle edge.
  Reply With Quote