-1
\$\begingroup\$

I was exploring old Minecraft source code when I encountered this:

minecraft glitch

I just wanted to know what causes such distortion and how to fix it with OpenGL?

\$\endgroup\$
4
  • 2
    \$\begingroup\$ I'm voting to close this question as off-topic because it is not about game design. \$\endgroup\$
    – Philipp
    Commented Aug 8, 2018 at 18:00
  • 2
    \$\begingroup\$ I think this question is on-topic, as the aliasing & moiree effects shown here do come up in game & mod development, and avoiding these artifacts is a game development problem. To be able to answer it well though, we'll need more details about what you did, @Jiftoo, to create/expose this artifact. What are we looking at here, is it one quad or many polygons/meshes? Is there particular code you ran or steps you followed to generate this image? Edit your question to include this information and we may be able to spot where the artifacts are coming from (as there are quite a few candidates!) \$\endgroup\$
    – DMGregory
    Commented Aug 8, 2018 at 18:09
  • \$\begingroup\$ Its a Moiré pattern. \$\endgroup\$ Commented Aug 8, 2018 at 21:54
  • \$\begingroup\$ @DMGregory based on what I see and what I already know, this seems to be the underside of the world from one of the first minecraft versions. The player is very far from it and so the texture details get lost \$\endgroup\$
    – Bálint
    Commented Aug 9, 2018 at 5:06

1 Answer 1

4
\$\begingroup\$

That's usually just due to non-existent mipmapping. Turn it on.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .