Reputation: 14066
I have a camera (pos, dir) and I have an object (x,y,z)
How can I detect when the object can see with my camera?
Upvotes: 0
Views: 222
Reputation: 1787
You don't have enough info. You need to know camera frustum. Than you calculate if the object is inside frustum. Learn more here:
http://www.lighthouse3d.com/tutorials/view-frustum-culling/ http://www.songho.ca/opengl/gl_transform.html
Upvotes: 1