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

QD3DCamera Component

INCLUDED IN RAPIDQ_D3D.INC
QD3DCamera helps to render your 3D scene with a "camera." This is a viewport to render what you see.. See limitations.

QD3DCamera Properties

Field Type R/W Default




Pos QD3DVECTOR R/W
Orient QD3DOrientVector R/W
Height SINGLE R/W
ZoomFactor SINGLE R/W
MouseZooming SINGLE R/W

QD3DCamera  Methods
MethodTypeDescriptionParams




GetRadiusFUNCTION ()Radius of the camera distance to center of scene0
GetXZRadiusFUNCTION () Radius in x-z plane of the camera0
GetXYRadiusFUNCTION () Radius in x-y plane of the camera0
FaceCameraSUB Orient AS QD3DOrientVector,
ObjPosX AS SINGLE, ObjPosY AS SINGLE, 
ObjPosZ AS SINGLE)

Finds the angles required to orientation a mesh
with the camera. Known as "Billboarding"

4
TranslateSUB (X#, Y#, Z#) move camera in 3d space3
ZoomXZSUB (Mag AS SINGLE)move forward1
ZoomSUB (Mag AS SINGLE)Move by camera orientation 
i.e., Cam3d.orient
1
ResetViewSUB () Face camera straight down z-axis0
UpdateSUB (DxScrn AS QDXSCREEN)

Always do this before 
DXScreen.Render andDXscreen.flip

1

QD3DCamera Events

Event Type Occurs when... Params






QD3DCamera Examples
See the 3DPong_aDelic.Bas example

Prev Component

Contents

Next Component