1. add a level block, scale it as large as your terrain(hmp),
texture it of course.

2. place the level block under your terrain(hmp) as close as possible
3. check the shadow flag of your model
4. compile then run

You should see the shadow cast on your terrain(hmp)