NSObject (SCCameraDelegate)

Declared In:
Sc21/SCCamera.h

Category Description

The SCCamera delegate allows you to fine-tune the values for the near and far clipping planes, as automatically calculated by SCController/SCCamera to optimize depth buffer usage.


Method Types

- adjustNearClippingPlane:farClippingPlane:

Instance Methods

adjustNearClippingPlane:farClippingPlane:

- (void)adjustNearClippingPlane:(float *)near farClippingPlane:(float *)far

Implementing this delegate method allows you to adjust the values for the distance of the near and far clipping plane from the camera as calculated by updateClippingPlanes:. This lets you control the tradeoff between z-buffer resolution and clipping of geometry at the near or far plane specifically for your application. The adjusted values will be used unmodified.

Note that the internal calculations should work well with most scenes. You should only have to make adjustments for very special cases, such as scenes with a large world space, but where one would still like to be able to get up extremely close on details in some parts of the scene.


Sc21 version 1.0 © 2003-2004 Systems in Motion AS.