Visit Gigasoft's Web Site
 ProEssentials v9 Help

SetLight

Scope

Pe3do

 

int PeFunction.SetLight(int nLight, float X, float Y, float Z)

 

Parameter

Description

nLight

For now, set to zero, the future will likely add options for 1,2, for additional lights.

X

X 3D coordinate for light.

Y

Y 3D coordinate for light.

Z

Z 3D coordinate for light.


The SetLight function sets the light location for the 3D scene when RenderEngine is set to Direct3D. The light always points to center of scene.

While developing, its best to set DegreePrompting = True, to learn the best coordinates for the light.

 

Returns

NonZero if the function was successful, otherwise Zero.

 

Comments

PeFunction.SetLight members of Pe3do.PeFunction

 

This function is a helper function for the DLL VCL feature PEP_struct3DXLIGHT0

 

ActiveX uses DxSetLight