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 Paulius-Liekis · Jul 24, 2014 at 03:15 PM · textureclampcompression

How to disable texture wrapping caused by compression?

When I choose Automatic compression (i.e. RGB compressed PVRTC 4bit on iOS) then I can see artifacts in my texture - it is being wrapped, even when texture wrapping mode is set to Clamp.

Source:

alt text

Result (you can see brown line on the left even and it shouldn't be there). The screenshot is taken from inspector preview.

alt text

When I disable compression the artifacts disappear, but of course I want to have the compression. Is there a way to disable that wrapping and keep good compression?

wrapped.png (137.4 kB)
tex_b2.png (143.9 kB)
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

2 Replies

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

Answer by Paulius-Liekis · Aug 11, 2014 at 01:03 PM

Generally speaking it is not possible to control that.

First, it is possible to set compression Quality to best. That reduces amount of artefacts.

Second option is add extra line of pixels on each side, although that's PITA...

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

Answer by Xtro · Jul 24, 2014 at 03:48 PM

PNG file format is a compressed format like GIF and JPG. As you may know, JPG is a lossy compression. GIF is lossless but it's old. PNG is the new GIF. Supports many features and compressed lossless.

If you choose to compress in unity import settings, actually you are converting it to JPG like format which is lossy. You can keep this import setting as Truecolor and it still will be compressed because your file format is PNG. (I'm not 100% sure if unity keeps the PNG format if we choose "truecolor" but if it does, it's compressed)

Comment
Add comment · Show 3 · 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 Paulius-Liekis · Jul 24, 2014 at 03:56 PM 0
Share

I understand compression-artifacts are result of compression. On the other hand JPG does compression but it doesn't create wrapping artifacts. So my question is which iOS compression format has same quality of compression, but doesn't wrap texture during this process.

When you choose Truecolor it does no compression at all (it doesn't matter what was format of your source file). Also there is big difference between compression sizes, for example PVRTC is 40kb, 16bit compression is 170kb.

avatar image Xtro · Jul 28, 2014 at 09:58 PM 0
Share

Truecolor doesn't compress on memory but on disc it might. As I said before, PNG is a lossless compressed format and it stays on disc.

Still, I don't know how Unity imports PNG files into its asset library. If it keeps the PNG in the library, it's still compressed. If it converts PNG into something else, it's not compressed. I don't know what Unity does but I would love to know :)

avatar image Xtro · Jul 29, 2014 at 04:09 PM 0
Share

I just confirmed from unity documentation. Truecolor is not compressed even if the file format is PNG.

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

Wrapmode clamp still has the white line. 0 Answers

Texture compression distortion. 1 Answer

Texture Compression format for UWP,Texture 0 Answers

Detect Android GPU/chipset at runtime? 1 Answer

Texture DXT5 regression in 2019.1? 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