sashakoshka / m4kc

Minecraft 4k: decompiled, translated to C using SDL for graphics and input, and improved upon
78 stars 8 forks source link

Renderer bugs out in the negatives #3

Open sashakoshka opened 3 years ago

sashakoshka commented 3 years ago

Anything past -64 on any axis becomes distorted. Issue is independent of whether gameLoop uses doubles or floats. May have something to do with modulo.

This does not pose a problem yet unless the code is edited to loop the world, but it will affect the game once infinite terrain is added.

Screenshot from 2021-05-11 00-28-48

sashakoshka commented 3 years ago

There is a wierd issue that seems to be caused by this where the renderer will duplicate the last block and leave off one face at the end of the far negative chunks.

sashakoshka commented 2 years ago

This issue has been somewhat mitigated by gaining control of the render offset and increasing it.

sashakoshka commented 1 year ago

Partially fixed by #32