Thread Tools Display Modes
Prev Previous Post   Next Post Next
03-23-09, 07:56 AM   #11
sacrife
An Onyxian Warder
 
sacrife's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 384
I'm having some problems with 2d portraits. Mainly because I bad at lua.



I tried using 3d portraits but it annoyed me because of the player animation turning the head away all the time.
If someone knows a code to stop the animation but still keep it 3d, let me know

Otherwise my portraits are 50 in height and 30 in width, and because of that its completely dragged when I used this code to make it square (from pitbull)

portrait:SetTexCoord(0.14644660941, 0.85355339059, 0.14644660941, 0.85355339059)
As you see in my image, the first portrait is it being drawn as 50x50 with those numbers.
The 2nd portrait is 50x30 with the same numbers.
And the third image is 50x30 with the numbers altered to: 0.04644660941, 0.95355339059, 0.04644660941, 0.95355339059.
Problem here is its not squared, although it looks a lot better than the first 2.

So how do I get it square, but still drawn correctly?
And if possible, how do I make the black in the background transparent (like it is if the portrait is 3d)

Update: I tried portrait:SetTexCoord(.2,.8,.2,.8) as numbers from Adapt. Seemed somewhat better. But somewhat zoomed.

Last edited by sacrife : 03-23-09 at 08:16 AM. Reason: Updated info
 
 

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » oUF - Layout discussion


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off