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 /
  • Help Room /
avatar image
0
Question by MisterHasacz · Feb 01, 2017 at 07:38 PM · spritespritessizegridisometric

Need help understanding isometry, pixels per unit and camera size

Hi. I trying to make a grid based isometric game (look at Invisible Inc. for comparison).

However it's not true isometry. I rotate camera 45° on Y axis and 30° on X axis and move it by -10, 10, -10.

That way i can make sprites which base (floor) can be a rhombus with width to height ratio of 2:1. And I'm not doing pixel art, but high resolution sprites (width at least 1024 pixels).

Then I'm placing my sprites on a grid, in which one square is 1x1 unit on X and Z. I'm rotating my sprites to face the camera.

And now all i have to do is to set sprite Pixels Per Unit to sprite width/sqrt(2), because that way a sprite will fit in diagonal of one grid square. And it has to fit on diagonal, because it's rotated towards camera.

Now all should be fine and good, but there is one problem. The sprites are very bad quality and are pixelated, probably due to this that they are small in camera compared to their real pixel size. My camera size is 5. So what should i do to:

  • Have a grid width 1x1 unit squares on X and Z axis (eventually i can make this grid bigger, but 1x1 is the simplest)

  • Fit around 10 to 15 grid squares in width on screen in 16:9

  • Have sprites in high resolution and looking good?

Edit: Screenshot of in game sprites and sprite from file: http://imgur.com/a/LmfLo

Edit 2: I turned on mip maps and it's looking better but how to get rid of this gaps between tiles? http://imgur.com/a/d5ZuB

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 FortisVenaliter · Feb 01, 2017 at 07:48 PM 0
Share

Can you post a screenshot of the problem? It's a bit difficult to visualize.

Best thing to start with though, would be to look at your texture filtering and mipmap settings.

avatar image MisterHasacz FortisVenaliter · Feb 02, 2017 at 12:35 PM 0
Share

Ok, screenshots added. I tried to change sprite import settings/quality setting/graphics setting but visually not much is changing

1 Reply

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

Answer by FortisVenaliter · Feb 02, 2017 at 02:44 PM

Okay, so, here's the problem: When you don't use mipmaps, Unity downsamples the large texture, which often leads to speckling or odd pixelation, which you've seen. When you allow Unity to generate mipmaps, it will, but it just downsamples them ahead of time, which can produce unwanted effects, particularly with edges like you've seen.

So, what you're going to want to do is manually define your mipmaps. You should save a copy of the tile in it's original resolution, and then every half-resolution from there down. For example, if the original tiles are 2048x2048, then you'll need to define 1024x1024, 512x512, 256x256, 128x128, 64x64, 32x32, etc. depending on how far out you plan to allow the player to zoom. This way you can control the quality at all levels and maintain edge uniformity. When you import the texture, you'll want to apply these mipmaps (see here). That should allow you to control the quality of the tiles at all zoom levels.

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

7 People are following this question.

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

Related Questions

Isometric Tilemaps Error 0 Answers

how do I change the 2d tilemap size? 0 Answers

what is a program good for making sprites in? 0 Answers

Pre rendered game (Resident evil Final Fantasy etc) 0 Answers

Rebuild Roguelike with other sprite sheet size 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