microsoft / RoomAliveToolkit

Other
714 stars 191 forks source link

Calibration data within Opengl #52

Closed widp closed 7 years ago

widp commented 7 years ago

Can I plug in the pose of the projector into the OpenGL modelview matrix as-is without any modifications? If not, what modifications would be required?

thundercarrot commented 7 years ago

You might need to transpose the matrix to match the conventions of your shader (i.e., premultiply or postmultiply). It's not really so much a standard of OpenGL but rather what the shader expects.

widp commented 7 years ago

What about the z axis, Would I have to do something to account for the difference between directx and opengl coordinate systems.

widp commented 7 years ago

Closing this issue. To convert between the coordinate systems, scaling the z-axis by -1 seems to do the trick.