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
0
Question by Joakim · Sep 04, 2014 at 02:55 PM · 2dtexturerenderingresolution

Texture rendering

I have a 6668x2004 image (level background), I import it into Unity.

I am using 2D aspect of Unity, ortographic camera.

In inspector I set "Max Size" property to 1024, I click apply. Now, my texture is still drawn in 6668x2004 size on scene, but it's quality is really poor like it's been stretched. When i change Max Size to 4096, quality gets much better, maybe it is still a bit streched but I cant say for sure.

Is it true that Unity draws texture in its original size on scene, but depending on Max Size property it resizes it for rendering, and then when rendering, unity stretches it to fit the original size (6668x2004).

Now the other part of the question, Lets say my texture is 4096x1232 (this time I originaly imported it in that size). Also Max Size is set to 4096. Now I start my game in Screen resolution of 1700x1000. I thought this 4096x1232 texture would not fit on "one Screen", But it actually fits, like it is 2000x800 in size, meaning it does not fit into 1700x1000 by width completely, but in height there is empty space under and above the texture.

Now when I dont play my game with "maximaze on play" in editor, I v got screen sized 800x500. And everything is same but all together scaled, like i have 1000x400 texture and 800x500 viewport.

I dont understand what is happening with those textures, sizes... I though if i have texture 4096x1232, and I run my game, that texture would be in its original dimension 4096x1232, and if screen resolution of the game is lets say 1900x1200, it would not fit in width (4096 is 2 times greater than 1900), but seems like some transformations happen... I dont understand what's happening.

I hope someone can see what puzzles me.

This is one in the series of questions in which I'm trying to figure out how things work :). Gradually I'm getting my head around some concepts in Unity, so I hope this question will get me a bit closer.

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 GraviterX · Sep 04, 2014 at 09:43 PM

If you add it to a cube, plane, terrain or anything with a mesh renderer, Unity will allow you to tile it in the inspector.

Comment
Add comment · Show 1 · 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 Joakim · Sep 05, 2014 at 01:53 AM 0
Share

thx but I dont think you answered my questions. I am using 2D aspect of unity, ortographic camera (now I edited question, sorry I did not mention that I work with 2D, if that is important).

I am aware that question is not quite clear but that is the best I can ask at the moment :). Hope somebody will understand what puzzles me.

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

23 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

Related Questions

2D Pixelated water reflection with shaders 1 Answer

How to make a half 2d- half 3d main menu?? 1 Answer

Why the scalling between these 2 resolutions is so bad? 1 Answer

2D Sprites Rendering Inconsistently Between Computers 0 Answers

Anti aliasing with sprites 0 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