You need to increase the far plane parameter when creating the camera which you’ve set to 10000 or keep your scene smaller, judging by the camera position your scene/cube is quite large and will get culled by the far plane of the frustum quickly.
You should pick a reasonable distance, like the max. distance the user can zoom out plus about some more of the size of the cube to make sure it will be always within the frustum, by decreasing and increasing the parameter a bit you’ll see the difference.
Just don’t simply use a overly huge number, the larger the far plane is the faster you’ll getting precision issues.