Friday 22 February 2013

Calling a xeoEngine from your page

In an earlier post, I described how xeoEngine lets us embed a 3D scene in an iframe, then fire calls and subscriptions at it through a JavaScript client API to make it do stuff.

In this page I've got an iframe containing a xeoEngine server page, the client API library, and a little bit of inline script which sends the commands to set up the scene.

 

Now check this out - each of the links below will fire a call at the iframe to update the camera position. Click them to move the camera around, and watch each JavaScript expression appear in the status bar at the bottom of the browser:
Take a look at complete HTML for this page here.

No comments:

Post a Comment