Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenGL: Multiple user vector by modelview matrix?

Is there a way to make OpenGL transform a general vector I give it with the current modelview matrix and get the result back?

The obvious way is to query the modelview matrix and do the multiplication myself but I am almost sure there should be a way to make OpenGL do this for me.

like image 609
shoosh Avatar asked Nov 12 '08 19:11

shoosh


1 Answers

You are right, you have to get the modelview matrix and transform the vector yourself.

For a confirm, see this link at paragraph 9.120.

like image 192
Marco M. Avatar answered Sep 25 '22 08:09

Marco M.