im trying to load the sponza scene using opengl and the assimp library. but some texture and models become full of artifacts when im looking from a far.
i create mipmaps for every texture in the scene. i create 1 VAO, 1 VBO and 1 IBO for each mesh in the scene (about 78 total according to opengldebugcallback message).
i clear color, depth and stencil every frame. i also set the culling mode as:
but as you can see from the images, when im close the the lion head everything seems good, but i move away from it and i get all these issues. the same for the green and red textures on the walls (they look fine when close them).
also this bug doesnt happen with anything else like the walls, doors, windows, etc.
is there something im missing?