I have a very small job, requiring someone to write a replacement for the Project() function we use in an OpenGL/OpenTK application. A test application draws a few simple polygons and then attempts to track some text to the vertex of a polygon using this Project() function. It can not use the glut glproject() function and must be written in vb.net. The current (faulty) project() function is as follows:
Private Function Project1(pos As Vector3, viewMatrix As Matrix4, projectionMatrix As Matrix4, screenWidth As Integer, screenHeight As Integer) As Vector2
pos = [login to view URL](pos, projectionMatrix)
pos = [login to view URL](pos, viewMatrix)
pos.X /= pos.Z
pos.Y /= pos.Z
pos.X = (pos.X + 1) * screenWidth / 2
pos.Y = (pos.Y + 1) * screenHeight / 2
Return New Vector2(pos.X, pos.Y)
End Function
The purpose of the function is to take the x,y,z point and determine it's place on the x,y screen, matching exactly the projection done by the vertices of OpenGL/OpenTK.
I will provide a simple test app that you will use to test the newly written function.
Please let me know if you are interested in the project. Keep in mind that the project uses OpenGL through the OpenTK library but the new function must be written to work with OpenTK.