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

  • $\begingroup$ This answer at so may be what you want. you need to choose what you test, an objects centre or bound_box? $\endgroup$
    – sambler
    Aug 24 '15 at 16:22
  • $\begingroup$ 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"). $\endgroup$
    – CodeManX
    Aug 25 '15 at 0:22
  • $\begingroup$ 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? $\endgroup$
    – Odino
    Aug 31 '15 at 10:21
  • $\begingroup$ 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? $\endgroup$
    – CodeManX
    Aug 31 '15 at 10:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.