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 /
avatar image
0
Question by pdenton · Oct 10, 2015 at 01:31 PM · shadertexturelayers

How to eliminate visible edges on layered textures?

Hello Everyone!

I have a scene with sea waves made of six quads with scrolling textures on them. There is one problem though - there are visible quad edges on some textures, as indicated in the picture below: alt text

As can also be seen in the picture, I am using Unlit/Transparent shader for each texture.

I managed to eliminate those edges by changing textures Filter Mode from Billinear to Point, but it caused a visible decrease of their quality.

Is there a way to make those edges disappear without losing quality?

textures.jpg (76.2 kB)
Comment
Add comment · Show 3
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 Thomas-Mountainborn · Oct 10, 2015 at 02:32 PM 0
Share

Try making sure that the top row of pixels is entirely invisible. No guarantee that that's what's causing the issue, I've just seen before that that can cause problems.

avatar image fafase · Oct 11, 2015 at 02:01 PM 0
Share

One way I managed to remove those lines is to make one overlap the other.

For instance, if they are 2 of height make the first at 0, then next at 1.99999 then 3.999998 and so on. It is annoying and a hack but that is how I made it...

I have seen games on the app store with that line showing. So maybe you should not spend too much on this.

avatar image pdenton fafase · Oct 11, 2015 at 02:55 PM 0
Share

@fafase Thanks, but with some help I managed to fix it (see my comment under the answer below).

1 Reply

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

Answer by Kali2048 · Oct 11, 2015 at 12:33 PM

Just set your texture's "Wrap mode" to "Clamp".

If you need the texture to tile then keep wrap mode to "Tile" but make sure your UV do not come close to the top edge of your texture, this way the bottom pixel will not appear on top of your mesh

Comment
Add comment · Show 2 · 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 pdenton · Oct 11, 2015 at 01:40 PM 0
Share

@$$anonymous$$ali2048 I set those textures to scroll by constantly changing their offset, so I guess that Wrap $$anonymous$$ode cannot be "Clamp". What is more, I have only two Wrap $$anonymous$$odes to choose from: "Clamp" and "Repeat" (Unity 5.1).

avatar image pdenton · Oct 11, 2015 at 02:53 PM 0
Share

There was no need to change the Wrap $$anonymous$$ode, but a slight UV modification fixed the issue, thanks! :) All I needed to do was to add a few transparent pixels at the bottom of the texture, so now even if they are "looped" (with Wrap $$anonymous$$ode "Repeat") and appear on the top edge, they are not visible.

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Texture Layer help. 0 Answers

How to save result of GPU Perlin Noise (from shader) to a regular Texture2D? 1 Answer

Rewrite simple alphamask fixed function shader to surface or cg shader 2 Answers

set texture offset inside a shader 0 Answers

shader cg blending two textures 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