puzzleIm = (ImageBvr)puzzleIm.runOnce();
Now, create two images, one based on direct display and
one based on texturing on the fan: |
Translate the image down to center, and scale it down to 6 cms. |
ImageBvr directDisplayIm =
puzzleIm.transform(compose(scale2(0.06),
translate(-0.5,-0.5)));
Texture the image on a 3-D rotating fan |
ImageBvr projectedGeo = textureOnFan(puzzleIm);
projectedGeo =
projectedGeo.transform(compose(scale2(0.07),
translate(-0.5,-0.5)));
projectedGeo = overlay(projectedGeo, solidColorImage(black));
Cycle through 3-D and 2-D versions upon the toggle geometry event. |
ImageBvr imageToShow = ImageBvr.newUninitBvr();
_toggleGeomProjection = new AppTriggeredEvent();
imageToShow.init( until(directDisplayIm,
_toggleGeomProjection, until(projectedGeo,
_toggleGeomProjection, imageToShow)));
These are the resultant image and sound that constitute the model. |
setImage(imageToShow);
setSound(_puzz.getSound());
}
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.