Hi,

I'm viewing the code of FrustumCuller in the lite branch (
http://code.google.com/p/away3d/source/browse/branches/lite/libs/away3dlite/core/culler/FrustumCuller.as
).

The function setCamDef should find the camera referentials vX, vY, vZ.
But it doesn't.

vZ = left.subtract(cameraPosition)

First of all, variable left is a vector that points forward. :)
Then the position of the camera (camera.transform.matrix3d.position)
is subtracted from the forward vector. This should then compute the
camera Z axis, vZ.

As far as I know, if we subtract two vectors, we get the vector
between the 'tips' of the original vectors. Which isn't the camera Z
axis.

Shouldn't it first of all use the camera's sceneMatrix3D (the
'absolute' matrix) and get the rotation information from that?

Declan

Reply via email to