glScene (Delphi) 中是否有任何内置函数用于将对象的 3D (xyz) 位置坐标转换为 GlSceneViewer 上显示的该对象的屏幕 2D (xy) 坐标?
谢谢!
gluProject
来自 glu 库的通常用于执行此功能。
http://www.opengl.org/sdk/docs/man2/xhtml/gluProject.xml
我不熟悉 glScene,但它似乎gluProject
用于TGLSceneBuffer.WorldToScreen(const aPoint : TAffineVector) : TAffineVector;
. 这应该做你想要的。