S
S
Sergey Nikolaev2016-04-08 13:41:35
JavaScript
Sergey Nikolaev, 2016-04-08 13:41:35

How to not hide line in three.js if one of the points is outside the camera?

Three line is hidden if 1 of the points is behind the screen, but it is necessary that the line always be on the screen.
Tried https://github.com/spite/THREE.MeshLine same result.
Google doesn't help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Nikolaev, 2016-04-08
@Devastor

If you're updating line points, you'll also need to update your line's bounding sphere for 'frustum culling' to work properly.
You can also disable 'frustum culling' lines in its settings.
This is how I was answered on stackoverflow

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question