Reply
 
Thread Tools Display Modes
Old 07-01-12, 01:48 PM   #1
Ketho
A Molten Giant
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 533
Converting multiple BLPs (or PNGs) into a single BLP (or PNG)

In the WoW artwork files, it seems common to see a bunch of BLP files, that actually form a single art file when glued together
  • Are there any scripts, or specific tools available to convert them to a single BLP? So we don't have to use Photoshop/Gimp/etc?
  • If an executable/script is required, is it possible to do this with Lua, or is this better done in "real" programming languages?
  • It would also be great if instead of BLP files, it could work with PNG files instead, since most people would want to convert it to PNG anyway

  • I found this post from Xinhuan, but the reference only exists in the Google Cache now, but it was focusing more about the MPQ's Minimap files in particular

  • WorldMapFrame_Update and CreditsFrame_SetArtTextures seem to have the Lua logic for it, but I don't quite understand it, and it's only for making them appear pasted together ..
  • I'm also wondering how Wowhead and MMO-Champion manage to do this

Here is an example:
http://imgur.com/a/e7K3d
  • Interface\WorldMap\Pandaria\Pandaria1.blp
  • Interface\WorldMap\Pandaria\Pandaria2.blp
  • Interface\WorldMap\Pandaria\Pandaria3.blp
  • Interface\WorldMap\Pandaria\Pandaria4.blp
  • Interface\WorldMap\Pandaria\Pandaria5.blp
  • Interface\WorldMap\Pandaria\Pandaria6.blp
  • Interface\WorldMap\Pandaria\Pandaria7.blp
  • Interface\WorldMap\Pandaria\Pandaria8.blp
  • Interface\WorldMap\Pandaria\Pandaria9.blp
  • Interface\WorldMap\Pandaria\Pandaria10.blp
  • Interface\WorldMap\Pandaria\Pandaria11.blp
  • Interface\WorldMap\Pandaria\Pandaria12.blp
(10 images per post restriction)

--
Attached Files
File Type: zip Pandaria 5.0.1.15799.zip (1.01 MB, 343 views)

Last edited by Ketho : 07-02-12 at 12:12 AM.
Ketho is offline   Reply With Quote
Old 07-01-12, 01:49 PM   #2
Ketho
A Molten Giant
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 533
----------
__________________

Last edited by Ketho : 07-02-12 at 12:12 AM.
Ketho is offline   Reply With Quote
Old 07-01-12, 04:55 PM   #3
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 9,211
As far as I know, the game just pieces them together in the correct locations.
__________________
"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

Seerah is offline   Reply With Quote
Old 07-01-12, 05:00 PM   #4
Ketho
A Molten Giant
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 533
but I want to have them pieced together out of the game :P
Ketho is offline   Reply With Quote
Old 07-01-12, 05:01 PM   #5
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 9,211
Then you'll have to use Photoshop.
__________________
"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

Seerah is offline   Reply With Quote
Old 07-01-12, 06:50 PM   #6
Haleth
Super Moderator
 
Haleth's Avatar
WoWInterface Super Mod
Featured
Join Date: Sep 2008
Posts: 1,067
Perhaps slightly unrelated, but is there a reason why the maps are stored in separate pieces? I can't think of any.
__________________
Haleth is offline   Reply With Quote
Old 07-01-12, 09:29 PM   #7
Rilgamon
Premium Member
 
Rilgamon's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 495
Originally Posted by Haleth View Post
Perhaps slightly unrelated, but is there a reason why the maps are stored in separate pieces? I can't think of any.
Webgraphics are sliced to speed up loading time because you can download them at the same time.
Perhaps the same is true for disc access.
__________________
The cataclysm broke the world ... and the pandas could not fix it!
Rilgamon is offline   Reply With Quote
Old 07-01-12, 11:58 PM   #8
Cybeloras
A Murloc Raider
 
Cybeloras's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 5
My best guess is that because maps are not square (at least I don't think they are), and that all images displayed by WoW must have their dimensions be powers of 2, there is less wasted space when many small images are used rather than one large image.
Cybeloras is offline   Reply With Quote
Old 07-02-12, 05:54 AM   #9
Othgar
"That" Guy
 
Othgar's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2010
Posts: 227
I couldn't wait.. I had to assemble it

Click image for larger version

Name:	Pandaria.jpg
Views:	46
Size:	302.1 KB
ID:	7015
__________________


Othgar is offline   Reply With Quote
Old 07-02-12, 01:47 PM   #10
Ketho
A Molten Giant
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 533
Originally Posted by Othgar View Post
I couldn't wait.. I had to assemble it

Attachment 7015
Thanks for assembling it Othgar, but I'm really looking for a script or tool to automate this ..

It would be of a great help for contributing to this MoP Artwork Changes thread at least

Last edited by Ketho : 07-02-12 at 01:52 PM.
Ketho is offline   Reply With Quote
Old 07-02-12, 02:25 PM   #11
Othgar
"That" Guy
 
Othgar's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2010
Posts: 227
Originally Posted by Ketho View Post
Thanks for assembling it Othgar, but I'm really looking for a script or tool to automate this ..

It would be of a great help for contributing to this MoP Artwork Changes thread at least
Yeah I don't know of any scripts or anything that could do this out of game. In this case the images went together in order from top to bottom left to right, so at least in this case the logic for assembling them would be easy but there's no way to know if all the bigger images like this are broken up that way. If they are then no worries if not then it could make a huge mess out of it. It is possible that since wowhead and MMO champion are both news sites with press credentials that they got the complete images straight from blizz. Although they have enough of a staff that it wouldn't be a big deal to have a few people just throwing the images together like I did either.

Also the image I posted was double the size of the actual assembled map.
__________________


Othgar is offline   Reply With Quote
Reply

Go BackWoWInterface » Developer Discussions » Graphics Help » Converting multiple BLPs (or PNGs) into a single BLP (or PNG)

Thread Tools
Display Modes

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