Thread Tools Display Modes
02-09-18, 02:59 AM   #1
linguini
A Fallenroot Satyr
Join Date: Jun 2010
Posts: 20
how to display a custom made .PNG image file in WoW

i am looking for a way to display a simple PNG image with transparency within wow.

My image file is 1920x1080, and my monitor is 1920x1080. I simply want to display this PNG image in wow. Is this possible?

(im asking because I was using kgpanels, but it is a bit heavy to use on my old laptop)

Last edited by linguini : 02-09-18 at 03:03 AM.
  Reply With Quote
02-09-18, 04:38 AM   #2
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
You can use the BLP to PNG converter.
http://www.wowinterface.com/download...Converter.html

Important. Your texture width/height needs to be a multiplier of 8.

16,32,64,128,256,512,1024 are possible values for width and height. The texture does not have to be square.

Not sure if a single texture can use 2048 in width/height yet. Try to save your texture in 2048x1024. If it loads OK. Otherwise I would try two 1024x1024 textures.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 02-09-18 at 04:44 AM.
  Reply With Quote
02-09-18, 07:24 AM   #3
lightspark
A Rage Talon Dragon Guard
 
lightspark's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2012
Posts: 341
Well, in worst case scenario he can split the image into multiple pieces: 2048x1024 + 2048x64.

As zork said, you can't use PNGs, but you can use TGAs and BLPs, I use TGAs, most editors support export to TGA, moreover, unlike BLP TGA doesn't have artefact issues.

You will have some issues w/ PS and TGAs, Adobe really don't want to add auto alpha mask generation, so you'll have to either make your own, but it may be a PITA if you have really complex texture w/ semi-transparent objects of various colours, or save your image as PNG and later convert it to TGA
__________________

Last edited by lightspark : 02-09-18 at 07:30 AM.
  Reply With Quote
02-09-18, 01:33 PM   #4
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Originally Posted by zork View Post
Important. Your texture width/height needs to be a multiplier of 8.
It needs to be a power of 2.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
02-09-18, 02:06 PM   #5
jeffy162
A Pyroguard Emberseer
 
jeffy162's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 2,364
Yes, it needs to be a power of two - IE 2, 4, 8, 16, 32, 64, etc., etc. (it gets too repetitive to continue). It goes up to (I think) 1024, but I've seen it (don't ask where because I really can't remember) go to 2048.

EDIT\ Since nobody has said it (yet, and they probably don't need to, either) - WoW doesn't support PNG graphics on a Windows machine. Blizzard, for some unknown reason, gave PNG support to Mac's though. Why? Don't know (and I really don't care, either).
\EDIT
__________________
Ahhhh, the vagueries of the aging mind. Wait.... What was I saying?


Carbonite <----- GitHub main module (Maps ONLY) download link. The other modules are also available on GitHub.
Carbonite-CLASSIC<----- GitHub link to Carbonite Classic. Thanks to ircdirk for this!

Last edited by jeffy162 : 02-09-18 at 08:58 PM. Reason: more blah blah blah.
  Reply With Quote
02-09-18, 02:35 PM   #6
linguini
A Fallenroot Satyr
Join Date: Jun 2010
Posts: 20
thank you all! so once I have a compatible format and size, how do I actually load this up into wow?
  Reply With Quote
02-09-18, 03:35 PM   #7
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
http://wowprogramming.com/docs/widge.../CreateTexture

If you manage to build a 2048x1024 texture you can do
Lua Code:
  1. local t = UIParent:CreateTexture(nil,"BACKGROUND",nil,-8)
  2. t:SetTexture("PATHTOYOURTEXTURE")
  3. t:SetAllPoints()
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote
02-10-18, 12:30 AM   #8
lightspark
A Rage Talon Dragon Guard
 
lightspark's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2012
Posts: 341
Originally Posted by zork View Post
http://wowprogramming.com/docs/widge.../CreateTexture

If you manage to build a 2048x1024 texture you can do
Lua Code:
  1. local t = UIParent:CreateTexture(nil,"BACKGROUND",nil,-8)
  2. t:SetTexture("PATHTOYOURTEXTURE")
  3. t:SetAllPoints()
Nah, :SetAllPoints will ruin it, his screen res is 1920x1080 after all, so

Lua Code:
  1. t:SetPoint("TOPLEFT", 0, 0)

is a better way of anchoring it.
__________________
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » how to display a custom made .PNG image file in WoW


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