Endless terrain distortion
Posted: Tue Feb 11, 2014 11:18 pm
I have an endless terrain that looks fine at beginning but when it get further and further the graphic(terrain) becomes distorted. I think the further away precision floating point values for x and y positions fall. Anyone have an ideas or suggestion on how to fix this?
Iforce did you see the same issue with DHS?
I am using code below.
Thanks!!!
Iforce did you see the same issue with DHS?
I am using code below.
Thanks!!!
Code: Select all
glVertexAttribPointer(kCCVertexAttrib_Position, 2, GL_FLOAT, GL_FALSE, 0, _hillVertices);
glVertexAttribPointer(kCCVertexAttrib_TexCoords, 2, GL_FLOAT, GL_FALSE, 0, _hillTexCoords);
glDrawArrays(GL_TRIANGLE_STRIP, 0, (GLsizei)_nHillVertices);