PDA

View Full Version : planes,very beginner



giuseppe500
03-28-2012, 03:21 AM
hello.
I'm a newbe.
I have this doubt:
Can exist a plane that be non included in xy or xz or yz axes planes(what is the correct name)?
sorry but i can't visualize the planes in my head .
How i can know in what axis planes is contained any plane?

Thanks

tonyo_au
03-29-2012, 12:45 AM
Do you mean planes for clipping or just for drawing? Both can be anything you like but how you do it is different.

giuseppe500
03-29-2012, 12:52 AM
I have a profile on a plane and after applied a matrix that rotates the plane I wish find in what axis plane(xy,zy, zx)lies the rotated plane.
thanks.

tonyo_au
03-29-2012, 04:47 PM
You can retrieve the transformation matrices with


GLfloat projMatrix[16];
GLfloat modelMatrix[16];
glGetFloatv(GL_PROJECTION_MATRIX,projmatrix);
glGetFloatv(GL_MODELVIEW_MATRIX,modelMatrix);


look at
http://www.songho.ca/opengl/gl_transform.html

if you don't know how the matrices work