CesiumGS / cesium-google-earth-examples

Google Earth plugin API samples ported to Cesium
Apache License 2.0
94 stars 54 forks source link

Event examples #26

Closed hpinkos closed 9 years ago

hpinkos commented 9 years ago

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?

bagnell commented 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.

pjcozzi commented 9 years ago

@hpinkos I expect we'll add an event, but do what @bagnell suggested until then. This also came up on the forum.

hpinkos commented 9 years ago

@pjcozzi added the view change event example. and enabled terrain on the animation example.

pjcozzi commented 9 years ago

and enabled terrain on the animation example.

Do you get a flicker every 10-15 seconds with this example?

hpinkos commented 9 years ago

Do you get a flicker every 10-15 seconds with this example?

@pjcozzi No, it runs smoothly for me.

pjcozzi commented 9 years ago

OK, I'll check it out on my Mac too. Either way, it is not your concern.

hpinkos commented 9 years ago

@pjcozzi I think this is ready to go

hpinkos commented 9 years ago

@pjcozzi okay, now hopefully this should be ready to go.

pjcozzi commented 9 years ago

Looks good, thanks.