spite / THREE.MeshLine

Mesh replacement for THREE.Line
MIT License
2.14k stars 381 forks source link

Lines shift while using orbit controls #49

Open danvk opened 6 years ago

danvk commented 6 years ago

I'm drawing several flat lines with widths of about 3. The lines all have y=0.01 and are on top of a green rectangle with y=0. I'm using the standard OrbitControls. As I move the camera around, the flat lines all shift around in ways that don't make much sense:

output

It looks like the y-coordinates of the lines are changing as I move the camera. Why would this be happening?

4nte commented 4 years ago

I'm facing the same issue, have you found a solution to this?

joezappie commented 4 years ago

I'd also like to see if theres a solution to this. I want to draw a thick outlined rectangle on a plane but rotating the camera close to the horizon causes weird distortion of the thickeness of the line:

image