Microsoft SDK for Java

createShadowFromMeshBuilder

This method of the Direct3dRM Class creates a shadow by using the specified mesh builder and light, projecting the shadow onto the specified plane. The shadow is a visual that should be added to the frame that contains the visual.

Syntax

public Direct3dRMVisual createShadowFromMeshBuilder( Direct3dRMMeshBuilder mb, Direct3dRMLight l, float px, float py, float pz, float nx, float ny,float nz);

Return Value

Returns the Direct3dRMVisual object if successful; otherwise, null.

Parameters

v The Direct3dRMMeshBuilder object that is casting the shadow.
l The Direct3dRMLight object that is the light source.
px The x component of the plane that the shadow is to be projected on.
py The y component of the plane that the shadow is to be projected on.
pz The z component of the plane that the shadow is to be projected on.
nx The x component of the normal to the plane that the shadow is to be projected on.
ny The y component of the normal to the plane that the shadow is to be projected on.
nz The z component of the normal to the plane that the shadow is to be projected on.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.