Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ardiscript:cullingbox [2019/08/15 06:02]
optrix [Summary]
ardiscript:cullingbox [2019/08/15 06:22] (current)
optrix [Examples]
Line 6: Line 6:
 ====Parameters==== ====Parameters====
  
 +**Note: in order to properly use the [[cullingbox]] function you must first call [[disableculling]] 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==== ====Examples====
  
 +<​code>​
 +<​disableculling/>​
 +<​cullingbox dimensions="​-35,​10,​5,​-10,​30"/>​
 +</​code>​
 +
 +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==== ====See Also====
 [[enableculling]] [[disableculling]] [[enableculling]] [[disableculling]]