当前位置:网站首页>01-01-osg GL3 environment setup
01-01-osg GL3 environment setup
2022-07-29 08:25:00 【longlongway2012】
osg GL3 Compilation of configuration
auhor: longlongwaytogo
email: [email protected]
repo: https://github.com/longlongwaytogo/LearnOsgGL3
preparation
download osg The latest version
git clone [email protected]:openscenegraph/OpenSceneGraph.git
download osg be based on vs2019_x64 Third party library ( thank osg Moderator freesouth Compilation of )
download OpengGL The header file
git clone [email protected]:KhronosGroup/OpenGL-Registry.gitdownload egl The header file
git clone [email protected]:KhronosGroup/EGL-Registry.git
compile
Copy the header file :
copy OpenGL-Registry\api\GL Directory to OpenSceneGraph\include Under the table of contents
copy EGL-Registry\api\KHR Directory to OpenSceneGraph\include Under the table of contents
Pictured :

Unzip the third-party library
function cmake-gui To configure
- stay opensceneGraph The directory specifies binary The catalogue is build_vs2019_x64_GL3
- Set up ACTUAL_3RDPARTY_DIR The catalogue is 3rdparty Location path
- search Input in opengl, Set up opengl The header file is glcorearb.h, Here's the picture :

Set up osg Chinese vs OpenGL Support for :
Enabled configuration :
- OSG_GL3_AVAILABLE
Disabled configuration :
- OSG_GL1_AVAILABLE
- OSG_GL2_AVAILABLE
- OSG_GLES1_AVAILABLE
- OSG_GLES2_AVAILABLE
- OSG_GL_DISPLAYLISTS_AVAILABLE
- OSG_GL_FIXED_FUNCTION_AVAILABLE
- OSG_GL_MATRICES_AVAILABLE
- OSG_GL_VERTEX_ARRAY_FUNCS_AVAILABLE
- OSG_GL_VERTEX_FUNCS_AVAILABLE
As shown in the figure :

- Set up compilation BUILD_OSG_EXAMPLES Options
- Set up WIN32_USE_MP Speed up compilation
- Click on genrate, open sln Project to compile
Bug fix :
Failure to compile may occur , Can't find GL_COMPRESSED_RGB_S3TC_DXT1_EXT, Need to be commented out Texture Header file No 60 That's ok , Because the macro is glcorearb.h It has been defined :
//#ifndef GL_EXT_texture_compression_s3tc
#define GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0
#define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1
#define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT 0x83F2
#define GL_COMPRESSED_RGBA_S3TC_DXT5_EXT 0x83F3
#define GL_COMPRESSED_SRGB_S3TC_DXT1_EXT 0x8C4C
#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT 0x8C4D
#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT 0x8C4E
#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT 0x8C4F
//#endif
copy The third hair warehouse dll To bin Under the table of contents
function In the example osgsimplegl3:
osgsimplegl3 cow.osgPictured :

边栏推荐
- Cs5340 domestic alternative dp5340 multi bit audio a/d converter
- Dp4301-sub-1g highly integrated wireless transceiver chip
- ML.NET相关资源整理
- leetcode hot 100(刷题篇9)(301/45/517/407/offer62/MST08.14/)
- What is the working principle of the noise sensor?
- Intelligent temperature control system
- Low cost 2.4GHz wireless transceiver chip -- ci24r1
- Si12t and si14t low power capacitive touch chips
- Background management system platform of new energy charging pile
- 【Transformer】SegFormer:Simple and Efficient Design for Semantic Segmentation with Transformers
猜你喜欢

Compatible with cc1101/cmt2300-dp4301 sub-1g wireless transceiver chip

Day5: PHP simple syntax and usage

Eps32+platform+arduino running lantern

TCP - sliding window

Virtual augmentation and reality Part 2 (I'm a Firebird)

Smart energy management system solution

110道 MySQL面试题及答案 (持续更新)

PostgreSQL手动创建HikariDataSource解决报错Cannot commit when autoCommit is enabled

Stm8s003 domestic substitute for dp32g003 32-bit microcontroller chip

Day15 (day16 extension): file contains vulnerability
随机推荐
Low cost 2.4GHz wireless transceiver chip -- ci24r1
【OpenCV】-算子(Sobel、Canny、Laplacian)学习
Component transfer participation lifecycle
产品推广的渠道和策略,化妆品品牌推广方法及步骤
What is the working principle of the noise sensor?
Back up Google or other browser plug-ins
Collation of ml.net related resources
Lora opens a new era of Internet of things -asr6500s, asr6501/6502, asr6505, asr6601
Security baseline of network security
Multifunctional signal generator based on AD9850
Ga-rpn: recommended area network for guiding anchors
Use SQL client How can the job generated by SH achieve breakpoint continuation after cancle?
Day6: using PHP to write landing pages
Day13: file upload vulnerability
Basic shell operations (Part 1)
HC-SR04超声波测距模块使用方法和例程(STM32)
Proteus simulation based on msp430f2491 (realize water lamp)
Alibaba political commissar system - Chapter 1: political commissars are built on companies
Windows 安装 MySQL 5.7详细步骤
Node: file write data (readfile, WriteFile), two modes: overwrite and increment