GetCaptureVis gets the current capture visibility mask.
FACTS:
* Use to change the visibility mask.
Mini Tutorial:
This example first creates two cameras. Then it captures a bunch of random dots and circles to the scene buffer. The dots are set so they will only be visible from camera #1 and vice versa for the circles in camera #2.
; Get the Screen Width/Height W=GetScreenWidth() h=GetScreenHeight() cw=w/2 ; Create Camera #1, set it's cls colour to BLUE and set it's ; viewport so it's down the right hand side of the screen CreateCamera 1 CameraViewPort 1,0,0,cw,h CameraClsColour 1,RGB(100,0,0) ; Create Camera #2, set it's cls colour to BLUE and set it's ; viewport so it's down the right hand side of the screen CreateCamera 2 CameraViewPort 2,cw,0,w,h CameraClsColour 2,RGB(0,0,100) ; redirect all drawing to the scane buffer CaptureToScene ; clear the scene buffer ClsScene ; Set the Capture Visible flag to camera 1 only CaptureVis 1 ; Capture some Dots. For lp=0 To 100 Dot Rnd(cw),Rnd(h) Next ; Set the Capture Visible flag to Camera 2 only CaptureVis 2 ; Capture some Circles. While these circles are captured ; into the scene buffer with the previous dots. Since CaptureVis ; has been set to camera 2, they will only visible from within ; camera #2 For lp=0 To 100 Circle Rnd(cw),Rnd(h),RndRange(5,10),1 Next ; DRaw All cameras DrawAllCameras ; Display the current capture vis mask Print "Current Capture Visibility Camera Mask:"+Str$(GetCaptureVis()) ; display the screen and wait for a key to be pressed Sync WaitKey |
|