1
Graphics / Re: Vertex Array shapes
« on: April 02, 2021, 10:35:32 pm »
Looks like you're trying to draw rectangular outlines using LineStrip....
The diagonals sound like you're connecting two opposite points. Remember that with a line strip every point is connected to the previous one so if you're creating a 'grid' of lines, remember that each vertex much not be diagonal from the previous one.
Chances are, your quad is created (by the sounds of it) by vertices in a zig-zig "Z" shape. Try creating them in order around the rectangle.
If you find that connecting ones are creating diagonals, you may need to add extra vertices in order to trace around the grid to get to the next position instead of just going straight there.
The diagonals sound like you're connecting two opposite points. Remember that with a line strip every point is connected to the previous one so if you're creating a 'grid' of lines, remember that each vertex much not be diagonal from the previous one.
Chances are, your quad is created (by the sounds of it) by vertices in a zig-zig "Z" shape. Try creating them in order around the rectangle.
If you find that connecting ones are creating diagonals, you may need to add extra vertices in order to trace around the grid to get to the next position instead of just going straight there.