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
1
Question by impurekind · Aug 13, 2019 at 09:59 PM · 2d gamescalingresolutionsretrohealth

What resolution to make retro pixel game to scale up to HD?

What resolution should I make my retro pixel game (that's supposed to look like playing a SNES/Genesis title but as if they had widescreen back in the day) so I can scale it correctly to fit a modern HD 1080p resolution (without stretching the image and/or losing anything)?

I thought the original Genesis resolution of 320x240 was going to work but it doesn't scale quite right and loses some pixels on the x axis.

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
Best Answer

Answer by sacredgeometry · Aug 14, 2019 at 02:31 PM

What you are looking for is either perceived DPI (if you want resolutions to display more content but retain the aesthetic)

So in the 1980s a 16 inch tv was pretty common so lets look at that DPI

320x240 which is a 4:3 ratio with a 16 inch diagonal is 25 DPI.

So you are aiming for each inch of your displayed game, roughly being 5x5 pixels to get that aesthetic.


Or if you want to just extend the resolution but with a new aspect then in which case

Just find out the ratio by dividing the two

i.e. 16/9 = 1.7777777778

then multiply your height by that ratio to get the width.

i.e. 240 * 1.7777777778 = 427 (rounded) so your res is 427x240 for a 16:9 ratio screen like 1920x1080

Comment
Add comment · Show 23 · 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
avatar image sacredgeometry · Aug 14, 2019 at 06:22 PM 0
Share

@impurekind Fixed the maths. Sorry was doing two things at once waiting for a build at work.

avatar image impurekind · Aug 14, 2019 at 07:36 PM 0
Share

Well it's not perfect as it means it will be a pixel or two over once scaled to fit on a 1080p screen, but I guess that's about as good as we can do nowadays. Or maybe I'd be best going for 426 and when it scales there's just a few pixels that are blank.

avatar image sacredgeometry impurekind · Aug 14, 2019 at 07:37 PM 0
Share

Pixel rounding is unavoidable unless you want to restrict the screen resolutions people can play at. i.e. a windows experience.

Otherwise you would have to find the closest perfectly divisible resolution at that aspect ratio. Which might be trickier (If you want to do it dynamically).

avatar image sacredgeometry impurekind · Aug 14, 2019 at 07:44 PM 0
Share

I mean 384x216 is perfectly divisible (5 times) by that res. Which is quite close. Is that better @impurekind?

avatar image impurekind sacredgeometry · Aug 15, 2019 at 03:01 AM 0
Share

Yeah, that's great for 1080p and 4$$anonymous$$ too. Doesn't quite work for 720p. But a decent choice methinks.

I'm extremely confused about how I make one retro resolution that can properly fit into the various HD-and-above resolutions out there these days without distorting the visuals so they're pixel perfect.

Show more comments

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

135 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 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 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 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 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 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

how i can make my player lose 1 live after HP = 0 ? 0 Answers

[2D][Beginner]How do I heal my character when pressing a key while next to a health pack? 1 Answer

[ANSWERED]UNDERTALE Game Over screen [2D] 1 Answer

Proper way to dynamically place UI elements in cropped viewports? 0 Answers

How to change objects scale based on distance between 2 points 4 Answers


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