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 SenemY · Dec 12, 2014 at 12:38 PM · terraingamecarlines

How to get rid of lines on terrain?

I making a car game with unity3d. When I played the game on pc, no problem. But when I played it on my android device, screen looks like this photo. How to remove these lines on terrain?

alt text

x.png (217.1 kB)
Comment
Add comment · Show 7
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 MrSoad · Dec 12, 2014 at 02:38 PM 1
Share

Those lines are not related to your terrain object. They are all over your car as well.

Have you got a projector in your scene that could be creating this?

Or a Light Cookie on your light?

Or another object high up that could be casting these as a shadow?

avatar image HuskyPanda213 · Dec 12, 2014 at 03:31 PM 0
Share

It looks like a shadow problem, not a terrain problem. I get some lines when the shadow distance is too large--if the shadow distance is over 50, try lowering the shadow distance and increasing the cascades.

avatar image SenemY · Dec 14, 2014 at 03:19 PM 0
Share

Thanks HuskyPanda213. But your offer didn't solve my problem.

$$anonymous$$rSoad, I added light cookie on my light and my problem solved partly. I add different patterned textures and it created colorful spots on trees. Should I add what kind of cookie texture?

avatar image Bunny83 · Dec 14, 2014 at 04:11 PM 1
Share

I also would say this could be caused by a projector which doesn't use the projector shader. The Projector only works with the projection shader. You can't use any other shader as it requires to calculate the projection matrix for the target object.

You shouldn't use any light cookies unless you want them to appear on the objects.

avatar image MrSoad · Dec 14, 2014 at 05:43 PM 0
Share

Yep as @Bunny83 says "You shouldn't use any light cookies unless you want them to appear on the objects.", I mentioned cookies as a possible cause of your problem, not as a solution to it. Sorry for the misunderstanding...

Show more comments

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Hardcoder · Dec 06, 2015 at 02:58 PM

FYI, I've had the same issue, and for me it was fixed by increasing the values for Bias and Normal Bias in my sun's Shadow settings. Google "Shadow acne" or check here for more info: http://docs.unity3d.com/Manual/ShadowOverview.html

alt text


bias.png (36.0 kB)
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
0

Answer by Bunny83 · Dec 15, 2014 at 06:16 AM

You can't use any "normal" shader on a projector. You have to use a projection shader which you can find in the projectors unitypackage. Just select Assets->Import Package->Projectors. It contains two shaders that will work with the projector:

  • Projector Multiply

  • Projector Light

The projector itself doesn't render anything. All it does it determines which objects intersect it's projection volume / frustum and rerenders those objects with the material of the projector. You need a very special shader for the projector that renders the object with the projection texture at the right spot. For this it needs two additional matrices _Projector and _ProjectorClip which are setup by the projector.

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 SenemY · Dec 15, 2014 at 09:41 AM 0
Share

@Bunny83 I did as you well. But I didnt find _Projector and _ProjectorClip. Where I find them? I continue to see lines. Here is inspector photo.

alt text

screenshot_3.png (58.1 kB)
avatar image
0

Answer by thepenguinmaster · Dec 15, 2014 at 04:07 PM

To resolve the problems with the lines, you can disable the texture you are using for your light cookies. The problem is likely the image format you are using for your cookie, or import settings.

You will want to first look at the format and make sure it is setup properly for Android. This is generally done in the import settings, specifically, try to make sure mip maps are unchecked. Next make sure your light cookie texture is set to clamp and not repeat. This will definitely cause the problem you are seeing.

Next go to your build settings and check what texture compression setting you are using. There may also be a problem here.

I can tell that the problem is not a lighting problem, but more of a texture problem with your lighting cookies.

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

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

8 People are following this question.

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

Related Questions

Stupid Question of mine-Please take it seriously 1 Answer

Making A 2d game android 2 Answers

Lines at the top of sprites 3 Answers

terrain not showing 5 Answers

Terrain lights up at night (day-night cycle). 2 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