开发者

get vertex coordinate after transformation OpenGL ES 1.0

开发者 https://www.devze.com 2023-03-30 23:13 出处:网络
I am working on a board game for android using opengl es 1.0. The game board is a polygon an there are two transformations: scale (zoom) and translate. Now I need the vertex coordinates after the开发者

I am working on a board game for android using opengl es 1.0. The game board is a polygon an there are two transformations: scale (zoom) and translate. Now I need the vertex coordinates after the开发者_开发技巧 transformation. I managed to get the model view matrix and the projection matrix and now I'm stuck, how do I use this data to get the new coordinates from my old vertex coordinates.


new vertex coordinate = projection matrix * modelview matrix * old vertex coordinate

0

精彩评论

暂无评论...
验证码 换一张
取 消