当前位置:网站首页>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 :

边栏推荐
- Si12t and si14t low power capacitive touch chips
- What constitutes the smart charging pile system?
- torch.Tensor和torch.tensor的区别
- (Video + graphic) machine learning introduction series - Chapter 5 machine learning practice
- Markdown concise grammar manual
- Virtual augmentation and reality Part 2 (I'm a Firebird)
- Pnpm install appears: err_ PNPM_ PEER_ DEP_ ISSUES Unmet peer dependencies
- Huawei wireless device configuration uses WDS technology to deploy WLAN services
- leetcode hot 100(刷题篇9)(301/45/517/407/offer62/MST08.14/)
- 分段分页以及段页结合
猜你喜欢

Tensorboard use

STM32 MDK (keil5) contents mismatch error summary

The computer video pauses and resumes, and the sound suddenly becomes louder

Application of explosion-proof inclination sensor in safe operation of LNG

Solve the problem of MSVC2017 compiler with yellow exclamation mark in kits component of QT

What is Amazon self support number and what should sellers do?

用户身份标识与账号体系实践

【Transformer】SegFormer:Simple and Efficient Design for Semantic Segmentation with Transformers

Data warehouse layered design and data synchronization,, 220728,,,,

Selenium actual combat case crawling JS encrypted data
随机推荐
Solve the problem of MSVC2017 compiler with yellow exclamation mark in kits component of QT
Data warehouse layered design and data synchronization,, 220728,,,,
Proteus simulation based on msp430f2491 (realize water lamp)
Gan: generate adversarial networks
数仓分层设计及数据同步问题,,220728,,,,
RPC和REST
Domestic application of ft232 replacing gp232rl usb-rs232 converter chip
Hal learning notes - Advanced timer of 7 timer
Importerror: no module named XX
Back up Google or other browser plug-ins
Inclination sensor accuracy calibration test
[noi simulation] computational geometry (convex hull, violence, and search set)
Hal library learning notes - 8 concept of serial communication
Segment paging and segment page combination
Cs4344 domestic substitute for dp4344 192K dual channel 24 bit DA converter
Personal study notes
Solve the problem of MSVC2017 compiler with yellow exclamation mark in kits component of QT
Security baseline of network security
Huawei wireless device configuration uses WDS technology to deploy WLAN services
The difference between torch.tensor and torch.tensor