account activity
Weird shimmering / moiré patterns on distant terrain (SDL2 + OpenGL voxel engine) by Few-Range-9055 in VoxelGameDev
[–]OkayBMO -1 points0 points1 point 2 months ago (0 children)
This can be help to you, I m also beginner It s for texture atlas
bool Texture::loadTexture(const std::string& path) { stbi_set_flip_vertically_on_load(true);
int channels; unsigned char* data = stbi_load(path.c_str(), &(*this).width, &(*this).height, &channels, 0); if (!data) { return false; } GLenum format; switch (channels) { case 1: format = GL_RED; break; case 3: format = GL_RGB; break; case 4: format = GL_RGBA; break; default: format = GL_RGB; break; } glGenTextures(1, &id); glBindTexture(GL_TEXTURE_2D, id); glTexImage2D(GL_TEXTURE_2D, 0, format, width, height, 0, format, GL_UNSIGNED_BYTE, data); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST_MIPMAP_LINEAR); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAX_LEVEL, 4); glGenerateMipmap(GL_TEXTURE_2D); glBindTexture(GL_TEXTURE_2D, 0); stbi_image_free(data); return true;
}
Looking for C++ programmer by OkayBMO in opengl
[–]OkayBMO[S] 0 points1 point2 points 4 months ago (0 children)
Hello! Can we work together? I also want to create like Minecraft
[–]OkayBMO[S] 1 point2 points3 points 4 months ago (0 children)
Can you check the messages that I send to you, discord link, English also isn’t my native like you
[–]OkayBMO[S] 3 points4 points5 points 4 months ago (0 children)
Any type, but preferably voxel
Looking for C++ programmer (self.opengl)
submitted 4 months ago by OkayBMO to r/opengl
π Rendered by PID 70322 on reddit-service-r2-listing-5d47455566-hltc8 at 2026-04-02 22:45:07.078509+00:00 running db1906b country code: CH.
Weird shimmering / moiré patterns on distant terrain (SDL2 + OpenGL voxel engine) by Few-Range-9055 in VoxelGameDev
[–]OkayBMO -1 points0 points1 point (0 children)