How to add collada camera in OpenGL. I have create the look_at matrix by using camera translation data as camera position and look at position as (0,0,0) and up vector as (0,1,0), It renders fine as what i see in collada imported blender. But i dont have any idea about how to add rotate?
View matrix is inverse of the camera’s world transform. After built matrix like above then the VIEW matrix is inverse of that matrix. You don’t need to lookat except if it appears in a node instead of other transforms.
This is local transform (relative to its parent) if you need to world transform (relative to origin) you need to multiply it with parent recursively