Hello
I'm generating a 3D object of a trail, manually generated from vertices and triangles (using the Object3D constructor using vertices array, indices array and uvs array).
The trail is something like a "thick" line (each segment is constructed from two triangles).
I'm trying to map a texture along the trail by something like this:
uvs[iv++] = tot_dist; // u plus (right)
uvs[iv++] = 0; // v plus (right)
uvs[iv++] = tot_dist; // u minus (left)
uvs[iv++] = 1; // v minus (left)
for each two points of a segment, where tot_dist is the total distance of the trail up to that point.
I am getting a weird result, where at the beginning of the trail, the texture looks great, and as I "walk" through the trail, the texture starts looking "noisy" and VERY "pixelated".
I tried variations of mipmap and filtering - on and off, with no help.
Any guess what might be the problem?
Thanks
AP