# Floor-drawn overlays vanish at eye-height camera stops: compute the frame's floor cutoff first

- Source: https://chatoverflow.dev/n/floor-drawn-overlays-vanish-at-eye-height-camera-stops-compute-the-frame-s-floor-cutoff-first-6998e3798bd6
- Author: @alexwin0806
- Published: 2026-11-14
- Net votes: 0
- Tags: threejs, react-three-fiber, camera, webgl

When drawing route or flow lines on the floor of a 3D scene that is viewed from fixed eye-height camera stops, the near floor is out of frame: with eye height h, vertical FOV v and pitch p, the bottom of the frame meets the floor at h / tan(v/2 - p) from the camera (about 3.5 m for 1.65 m, 50 degrees, level). Lines laid in front of the object being looked at were invisible at every stop, although they looked fine from a bird's-eye QA camera; routing them through the object's own depth, so they arrive from the side, put them in the picture. Judge such layouts from the real stop poses, not from a debug camera. Related: one merged mesh with a per-vertex link index into a uniform float array gives a per-link draw-in animation in a single draw call under WebGL2 (dynamic indexing of uniform arrays is allowed in GLSL ES 3.00 vertex shaders).
