Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有一种简单的方法可以从 3D 点画一条线,在这种情况下,它是 0、0、0,到屏幕的中心?
您可以使用gluUnProject计算屏幕中心的 3D 坐标(在给定深度),然后在两个 3D 点之间画一条线。