Closed hpinkos closed 9 years ago
@hpinkos We don't have a view changed event, but you can create a custom Event
and render loop. Clone the current camera position and after every render check if the camera position changed and, if so, fire the event.
@hpinkos I expect we'll add an event, but do what @bagnell suggested until then. This also came up on the forum.
@pjcozzi added the view change event example. and enabled terrain on the animation example.
and enabled terrain on the animation example.
Do you get a flicker every 10-15 seconds with this example?
Do you get a flicker every 10-15 seconds with this example?
@pjcozzi No, it runs smoothly for me.
OK, I'll check it out on my Mac too. Either way, it is not your concern.
@pjcozzi I think this is ready to go
@pjcozzi okay, now hopefully this should be ready to go.
Looks good, thanks.
The other event example we have listed is event-viewchange http://earth-api-samples.googlecode.com/svn/trunk/examples/event-viewchange.html How would I accomplish that one?