OGL_PGR

10-01-2005, 08:55 PM

I'm trying to create a bounding box around the camera.

The camera moves along a cubic spline and the Up-Vector is NOT a constant 0,1,0 ; it dynamically changes every frame depending on the slope of the curve.

I tried to get PHI(yaw) & THETA(pitch) from 2 consecutive points on the curve, but the bounding box loses orientation when the curve turns around 180 degrees.

-- So whats the best way to create a bounding around a moving camera whose orientation keeps changing every frame ??

Thanks.

The camera moves along a cubic spline and the Up-Vector is NOT a constant 0,1,0 ; it dynamically changes every frame depending on the slope of the curve.

I tried to get PHI(yaw) & THETA(pitch) from 2 consecutive points on the curve, but the bounding box loses orientation when the curve turns around 180 degrees.

-- So whats the best way to create a bounding around a moving camera whose orientation keeps changing every frame ??

Thanks.