‘Infinite’ grid on xz plane in c++ OpenGL ES

  3d, c++, opengl-es

I want to be able to render a grid, similar to what you usually get in higher level model editors like Blender, Maya, etc. This should be a completely trivial task, but somehow I’ve found myself stuck for almost a whole day. Seems like there isn’t a single tutorial/example out there on this particular problem in OpenGL ES.

I’ve seen a good example for what I’m trying to achieve using Vulkan, but I’m completely new to OpenGL, c++ and 3d graphics as a whole, so I’m finding it difficult to "translate" it to OpenGL ES.

The Vulkan example: http://asliceofrendering.com/scene%20helper/2020/01/05/InfiniteGrid/

Source: Windows Questions C++

LEAVE A COMMENT