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
1
Question by numberkruncher · Feb 03, 2012 at 03:38 PM · textureblenderuv

Trouble with UV Mapping Blender => Unity 3

For some reason I am getting nasty grey edges around the edges of rendered 3D models that are not present in Blender.

I seem to be able to solve the problem by reducing the size of the UV coordinates within the part of the texture that is to be mapped. But this means that:

  • I am wasting valuable texture space

  • Loss of accuracy in drawn UV maps

Could I be doing something wrong, perhaps a setting in Unity that needs changing? I have watched countless tutorials which demonstrate Blender default generated UV coordinates with "Texture Paint" which are perfectly aligned in Unity.

Here is an illustration of the problem:

  • Left: approximately 15 pixels of margin on each side of UV coordinates

  • Right: Approximately 3 pixels of margin on each side of UV coordinates

alt text

Note: Texture image resolution is 1024x1024

Comment
Add comment · Show 1
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 Jessy · Feb 03, 2012 at 07:11 PM 0
Share

You can take the "3" out of the question's title; the version of Unity is irrelevant.

1 Reply

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

Answer by Jessy · Feb 03, 2012 at 07:14 PM

This is due to mipmapping. The amount of rendered pixels is far enough below what's in your texture map that the GPU is grabbing from at least mip 1. If bias doesn't solve your problem, then you'll need to rethink how to put this together.

In the future, be aware that such widely-varying colors will lead to these artifacts. Do you really need that black? It might be easy to use as a background, but if it's not being mapped onto anything, than using Solidify (in Free Plugins) will get you better results, while allowing mipmapping to be used to its most performant capacity.

Comment
Add comment · Show 4 · 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 numberkruncher · Feb 03, 2012 at 08:00 PM 0
Share

Does that mean that if that part of the texture was scaled down (and the triangle was scaled down to fit within just a couple of pixels) that the problem would be resolved?

avatar image Jessy · Feb 03, 2012 at 08:47 PM 0
Share

Yes. The drawback is blurry pixelation if the texture gets bigger on-screen. http://www.google.com/url?sa=t&rct=j&q=jessy+%22look+so+good%22+unity3d&source=web&cd=1&ved=0CC$$anonymous$$QFjAA&url=http%3A%2F%2Fforum.unity3d.com%2Fthreads%2F34541-Why-do-the-colors-look-so-good-far-away&ei=ZUcsT6_jJIeW2QXhr5DxDg&usg=AFQjCNE_FrDRhE10DnBZ__EeLp9VaXUEwA

avatar image Doddler · Feb 04, 2012 at 12:40 AM 0
Share

You could adjust the mipmapping settings or disable mipmapping entirely on the texture if it's a major issue. Though it's on by default for a good reason (to reduce aliasing and improve performance), your game may call for non-default settings for best visuals. You can change said settings by going to your texture and changing type to advanced.

avatar image Jessy · Feb 04, 2012 at 01:10 PM 0
Share

There is no setting in the Inspector GUI for bias; you need to change it through code. Turning off mipmaps completely may or may not be the best solution, and $$anonymous$$aiser filtering could be an improvement, but it won't solve the problem like bias can.

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

6 People are following this question.

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

Related Questions

Assigning UV Map to model at runtime 0 Answers

Wrong import of UV from blender 1 Answer

Texturing larger models "Uv image" Blender and Gimp 2 Answers

UV issue on pixel pallet from Blender 0 Answers

Blender Model Texture not seamless in Unity 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