timknip / asblender

Actionscript 3 library for reading Blender .blend files
http://wiki.github.com/timknip/asblender/
38 stars 7 forks source link

Camera position #2

Open seyacat opened 14 years ago

seyacat commented 14 years ago

Please help me, i cant copy blender camera matrix to papervision camera, i dont know well what are differnces of this matrix, but i can see ppv camera looks in Z+ and blender in Z-, and both have Yup, if you can help me with this i really appeciate.

seyacat commented 14 years ago

var matCorrCam:Matrix3D = new Matrix3D(new Array(1,0,0,0 ,0,-1,0,0 ,0,0,-1,0 ,0,0,0,1)) matCorrCam.calculateMultiply(mat,matCorrCam);
_camera.copyTransform(matCorrCam); _camera.x = mat.n14 _camera.y = mat.n24 _camera.z = mat.n34 _camera.transform = matCorrCam dont copy rotation its why _camera.copyTransform(matCorrCam); works better