1
$\begingroup$

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

$\endgroup$
4
  • $\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
    Commented Aug 24, 2015 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
    Commented Aug 25, 2015 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
    Commented Aug 31, 2015 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
    Commented Aug 31, 2015 at 10:45

0

You must log in to answer this question.

Browse other questions tagged .