Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by jfa257 · Dec 06, 2015 at 02:56 PM · animation2d animationspritesheet

Should sprite sheets and sprite sheets atlases be of Power of 2 resolutions?

Hi,

I need to make sprite sheets for several animations in my game. Right now, I have all the frames of each animation to a power of 2 resolution, meaning each frame is either 128x128, 256x256 and so on.

The thing is, for instance, I have a 36 frames animation, which if you multiply 256 x 36 its 9216 if I remember correctly, which its not a power of 2 number, so my question is the following:

What's the best practice, create animations with power of 2 framing and limit the number of frames in the animation so the sprite sheet is power 2 resoluted as well? Or which one of the resolutions MUST be power of 2, the sprite frame or the sprite sheet/atlas?

thanks in advance for your time!

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Andreas Loew · Dec 07, 2015 at 08:46 AM

It depends on your target and compression that you choose.

Some graphics processors required Power Of Two (POT) textures some time ago. I don't think that this is a hard requirement anymore. E.g. iPhones dropped this with iPhone 3GS. Some low-cost Phones might still require POT.

What you can't do is making the textures too big. I recommend that you don't make your textures bigger than 2048x2048. 9216 is a no-go. Most GPUs won't be able to handle this sizes and you will end up with severe artifacts on the ones that can handle it.

Platform-specific compression might require some constraints. E.g. DXTC must have sizes divisible by 4. It should not matter if you use Truecolor or 16 bit textures.

Do your animations contain transparency? If so I would propose packing the sprite sheet with some software that removes the transparency while keeping the pivot points. This saves a lot of memory for you. TexturePacker might be a good tool to check - there's a free importer in the asset store. It also optimizes your sprites for faster drawing.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

How to make transition between 2D spritesheet animations ? 0 Answers

Performance question - Animations in spritesheet vs animation in Mecanim? 0 Answers

Creating 2d spritesheet from 3d models 1 Answer

Is there a way to Update SpriteSheets without having to remake all the animations?? 1 Answer

Animation while walking 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges