-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\$
  • 2
    \$\begingroup\$ I'm voting to close this question as off-topic because it is not about game design. \$\endgroup\$ – Philipp Aug 8 '18 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 Aug 8 '18 at 18:09
  • \$\begingroup\$ Its a Moiré pattern. \$\endgroup\$ – Draco18s no longer trusts SE Aug 8 '18 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 Aug 9 '18 at 5:06
4
\$\begingroup\$

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

| improve this answer | |
\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.