# learn-osg **Repository Path**: userz0654/learn-osg ## Basic Information - **Project Name**: learn-osg - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2026-01-28 - **Last Updated**: 2026-02-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 说明: 本工程为哔哩哔哩教程代码和官方示例代码的整合,其中安卓、MFC、WX等以及需要依赖旧版本的子工程暂时已经移除工程文件以CMakeLists.txt.bak暂存;使用VS2026+QT5.14能正常编译运行全部案例 1、环境准备 osg库准备:直接使用vcpkg下载【vcpkg install osgearth】会自动下载osg和osgearth,osgdata从官网下载即可 2、环境变量配置 ​ 设置环境变量OSG_FILE_PATH ![image-20260128202358991](C:\Users\one\AppData\Roaming\Typora\typora-user-images\image-20260128202358991.png) ​ 3、修改安装后的工程根目录下CMakeLists.txt文件中osg库路径(如图)即可运行 ![image-20260128201249446](C:\Users\one\AppData\Roaming\Typora\typora-user-images\image-20260128201249446.png)