I'm working on a c# application that uses an ilpanel to show a 3d ILgroup of ILTriangles. I'm trying to set up three buttons each one of them should modify the ilplotcube orientation in order to show a x-y plane view, x-z plane view and y-z view.
On ILPlotcube creation I set up a default 3D (isometric) view using
pc.Rotation = Matrix4.Rotation(new Vector3(0.5299, 0.2195, 0.8192), 0.9363);
where pc is the reference to the ILPlotCube object. If I then use the mouse to rotate the view, what is that changes, the camera or the cube? I'm not able to find out how to obtain the "plane" view XY( or XZ, or YZ) from an arbitrary position of the ILPlotCube orientation. How should I set the ILPlotCube orientation matrix to achieve this result?
EDIT: To be more clear: if set the rotation matrix to the identity one it works only if before I haven't used the mouse to rotate the cube. If I use the mouse it seems that it creates a sort of clone cube with a rotation matrix equals to the identity one but it still visualizes a rotated view.