Culling Box

Summary

By default, each marker in ARDI-AR has an invisible plane which hides any attached models or images that would be positioned behind it. This is useful for any marker that is placed on a wall or a floor because it will simulate the flat area surrounding it that would obstruct anything behind it. However, when a marker is placed on a smaller object such as a box or piece of machinery, you can use this function to simulate the culling area of the box or machine in which the marker is attached to. If configured with the correct offset and size parameters you can have it so that any attached models and images will appear and disappear as they should when the user views around or behind the object.

Parameters

Note: in order to properly use the Culling Box function you must first call Disable Culling to disable the automatic culling plane beforehand.

Dimensions

Type: Rect + Depth values Default: -10,10,10,-10,20

This parameter specifies the size and position of the box in relation to the marker. Values are accepted as rectangle upper left and lower right corners followed by a depth value.

e:g: A box with values “-15,15,5,-5,20” would create a cube of size 20x20x20 assuming that the marker is placed on the front of it towards the lower right corner.

Examples

<disableculling/>
<cullingbox dimensions="-35,10,5,-10,30"/>

The above code will create a culling box of dimensions 40x20x30 assuming the marker was placed on front if it towards the middle right side.

See Also