TheBlob

01-14-2002, 11:31 AM

Hi!

As I understand OpenGL correct, when a Vector is being rendered it is firstly multiplied automatically by the current Modelview- and Projectionmatrix?!

So I donīt have to calculate all vertices by hand with my own matrices?!

But now I really want to get a vector v1 out of a given vector v2 and the modelview matrix.

How can I do this??? I think loading the ModelviewMatrix and then Multiply it by the vector...how ist it done???

Please help!

As I understand OpenGL correct, when a Vector is being rendered it is firstly multiplied automatically by the current Modelview- and Projectionmatrix?!

So I donīt have to calculate all vertices by hand with my own matrices?!

But now I really want to get a vector v1 out of a given vector v2 and the modelview matrix.

How can I do this??? I think loading the ModelviewMatrix and then Multiply it by the vector...how ist it done???

Please help!