Python pointInsideFrustum Issue

Hello,

I’ve gone over every tutorial I could find and still can’t get it to work. I’m trying to just do a simple test; test if a point is in a camera’s viewing frustum. My Python code is as follows :

import GameLogic
import Blender

Get the current scene

scene = GameLogic.getCurrentScene()

Get the current camera

cam = scene.getObjectList()[“OBCamera.001”]

x = 1
y = 1
z = 1

print cam.pointInsideFrustum([x, y, z])

The camera is just set as the default camera when you start a new .blend file, and I’ve tried MANY different values for x, y and z. So far, the only time that pointInsideFrustum works is with a z-value of 1 or -1, and x and y are zero. However, most points that I do use SHOULD be in the frustum (when I render them I can see them).

Is there something more I need to do with the camera itself? I’ve linked the code to the camera and it is definitely running. Any help would be greatly appreciated; I’m completely stumped.

@SteveNCroweley, best submit these kinds of issues as bug reports in our tracker so they dont get lost in the deluge of forum threads.