Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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 /
  • Help Room /
avatar image
2
Question by drhousemd · Apr 26, 2018 at 01:50 PM · linerendererline rendererflickeringshipflicker

How to stop flickering when using Line Renderer and any camera follow script?

I've hit a pretty hard wall in my game development... for aesthetic purposes, I'm trying to give the game a vector-based look, which includes using the line-renderer to make thin lines. From overhead view, I have a triangular spaceship and a 0.01-width line (to be used for making walls).


When viewing things through the Main Camera it works, but as soon as I use any 'camera follow' script to follow the ship, it causes the line to start flickering, which gets amplified with post-processing fx.


I've tried many things to stop the flicker:

  • orthographic vs perspective camera

  • varying the line size (anything below ~0.5-width has noticeable flicker)

  • rendering the line through different methods (e.g. bitmap, shader, Vectrosity, etc..)

  • several different camera-follow scripts, from default Unity asset scripts to online posted code

  • moving all combinations of ship and follow code with FixedUpdate, LateUpdate, Update

  • changing clipping planes, above Near: 0.3 below Far: 1000

  • different rendering paths, deferred, forward, legacies

  • using 2 cameras with depth masks, culling and layers, main camera renders ship, the other renders line with either camera having ship-follow script attached

  • changing anti-aliasing 2x - 8x


I am certain the problem always begins when using a ship-follow script, but using one seems necessary. A slight observation I noticed is if the ship moves straight along the same axis as the wall, there's no flicker i.e. with a horizontal wall, flying straight left or right causes no flicker, same with vertical/up-down, any movement along the other axis causes the flickering.


I've searched for answers online, but oddly enough I don't see a post about this exact issue. Is there something more I can try?

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 RudaSwinia · Apr 15, 2021 at 07:45 PM 0
Share

Have you found any solution for this? I think I have similar problem - when I draw straight line (using line renderer) and when my player is moving around and (camera is following him) then line is flickering.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by drhousemd · Apr 17, 2021 at 05:42 AM

@RudaSwinia No, I put the project on hold and was planning to try again soon... I'm going to look up recent posts using the related tags at the top of my post, the Related Questions suggest this might be an alternative: http://answers.unity.com/answers/1680849/view.html

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

135 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 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 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 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 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 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

Line Renderer on top of Mesh 1 Answer

(LineRenderer) Why does the line shrink for a second and come back to its normal size whenever a new point gets added? 0 Answers

How to know if a point of a line touch or lie in a perimeter 1 Answer

issue with LineRender start from 0 0 Answers

LineRederer with corner vertices display positions in wrong location 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