U Value On Curve Based On Camera Projection

I've got a big field of curves that my camera flies through, and each of these will have a stream of particles flowing along it. Since I start out with hundreds of curves and the camera only has sections of a fraction of them in view at any one time, I need to script my particles so that they animate along the extents of the curves that are actually visible in camera at any given time.

I'm trying to figure out how to determine the U value along a curve that is within the FOV at any given frame.

Any suggestions?

My one thought was to maybe animate a particle along each curve and have it collide with a cone that correspons to the FOV, then position a locator on the curve as close as possible to the position of each collision. Seems complicated and not too elegant.

Anybody know how to find the U values of a curve where it penetrates the sides of a Nurbs surface?

Thanks!
Sean
sean@wagstaff.info
www.wagstaff.info

QUOTE(stwagstaff @ 06/13/06, 12:09 PM) [snapback]239819[/snapback]
I'm trying to figure out how to determine the U value along a curve that is within the FOV at any given frame.

Interesting problem.
A simple technique would be to parent a view frustum size poly box to the camera and align it with the camera aim.
1) Find out bounding box of this frustum
2) Test which curves do not lie in this bounding box (Once you have the curves which are outside you can remove the particle system and not worry about it)

On the other hand finding out intersections of of each and every curve with view frustum would be quite complex and may not give you a better peprformance then just displaying the particles. But still you should check this.

None the less I would like to know what you find on this.

--Amit