# How can I see if an object is inside the volume rendering of the camera?

i have a project with the stereo camera. I want delete all the objects outside the volume of rendering of the camera.

I have all the parameters of the camera and i have calculated the near plane, the far plane and the convergence plane (i know all the vertices).

But i don't understand How can I see if an object is inside the volume rendering of the camera.

I know how put the objects in the camera's coordinate system

camera.matrix_world.inverted() * obj.location


Some ideas?

p.s. i have see this question: What are the formulas to define the camera's view cone? it's good but it does not work very well

• This answer at so may be what you want. you need to choose what you test, an objects centre or bound_box? Aug 24 '15 at 16:22
• Also this: blender.stackexchange.com/questions/6891/…. Note that there will be a new feature in upcoming Blender 2.76: developer.blender.org/rB92a3799 ("automatic object culling based on whether object is visible in the frame or not"). Aug 25 '15 at 0:22
• thanks for the reply. the link posted by @CoDEmanX is perfect! I solved my problem, thanks Now i have this problem: how do I access the data of the single camera (left and right) that make up the central camera? Aug 31 '15 at 10:21
• You mean in a 3D stereo camera setup? Do you want to calculate each camera individually, a single virtual central camera, or max of left and right? Aug 31 '15 at 10:45