Rapid-Q Direct3D Component by John Kelly Appendix B: QD3DCloneMesh

QD3DCloneMesh Component

INCLUDED IN RAPIDQ_D3D.INC
This will make make multiple copies of objects from the same mesh. Use the Mesh and Frame portions for translating, rotation, color and scaling. There are a maximum of 100 copies for any one QD3DCloneMesh.  See limitations.
QD3DCloneMesh Properties
FieldTypeR/WDefault




CloneNumINTEGER    number of copies of the mesh object R/W
FileSTRING      filename of .X or .3DS 3d model R/W
MeshQD3DMESHBUILDER  (see other docs) R/W
FrameArray (0-100) OF QD3DFRAME R/W
RangeQRECT       Set the range that the objects can be place in the x-z plane  R/W
RandPosINTEGER      randomly generate positions R/W
RandScaleINTEGER      randomly generate sizes
PosArray(0-100) OF QD3DVECTOR   each clone can have a unique location, eg., 
box.pos(1).x = -1      :  box.pos(2).x = 11
box.pos(1).y = 12     :  box.pos(2).y = 2
box.pos(1).z = 10     :  box.pos(2).z = -23
R/W
OrientArray(0-100) OF QD3DOrientVector
set the orientation ('6 element vector) for each clone
R/W
VisibleINTEGER  R/W

QD3DCloneMesh Methods
MethodTypeDescriptionParams




The following Methods require passing the QDXScreen as an argument for creation of faces and meshes
InitSUB (DXscreen AS QDXSCREEN)Must call this first before rendering


QD3DCloneMesh Events

Event Type Occurs when... Params




QD3DCloneMesh Examples
See the 3DPong_aDelic.bas example in QD3DPrimative docs.

Prev Component

Contents

Next Component