How to flip the viewport (reflection camera)
Posted: Wed Oct 20, 2010 7:12 pm
Hi all,
I am working on a project that requires to flip the viewport (mirror-like) and arrange with other viewports.
I have looked at ICameraSceneNode.h which have one function called setViewMatrixAffector()
/* Sets a custom view matrix affector.
The matrix passed here, will be multiplied with the view
matrix when it gets updated. This allows for custom camera
setups like, for example, a reflection camera.
param affector The affector matrix. */
virtual void setViewMatrixAffector(const core::matrix4& affector) =0;
I have tried to figure out what is the matrix affector. However, I am not sure how to accomplish this.
Would anyone have tried this function? Or Are there any other ways to manipulate the viewport? Please help. Thank you in advance.
I am working on a project that requires to flip the viewport (mirror-like) and arrange with other viewports.
I have looked at ICameraSceneNode.h which have one function called setViewMatrixAffector()
/* Sets a custom view matrix affector.
The matrix passed here, will be multiplied with the view
matrix when it gets updated. This allows for custom camera
setups like, for example, a reflection camera.
param affector The affector matrix. */
virtual void setViewMatrixAffector(const core::matrix4& affector) =0;
I have tried to figure out what is the matrix affector. However, I am not sure how to accomplish this.
Would anyone have tried this function? Or Are there any other ways to manipulate the viewport? Please help. Thank you in advance.