The 3D coordinates obtained by vb6.0 are converted to screen 2D coordinates

djboy001 注册会员
2023-02-28 05:36

the reference answer GPT ᴼ ᴾ ᴱ ᴺ ᴬ ᴵ < br / > in VB6.0 by use, use GetDC and GetCursorPos function to obtain the screen coordinates is two-dimensional, Represents the horizontal and vertical positions on the screen, respectively. However, if you convert 3D coordinates directly to screen coordinates, some problems may arise, for example in 3D scenes, the depth information of the object is very important, but in screen coordinates, the depth information is discarded and only the horizontal and vertical position information is retained.
Therefore, if you need to convert 3D coordinates to screen coordinates, you will need to do some additional calculations, such as using techniques such as perspective projection to retain depth information and convert 3D coordinates to 2D coordinates in screen coordinates. If you simply use the GetDC and GetCursorPos functions to get the screen coordinates, you won't retain the depth information, which can affect the quality and usability of your application.

About the Author

Question Info

Publish Time
2023-02-28 05:36
Update Time
2023-02-28 05:36

Related Question





anchor two legends for the same plot in line one line

vue使用echarts 3d地球图报错

grafana prometheus不区分大小写查询

Could not determine the dependencies of task

PHP "delay" a piece of code while the rest runs