From: aNt <an...@to...> - 2000-10-20 17:45:42
|
> gluProject humm that seems to look at the backBuffer and then use the alpha or something. so don't look like its the gluProject() I need. I need to no where my objects are after turning, I do this : gl.glPushMatrix(); gl.glTranslatef(10f, 0f, 0f); gl.glRotatef(180f, 0f, 1f, 0f); float[] mat = new float[16]; gl.glGetFloatv(GL_MODELVIEW_MATRIX, mat); sOne.newx = mat[12]; sOne.newy = mat[13]; sOne.newz = mat[14]; gl.glPopMatrix(); same with object sTwo. the newx, newy, newz should be the new pos of the objects. but it don't seem to be.. I wont to do lines between the object so I do this after all is drawn. gl.glPushMatrix(); gl.glLineWidth(2); gl.glBegin(GL_LINES); gl.glVertex3f(sOne.newx, sOne.newy, sOne.newz); gl.glVertex3f(sTwo.newx, sTwo.newy, sTwo.newz); gl.glEnd(); gl.glPopMatrix(); topsss aNt |