How do I make the Avatar of a player HD in the hud??
9 replies, posted
I've been making a hud for someone and I put the player Avatar in a box on the hud, for some reason the Avatar is blurry and not to good quality, just wondering how I could make it HD and good quality.
Just in case you ask for the code :P
[code]
local avatar = vgui.Create("AvatarImage", grad)
avatar:SetPos(33, ScrH() - 205 )
avatar:SetSize(176,176)
avatar:SetPlayer(ply)
[/code]
Remodel the Playermodels in your server Because they either dont look good or get a new HUD because they should default be in the highest resolution as possible :)
Player models?
I'm on about the Profile picture XD
I should of put Profile picture instead of avatar
Probably because your size of 176 isn't one that's natively made from Steam, so it's trying to resize it.
[URL]http://wiki.garrysmod.com/page/VGUI/Elements/AvatarImage[/URL]
"Acceptable sizes are 16, 32, 64, 84, 128, 184."
I put to one of them sizes and still doesn't show good quality, any other ideas?
SetPlayer() takes a second argument. Look at the wiki page. (Although when I played around with it just now, I got missing textures for anything above 64)
Hmm, well I put the avatar:SetPlayer(ply, 64) It looks better then other one, but shouldn't it go higher then 64?
Use 184 in SetPlayer
Comes up with the missing texture when I set it over 64
Sorry about that Thought you meant the playermodels down in the HUD just realising you meant Avatar :P
Sorry, you need to Log In to post a reply to this thread.