I am working on plotting a set of polling data along a timeline, specifically (ti, f(ti), 0). In order to provide a clearer visualization, I have adjusted the x-position of the (ortho) camera to track the data line.
While the stationary reference grid displayed properly (moving left as time progresses), I encountered an issue where the line disappears upon reaching the right boundary of the orthographic camera.
I experimented with commenting out the camera movement code (camera.position.x += 5) to prevent the camera from moving, which allowed the line to remain visible even when it moved outside of bounds. However, this solution did not meet my requirements.
(For a more detailed explanation, refer to this jsfiddle: http://jsfiddle.net/jmcjc5u/4wfhb1da/)
xx += 0.1;
pt = new THREE.Vector3(xx, 5 * Math.sin(xx), 0);
addPoint(pt);
if (xx - camera.position.x > 5) {
camera.position.x += 5
}