Only if you had the inverse of one of the matrices, otherwise they are stuck together.

Please log in or register to post a reply.

Yes, invert the matrix, then IIRC you can extract the view axes and position as follows:.

XAxis = Homogenize(Point(1, 0, 0, 1) * InverseViewProjection) -
Homogenize(Point(0, 0, 0, 1) * InverseViewProjection)

YAxis = Homogenize(Point(0, 1, 0, 1) * InverseViewProjection) -
Homogenize(Point(0, 0, 0, 1) * InverseViewProjection)

ZAxis = Homogenize(Point(0, 0, 1, 1) * InverseViewProjection) -
Homogenize(Point(0, 0, 0, 1) * InverseViewProjection)

CameraPos = Homogenize(Point(0, 0, -1, 0) * InverseViewProjection)

Here “Homogenize” means convert from a 4D point back to a 3D one by dividing by w. These equations may be able to be simplified a bit; I’m not sure. Also be wary of the LHS/RHS conversion, there may be a sign change needed someplace with respect to the Z axis. Anyway, once you have the camera position and axes you can easily reconstruct the view matrix, then Inverse(View) * ViewProjection gets you the projection.

- Upcoming Multiplatform Game Program...
- Our first game - looking for feedbacks
- Network Emulation Tool
- Trouble with accessing GLSL array
- Fiction
- Game Programming Patterns: Bytecode
- Interactive WebGL Water Demo
- Skeletal Animation Tutorial with GP...
- Unreal Engine 4
- Microsoft xbox one selling poorly

if i have View*Projection is there anyway to get View and Projection back from it?