LineRenderer wierdness

Hi all

I’m using multiple linerenderers to make a grid for my game, but if I draw the lines bigger you can see that they aren’t horizontal…
The sort of twist, and it follows the camera

Here is a screenshot, I’ve made the lines really big so you can see :slight_smile:
http://www.frikkinsoft.eu/Unity/WierdLines.tiff

Any ideas on how to solve this?

If you read the components section of Unity, I think thats exactly how line rendering is supposed to work, it draws a sprite that is camera facing. What behavior would you like?

They do twist, in that at every point along the line the renderer adds 2 vertices which are spaced perpendicularly to the camera… this usually works great, but sometimes makes weird effects like yours.

Sometimes you can solve it by adding extra points in where it looks funky.

Well, I would like them to stay aligned with the ground…
Could it be done or should I dive into the Mesh API??

You need to use the Mesh API if you want some behaviour other than camera-facing.

Would a plane with a grid texture and alpha channel be a better idea?
AC