Type: Posts; User: Darkpower
Wow, it worked, i'm so happy now!! Thanks man, you are my hero Nowhere-01!!
GClements: I'm using OpenGL 4.0 :)
I have a problem with my terrain and that is; the textures is flickering(Like tv noise*) when the "camera" is further away from the terrain and when viewing it in close-up the flickering...
How can I stretch a texture over the whole terrain? (Using Triangle strips)
for (int z = 0; z < Z_DEPTH-1; z++)
I have trouble with collision detection. My heightmap have quads and each quad have two triangles. A diagonal line connects two corners in each quad. How can I determine which quad and which...
WOHO, solved everything now!=D=D=D
No, i'm using primitive restart.
Look at this picture: http://oi50.tinypic.com/2me4a3k.jpg
GL_TRIANGLES, so you can see the lines more clearly.
All lines goes from one side to the other. Why?
Ok, tried it. The result: http://oi47.tinypic.com/5k5280.jpg
Something is terribly Wrong Here. Lines + holes, yes....
Before: glDrawArrays(GL_TRIANGLE_STRIP, 0, numberVertices) = lines....
I need a little bit help.
I have to use glDrawElements(GL_TRIANGLE_STRIP, indices), glEnable(GL_PRIMITIVE_RESTART) and glPrimitiveRestartIndex(restartIndex).
But how can I get all the indices?...
Ok, so I should try degenerate triangles? Does anyone know any good tutorials?
I have a big problem that I can't solve right now... I have searched all over the internet for hours... :-/
Look at this picture:
If I draw the...