How to tell if the terrain is done doing it's thing (loading

Problems building or running the engine, queries about how to use features etc.
Post Reply
swuth
Bronze Sponsor
Bronze Sponsor
Posts: 53
Joined: Wed Mar 25, 2015 10:01 pm

How to tell if the terrain is done doing it's thing (loading

Post by swuth »

Hi,

I have a game where I am generating a terrain from a height map. After I call the terrain (pretty much based on the basic Tutorial 3) I start spawning entities/nodes which I want to "land" on the terrain using the ogre getheight routine. It turns out that I have to wait until the Terrain is done generating or the getheight returns zero. Is there a way to check if the terrain is ready before GetHeight becomes a valid use?


Thanks

Swuth
swuth
Bronze Sponsor
Bronze Sponsor
Posts: 53
Joined: Wed Mar 25, 2015 10:01 pm

Re: How to tell if the terrain is done doing it's thing (loa

Post by swuth »

No-one knows how to detect when the terrain is done generating? There MUST be something that can be checked.....
Post Reply