D3D.CreateScene

Previous  Next

 

status = D3D.CreateScene( nControl AS INTEGER,

                          cx       AS REAL,

                          cy       AS REAL,

                          cz       AS REAL,

                          ax       AS REAL,

                          ay       AS REAL,

                          az       AS REAL ) AS INTEGER

 


 

Creates a new 3D scene.  The parameters are defined as

 

cx      Scene width in scaling units

cy      Scene depth in scaling units

cz      Scene height in scaling units

ax      Floor rotation around X Axis

ay      Floor rotation around Y Axis

az      Floor rotation around Z Axis

 

Example:

 

D3D.ScaleFactor( nControl, 1000 )

D3D.CreateScene( nControl, 4000, 2000, 2000, 80, 0, 0 )

D3D.Pan( nControl, 0, 0, 1000 )

D3D.SetFloorOffset( nControl, 0, 0, 0 )

D3D.DrawFloor( nControl, TRUE )

D3D.DrawCoordSys( nControl, TRUE )

D3D.BackGroundColor( nControl, RGB( 0, 0, 0 ) )