if a line crosses a box


Does someone have the calculation of
to find if a line crosses a box in 3d?
for ex. lne may given by an equation
or two points(start and end )
and box is given by 8 corners…

Thanks all

You mean “Collision Detection” ?
If yes, check this website :

In the “OpenGL” section, there’re many programs for collision detection.

Yes, it can be taught as a
collision detection. In fact it
is picking an object in 3d enverionment.
i get a line from unprojection.
And i must look for which objects that line
crosses… i mean line points which object?

www.gametutorials.com contains also a 3D Object Picking. Check this wonderful site …

see here http://www.realtimerendering.com/int/