Gopalsamy (gopalsamy++at++ada.ernet.in)
Thu, 26 Aug 1999 12:45:02 -0700
Hi All,
I am working in Performer
version 2.1.
The following lines(
written with Line numbers) are compiled without any errors.
1. x_DCS->setMat(matrix_1);
2. ViewState->xformer->setAutoPosition(NULL,
x_DCS);
3. x_DCS->getMat(matrix_2);
4. ViewState->xformer->getMat(matrix_2);
5. x_DCS->setMat(matrix_3);
/* matrix_3 is some arbitrary transformation matrix */
6. ViewState->xformer->setMat(matrix_3);
. . . . . . . . . . .
. . . . . . . . . . . .
/* The value of matrix_2 is changed due to various transformations
made by mouse control */
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
70. ViewState->sceneDCS->setMat(matrix_4);
71. ViewState->xformer->setAutoPosition(NULL,ViewState->sceneDCS);
In the above lines, I have observed the following points,
1. In lines 3 and 4 , the matrix_2 is not matching with matrix_1.
2. The lines 4 and 5 are inactive .i.e.,
The function setMat seems to be not working.
How to
set the matrix_3 to x_DCS or ViewState->xformer?
3. Line 70 is working , but Line 71 is setting the modified value of matrix_2, by default to ViewState->xformer and ViewState->sceneDCS.
How to
make the ViewState->xformer to set the value of ViewState->sceneDCS? i.e
. How to remove the default matrix value in the function setAutoPosition?
I
will be glad if you let me know the things and corresponding remedies for
them.
Thanking You,
Yours sincerely,
K.Gopalsamy.
This archive was generated by hypermail 2.0b2 on Thu Aug 26 1999 - 01:23:48 PDT