Rotate Along:
Translate Along:
Texture:
Opacity:  

Geometries

Use the controls on the left to add animation, apply textures, turn shadowing on and off, and set the opacity. The JScript code used to generate the animation appears below. Note that in order to use shadows you must have Microsoft® DirectX® 6.x or later installed. You will not get an error if you turn on shadows without DirectX 6.x. It will simply have no effect. Show more information.
<HTML>
<HEAD>
</HEAD>
<BODY>
<OBJECT ID="DAControl" STYLE="width:300;height:350"
CLASSID="CLSID:B6FFC24C-7E13-11D0-9B47-00C04FC2F51D">
</OBJECT>
<SCRIPT LANGUAGE="JScript">
<!--
m = DAControl.MeterLibrary;

mediaBase = "../../../samples/multimedia/media/";
imageBase = mediaBase + "image/";
geoBase = mediaBase + "geometry/";
movieBase = mediaBase + "movie/";
cubeGeo = m.ImportGeometry(geoBase + "cube.x");


cubeTexture = ;
cubeGeo = cubeGeo.TextureImage(cubeTexture);

cubeTransScale = ;
cubeTransRot = ;
cubeTransTrans = ;
cubeTransF = m.Compose3Array(new Array( cubeTransScale, cubeTransRot, cubeTransTrans));

cubeGeo = cubeGeo.Transform(cubeTransF);

cubeGeo = cubeGeo.Opacity();

camera = m.PerspectiveCamera(0.06, 0.033);
light = m.UnionGeometry(m.AmbientLight.LightColor(m.ColorRgb(0.4,0.4,0.4)), m.DirectionalLight.Transform(m.Rotate3Degrees(m.XVector3,-90)));
lightAndGeo = m.UnionGeometry(cubeGeo, light);
shadowGeo = ;

finalImg = m.UnionGeometry(lightAndGeo, shadowGeo).render(camera);


DAControl.Image = finalImg;
DAControl.Sound = finalSnd;
DAControl.Start();
-->
</SCRIPT>
</BODY>
</HTML>

Top of Page Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.