Sound Punctuation & Rendering the Label

Generate a tick everytime the geoimage lies in the image plane. At that point the original picture (bitmap in image plane) coincides with geoimage (a 3-D rendering of a textured rectangle). GeoImage's projection is larger than the picture when closer than the image plane and its projection is smaller when it's further away.

import the ping sound.

SoundBvr ping = importSound(buildURL(sndBase, "butin.wav"), null);

Could have set the looping sound like the transform above; Instead, demonstrate the cycler. alternative: NumberBvr halfPeriod = div(period, toBvr(2)); SoundBvr loopingSound = SoundBvr.newUninitBvr(); loopingSound.init(until(ping, timer(halfPeriod), loopingSound));

NumberBvr halfPeriod = div(period, toBvr(2));
Behavior sounds[] = { ping };
Cycler cyl = new Cycler(sounds, timer(halfPeriod));
SoundBvr loopingSound = (SoundBvr)(cyl.getBvr());

label is yellow, bold, centered horizontally, and 15% above bottom

Transform2Bvr lablePos = translate(toBvr(0), mul(toBvr(-0.85), _halfHeightNum));
FontStyleBvr fs = defaultFont.color(yellow).bold();
ImageBvr lableImage = stringImage(lable, fs).transform(lablePos);
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.