Is it possible to use a pvr as an atlas sprite and how do you do it? Thank you.
Atlas Sprite with a pvr
(4 posts) (4 voices)-
Posted 2 years ago #
-
yes.
instead of loading a .png file, just load a .pvr file.
example:
look at the "PerformanceSpriteTest" example. It uses .pvr images in an AtlasSpriteManager.Posted 2 years ago # -
The same way you would do with a PNG. If you mean how to create the
pvr, you need to have a square image (and the length has to be a power
of 2).check this post:
http://blog.sapusmedia.com/2009/02/pvrtc-support-in-cocos2d.html
hth,
--
Rolando Abarca M.Posted 2 years ago # -
...however, it is recommended (by the GPU manufacturer) to put a 4 pixel border between frames
"PVRTC is lossy compression so a certain quality loss is to be expected. If it's too bad you might give 16-bit textures a try. The 4 pixel border is because PVRTC (4bpp) is based on 4x4 blocks and interpolates colours between neighbouring blocks. So if you don't use a border (or use e.g. a black border) colours from neighbouring blocks can bleed into your images."
Posted 2 years ago #
Reply
You must log in to post.