Hi,
I have a problem to get values for modelMatrix, projectionMatrix and viewport. I only obtain the values for this matrices if the respective init function are called in Display() method.
Follows the code:
private YxxfGfxPointW DCStoMCS(YxxfGfxPointS pt) {
int[] viewport = new int[4];
double[] matrizModelo = new double[16];
double[] matrizProjecao = new double[16];
int winY;
double[] x = new double[1];
double[] y = new double[1];
double[] z = new double[1];
// get the matrix values
gl.glGetIntegerv(GL.GL_VIEWPORT, viewport);
winY = viewport[3] - pt.y - 1;
gl.glGetDoublev(GL.GL_MODELVIEW_MATRIX, matrizModelo);
gl.glGetDoublev(GL.GL_PROJECTION_MATRIX, matrizProjecao);
…
somebody knows the reason?
Maurício