spite / THREE.MeshLine

Mesh replacement for THREE.Line
MIT License
2.16k stars 380 forks source link

Lines made of 2 vertices not displayed on iOS #61

Open andriybohdan opened 6 years ago

andriybohdan commented 6 years ago

Hello!

Looks like there's a problem with one of the samples.

How to reproduce:

  1. Open https://www.clicktorelease.com/code/THREE.MeshLine/demo/graph.html on iPad. I used iPad Pro 10.5, iOS version 11.3.1. Previous iOS version didn't work too.

  2. On Desktop this sample displays 5 curved lines and 3 axis lines. screen shot 2018-05-22 at 14 55 23

  3. On iPad it displays just 5 curved lines. Axis lines not displayed. image-1

ckosmic commented 5 years ago

I reproduced this problem with my iPhone on iOS 12.1.1. It seems like lines with 2 or 3 vertices don't render, but adding a fourth vertex allows it to work. Edit: Another interesting thing I found that may be related to this is that any line segment with vertex (0,0,0) doesn't render.