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 Davste93 · Oct 07, 2012 at 10:54 PM · androidtexturespccompression

Textures are distorted when building for android

Hi,

I'm having a weird problem. Some (Not all) textures are getting distorted into lines when I build my project for Android.

Game when I build for a PC/MAC standalone: alt text

Built for Android Gingerbread, Screenshot from the Android device I built to: alt text

Any ideas what may be causing the problem? Textures are all the same resolution (128x128) and format (JPG).

Edit: In reply to previous posts, here's a screenshot of the new settings for my textures. They were previously set to: Max Size: 1024 Format: Compressed Wrap Mode: Repeat.

Now I have changed the settings to the ones indicated in the screenshot below. The result is exactly the same as before. Note - this is the texture that is being distorted, I removed all unused textures to make sure.

EDIT 2: Think I found the problem! Here's an interesting sample from adb logcat:

 E/Unity   ( 1699): findConfigAttrib (30e1): EGL error: 0x3004
 E/Unity   ( 1699): findConfigAttrib (30e1): EGL error: 0x3004

//Above line repeated many times...

 E/Unity   ( 1699): findConfigAttrib (30e1): EGL error: 0x3004
 D/Unity   ( 1699): Creating OpenGL ES 2.0 context (RGB16 565 16/0)
 E/Unity   ( 1699): Before eglCreateContext: EGL error: 0x3004
 E/Unity   ( 1699): Before eglCreateContext: EGL error: 0x3004
 I/Unity   ( 1699): onSurfaceCreated
 I/Unity   ( 1699): onSurfaceChanged 800x600
 I/Unity   ( 1699): view is 800x600
 I/Unity   ( 1699): initUnity
 I/Unity   ( 1699): glGetString (GL10.GL_VERSION)='OpenGL ES 2.0'

alt text

androidscrn.jpg (691.8 kB)
gamepc.jpg (157.0 kB)
Comment
Add comment · Show 9
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 hvilela · Oct 19, 2012 at 04:40 PM 0
Share

Do you have a solution for this? I'm having the same problem.

avatar image Davste93 · Oct 19, 2012 at 04:42 PM 0
Share

@hvilela Yeah. I downloaded a different version of unity and it worked. If you get exactly the same error it should work for you.

avatar image hvilela · Oct 19, 2012 at 04:44 PM 0
Share

Which version are you using? I'm using the last one, 3.5.6.

avatar image Davste93 · Oct 19, 2012 at 04:46 PM 0
Share

3.4. Are you sure you have the same problem exactly (IE: Distorted textures with lines? If they just look stretched, check the compression values of each texture, that should fix it).

avatar image hvilela · Oct 19, 2012 at 04:52 PM 0
Share

Exactly the same problem. For me it works fine for PC/Web/Editor/iPad2/iPad3 and it's reproduce able at Xoom and iPad1.

Show more comments

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by jemonsuarez · Oct 08, 2012 at 01:54 AM

Try testing different compression formats. I have smilar results in losing quality, but not such loss. Texture compression can be changed from texture properties, and from "build options" dialog. Your test could be very usefull.

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 Davste93 · Oct 08, 2012 at 09:36 AM 0
Share

@jemonsuarez I edited the question... I modified compression but get the same result. To be honest I had already tried this before :(

avatar image
0

Answer by SarperS · Oct 08, 2012 at 01:52 AM

Make sure those textures' Clamp Mode are in Repeat mode instead of Clamp in the texture import settings.

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 Davste93 · Oct 08, 2012 at 09:38 AM 0
Share

@Sarper Soher Interesting... I set the Wrap mode to Clamp, and I get the "Android build" in Unity when I press play. It was already on repeat though... Very strange.

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

12 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

Related Questions

When does texture max-size override take effect? 1 Answer

Android tablet crashes depending on texture compression 0 Answers

Android: Preparing textures for 16-bit compression 1 Answer

A node in a childnode? 1 Answer

Android to unity INPUT 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