Hopson97 / MineCraft-One-Week-Challenge

I challenged myself to see if I could create a voxel game (Minecraft-like) in just one week using C++ and OpenGL, and here is the result
https://www.youtube.com/watch?v=Xq3isov6mZ8
MIT License
2.65k stars 379 forks source link

The game goes completely black occasionally. #65

Closed IridescentRose closed 6 years ago

IridescentRose commented 7 years ago

When the player goes above or below certain thresholds and looks straight up or straight down the screen goes black and nothing is rendered...

Hopson97 commented 7 years ago

I have noticed this too.

Seems to happen on startup and when no chunks are rendered or something.

IridescentRose commented 7 years ago

Weirdly it happens at ~50 block intervals like y=54 to y=104 is fine but the rest blacks out. It's also only at certain camera angles...

Intekin commented 6 years ago

It seams to be related to the camera location offsets during camera creation in the relation to the frustum.
Turning off the culling removes the blackness bug.

IridescentRose commented 6 years ago

Okay I'll fix it.

Hopson97 commented 6 years ago

I have reverted the code base to an older version, it could be possible it works now :)