Cubemap with groundtexture

See this example, in this , the cubemap and the ground texture is matched perfectly or the object is placed at the bottom image of cubetexture. But, when I try to do this, the cubetexture is completely mismatched with ground texture, the ground texture is being at the half of the cubemap walls height.
How to match like this example.