{"id":18582315,"url":"https://github.com/ubpa/osg_exercise","last_synced_at":"2025-05-16T04:10:38.019Z","repository":{"id":108165064,"uuid":"151663579","full_name":"Ubpa/OSG_Exercise","owner":"Ubpa","description":null,"archived":false,"fork":false,"pushed_at":"2018-10-05T04:22:14.000Z","size":827,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-26T17:10:33.293Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ubpa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-05T02:55:45.000Z","updated_at":"2020-09-01T10:49:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"253514a5-8a8b-4862-8b47-d7ad57c9a764","html_url":"https://github.com/Ubpa/OSG_Exercise","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ubpa%2FOSG_Exercise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ubpa%2FOSG_Exercise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ubpa%2FOSG_Exercise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ubpa%2FOSG_Exercise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ubpa","download_url":"https://codeload.github.com/Ubpa/OSG_Exercise/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239321524,"owners_count":19619720,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T00:10:34.247Z","updated_at":"2025-02-17T16:21:53.787Z","avatar_url":"https://github.com/Ubpa.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 一、介绍\n\n## 1. OSG\n\n\u003eOSG中国首页：http://www.osgchina.org/index.php?option=com_content\u0026view=featured\u0026Itemid=435\n\u003e\n\u003eOSG英文首页：http://www.openscenegraph.org/\n\u003e\n\u003eOpenSceneGraph 是一个开源的三维引擎，被广泛的应用在可视化仿真、游戏、虚拟现实、科学计算、三维重建、地理信息、太空探索、石油矿产等领域。OSG采用标准C++和OpenGL编写而成，可运行在所有的Windows平台、OSX、GNU/Linux、IRIX、Solaris、HP-Ux、AIX、Android和FreeBSD 操作系统。OSG在各个行业均有着丰富的扩展，能够与使用OpenGL书写的引擎无缝的结合，使用国际上最先进的图形渲染技术，让每个用户都能站在巨人的肩上。\n\n## 2. 此项目\n\n### 2.1 介绍\n\n此项目是关于OSG的练习。\n\n分为4部分\n\n- QSG（已启动，已完成）\n- BG（未启动）\n- CB（未启动）\n- LearnOpenGL（已启动，未完成）\n\n---\n\nQSG、BG、CB是与OSG相关的三本书，书籍pdf和自带源码的下载链接如下\n\n```\n链接：https://pan.baidu.com/s/10ANhJ2l2TAU5S6mx93VSug \n提取码：2vwy\n```\n\n项目中关于QSG的部分，源码几乎直接来源于书自带的源码，稍作修改\n\n---\n\nLearnOpenGL是一个教程，介绍如下\n\n\u003ehttps://learnopengl-cn.github.io/\n\u003e\n\u003e欢迎来到OpenGL的世界。这个工程只是我([Joey de Vries](http://joeydevries.com/))的一次小小的尝试，希望能够建立起一个完善的OpenGL教学平台。无论你学习OpenGL是为了学业，找工作，或仅仅是因为兴趣，这个网站都将能够教会你**现代**(Core-profile) OpenGL从基础，中级，到高级的知识。LearnOpenGL的目标是使用易于理解的形式，使用清晰的例子，展现现代OpenGL的所有知识点，并与此同时为你以后的学习提供有用的参考。\n\n此项目中关于LearnOpenGL的部分，代码是基于OSG自己写的，只是实现效果参考部分自LearnOpenGL。\n\n### 2.2 项目结构\n\n```\n/OSG_Exercise\n  /CMakePredefinedTargets\n    -ALL_BUILD\n    -INSTALL\n    -ZERO_CHECK\n  /LearnOpenGL\n    /01_Introduction\n      -LO_01_01_CreateWindows\n      -LO_01_02_Triangle\n      -LO_01_03_SimpleScean\n      -LO_01_04_Shader\n  /QSG\n    -QSG_01_Simple\n    -QSG_02_Viewer\n    -QSG_03_State\n    -QSG_04_TextureMapping\n    -QSG_05_Lighting\n    -QSG_06_Text\n    -QSG_07_Callback\n    -QSG_08_FindNode\n    -QSG_09_Picking\n```\n\n### 2.3 ToDo\n\n- LearnOpenGL/02_Light\n- BG\n- CB\n\n# 二、使用方法\n\n此项目支持 CMake\n\n以下是 Windows10 + vs 2017 的使用说明（其他搭配组合请自行尝试）\n\n## 1. 环境配置\n\n首先是 OSG 源码的项目配置，方法参考如下\n\n```\nhttp://www.openscenegraph.org/index.php/documentation/getting-started\n```\n\n接着设置一下环境变量\n\n- 此项目的 `data` 文件夹的路径添加到系统变量 `OSG_FILE_PATH` 中。\n\n- 设置环境变量 `OSG_3RDPATRY_PATH` ，添加第三方程序包的根目录路径\n\n## 2. 建立工程\n\n在**项目的根目录**执行以下命令\n\n```bash\nmkdir build\ncd build\ncmake -G \"Visual Studio 15 2017 Win64\" ..\n```\n\n打开 `build`文件夹 中的 `OSG_Exercise.sln`，右键`INSTALL` ，点击“生成”即可\n\n生成的exe可执行文件会放在 `bin` 目录下","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubpa%2Fosg_exercise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fubpa%2Fosg_exercise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubpa%2Fosg_exercise/lists"}