Well, in my opinion, you can't really create things from scratch in After Effects. Hence the name, you see. You will most likely need to look at some other application.
Vue http://www.e-onsoftware.com/
haven't used it, but I think it's one of those environment creating programs. I use Maya Unlimited, it has an ocean generator, but it's not like Terragen or Vue