Texturepacker is a good image combination tool

Source: Internet
Author: User

Original article: http://385559842.blog.163.com/blog/static/6835714020123510138495/

PVR images are common on iOS devices, because powervr display chips are usually used on iOS devices, while PVR images can be directly loaded by these chips, fast. The full name of the PVR. CCZ image is compressed PVR, which is the compressed version of The PVR image. So the processing software and PVR are the same.

The tool we want to use is texturepacker. This is a common software for iOS application development. The full version is charged, but we only need the free version to complete most of the work.

Address http://www.texturepacker.com for texturepacker

I found that texturepacker is indeed a very useful image tool. At first, the downloaded version collapsed after it was opened, but I did not expect that the author updated a new version one day later.

I learned this tutorial http://www.cnblogs.com/andyque/archive/2011/05/15/2045784.html

However, there is a problem in the above tutorial, that is, the Code he gave is JPG, but it should actually be a PNG image.

There are a few differences in xcode4.

When using xcode4, you need to pay attention to some settings of the newly added target parameter.

Because the project folder generated by xcode4 does not directly contain all project files,

But a project file and another folder with the same name as the project,

Then, all project-related source files and resource files are stored in that directory,

Therefore, the setting information in the target we added should be changed:

"$ (Project_dir)/texturefun/resources/packtexture. Sh"

$ (Srcroot)/texturefun

In fact, you may need to pay attention to automatically generate the purge spritesheet and select the autosd option.

However, the packtexture. Sh script must be added accordingly.

$ {TP} -- smart-update \
-- Format cocos2d \
-- DaTa resources/sprites-hd.plist \
-- Sheet resources/sprites-hd.pvr.ccz \
-- Dither-FS-Alpha \
-- Opt rgba4444 \

-- Auto-SD \ # You only need to add this line to automatically generate a purge image.
Art/sprites/*. PNG

You can download the package at http://www.texturepacker.com/download.

At the beginning, I started to learn iOS development. I followed this tutorial and the hamster was ready to come out of the cave.

I am very grateful to the author of texturepacker for developing such a good tool for us. This tool can automatically generate low-pixel images based on HD images.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.