Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
1
Question by Via Cognita · Mar 04, 2014 at 07:17 PM · windows phone 8

2D game: background image size

I'm developing my first Unity game. It's going to be a Windows Phone 8 game.

I want to set a background image but I don't know if this image must have the Windows Phone 8 screen size.

Windows Phone 8 has these resolutions:

480 × 800 768 × 1280 720 × 1280 1080 x 1920

Does the background image have the biggest one?

Comment
Add comment · Show 2
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
avatar image robertbu · Mar 04, 2014 at 07:48 PM 0
Share

There are lots of posts on image size for different platforms posted on UA. There is no one answer, but some reading will give you the choices. Unity will obviously resize images, but there is a loss of quality. Typically folks author for one preferred platform getting images to be 'pixel perfect' for that platform, and then handle the resizing on the others. Also for world objects, the vertical size viewed by the camera stays the same, but the width seen by the camera changes for the different aspect ratios of different resolutions. Some scripting may be involved in getting your background to look the way you want across resolutions.

avatar image Via Cognita · Mar 05, 2014 at 08:29 AM 0
Share

Thanks for your comment, but I'm asking if I have to put, for example, a 1080x1920 image on the background if I'm going to release my game to a device with a screen of 1080x1920 size.

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by Fornoreason1000 · Mar 05, 2014 at 09:23 AM

not necessarily, 480x800 will work at 1080p, it just might look a bit blurry/pixelated depending if your using bi linear filtering or not.

if you have pixel perfect game then it gets a little more tricky. the thing is with unity(and most 3d engines), adjusting the resolution doesn't adjust what the camera actually captures. doing this involves some tricky math involving the orthographic size and normalize rectangles.

so technically you could use any resolution that takes up the whole screen. to make is "pixel perfect" you will need to adjust the orthographic size of the camera to fit the new resolution by the ratio of the two resolutions. To work this out we

 Divide the higher resolution by the lower
 1920 / 640 = 3
 
 then we take it from 5(standard ortho-size)
 5 - 3 = 2.
 therefore the orthographic size for 480p when the native is 1080p at 5 = 2.

Unfortunately its not as easy when going to different ratio such as 1080x1920 (1.7777777778) to 768x1280 (1.6666666667)

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

21 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Are older versions of game projects available anywhere? Want Stealth for 4.1.5 1 Answer

Detect Game Center login prompt? 1 Answer

Good Quality in Unity but ! inGame 2 Answers

How to have coins burst out in random directions after destroying an object in unity? 2 Answers

What is AssetBundle compatibility for MetroPlayer and/or WP8? 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