pbrisk
07-13-2000, 10:11 PM
I'm having some difficulty figuring out how to do a few of the basic things that I'm looking to do in opengl. I've been using the Red Book. In addressing my question, you should know that
i. I know the math.
ii. I know how to program.
iii. I've taken a computer graphics class at
UCLA, so I know what I want to do here.
I'm looking to define my own 3D polygons. I've got the basic data structure in mind (vertices, normals, faces, etc.). The only thing is that whenever the Red Book draws something, it calls a glut function such as glutSolidCube.
My question is basically once I've got my 3d polygon defined, exactly how do I use opengl to transform all the vertices. All of the opengl matrix multiplication commands I've seen are of the form
Matrix X Matrix -> Matrix
I need something of the form
Matrix X Vector -> Vector
Any help that is offered will be appreciated.
i. I know the math.
ii. I know how to program.
iii. I've taken a computer graphics class at
UCLA, so I know what I want to do here.
I'm looking to define my own 3D polygons. I've got the basic data structure in mind (vertices, normals, faces, etc.). The only thing is that whenever the Red Book draws something, it calls a glut function such as glutSolidCube.
My question is basically once I've got my 3d polygon defined, exactly how do I use opengl to transform all the vertices. All of the opengl matrix multiplication commands I've seen are of the form
Matrix X Matrix -> Matrix
I need something of the form
Matrix X Vector -> Vector
Any help that is offered will be appreciated.