lacas
lacas

Reputation: 14066

Opengl-es camera can see an object?

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

Answers (1)

Srđan Rašić
Srđan Rašić

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

Related Questions