3d - Get [x,z] contained in frustrum -


using 8 corners can returned frustrum, how go getting array of points contained in frustrum?

for specific case dont need y coordinate x,z coordinates.

ive given quite bit of thought , havnt come solution, point me in right direction?

given you're using xna can run bunch of coordinates through boundingfrustrum's contains method.

var frustum = new boundingfrustum(viewmatrix); if(frustum.contains(new vector3(0,0,0))) {     // point in frustum, add list of points } 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -