![]() |
KudanAR - iOS
1.6.0
|
#import <ARExtractedCameraTexture.h>
Inherits ARRenderTargetTexture, and <ARRendererDelegate>.
Instance Methods | |
(instancetype) | - initWithWidth:height: |
![]() | |
(void) | - addViewPort: |
(void) | - addViewPort:zOrder: |
(void) | - removeViewPort: |
(void) | - clearViewPorts |
(ARViewPort *) | - createDefaultViewPort |
(void) | - addDelegate: |
(UIImage *) | - screenshot |
(BOOL) | - checkFBO |
(void) | - bindBuffer |
(void) | - bindCaptureBuffer |
(void) | - draw |
(void) | - drawForCapture |
![]() | |
(void) | - rendererPreRender |
(void) | - rendererPostRender |
(void) | - rendererDidPause |
(void) | - rendererDidResume |
Properties | |
ARNode * | srcNode |
float | srcWidth |
float | srcHeight |
![]() | |
ARTexture * | texture |
![]() | |
NSArray * | viewPorts |
NSUInteger | numberOfViewPorts |
float | width |
float | height |
NSArray * | delegates |
NSInteger | priority |
BOOL | hasDepth |
BOOL | hasStencil |
BOOL | manualDraw |
NSDictionary * | captureColourToNode |
BOOL | touchEventReceived |
CGPoint | touchPoint |
The ARExtractedCameraTexture is a type of render target that takes its data directly from the camera stream and renders to a texture. This essentially takes a portion of the camera stream and applies it to a mesh. This mesh can then be manipulated, moved, even deformed, to create some unique visuals.
Example of use for Marker tracking:
Example of use for Markerless tracking:
- (instancetype) initWithWidth: | (float) | width | |
height: | (float) | height | |
Initialises the texture with the given dimensions. Overall resolution doesn't have to match the aspect ratio of srcWidth:srcHeight. The offset node's position is half the width and height, meaning the centre of the node is in the middle of the texture.
Example of use:
width | The width of the extracted texture. Maximum width 2048. Recommended width 512 for balance between performance and quality. |
height | The height of the extracted texture. Maximum width 2048. Recommended height 512 for balance between performance and quality. |
Reimplemented from ARRenderTargetTexture.
|
readwritenonatomicassign |
The height in the coordinate space of the source node that determines the Y-axis boundaries of the texture.
|
readwritenonatomicassign |
The node which defines the region of the camera image the texture should be extracted from. Move this node around by adding it to the area of interest (e.g the world of a trackable). Can be reparented to your own nodes.
|
readwritenonatomicassign |
The width in the coordinate space of the source node that determines the X-axis boundaries of the texture.