Hi all,
Very new to OSG. My main question is how to get some of the examples running with large amounts of data on one screen, and how to get it to use my Nvidia GPU instead of integrated graphics. I'd like to test performance and have at least one example running properly.
I wasn't sure how to build and none of the walkthroughs worked for me, but basically I used the GUI version of cmake on Windows 11 and pointed it to the code and a build directory. After hitting the Configure and Generate buttons as well as adding a BUILD_OSG_EXAMPLES flag, I had a solution which I opened in VS 2022 and seemed to properly build.
I have multiple monitors and a Nvidia Quadro T2000 as well as the integrated intel graphics. When running examples things seem a bit broken. I do get graphics across both monitors and can zoom etc., but they don't look that great (not sure if that's how they are supposed to look).
One example I tried was osggpuculld.exe, which displays this if I scroll in very far (attachment osg cull example.png). I also see the following on the CLI:
```
.\osggpuculld.exe
void StateSet::setGlobalDefaults() ShaderPipeline disabled.
void StateSet::setGlobalDefaults() ShaderPipeline disabled.
VERTEX glCompileShader "static_cull_vertex" FAILED
VERTEX Shader "static_cull_vertex" infolog:
ERROR: 0:6: 'R32I' : syntax error syntax error
VERTEX Shader "static_cull_vertex" infolog:
ERROR: 0:6: 'R32I' : syntax error syntax error
VERTEX Shader "static_cull_vertex" infolog:
ERROR: 0:6: 'R32I' : syntax error syntax error
glLinkProgram 0000028ACCB02AA0"static_cull" FAILED
glLinkProgram 0000028ACCB02AA0"static_cull" FAILED
Program "static_cull" infolog:
Attached vertex shader is not compiled.
```
I've tried other examples and used some built in data to view the dump truck etc., but nothing has texture and everything uses my integrated graphics.
Does anyone know how to:
- View an example on one screen
- Use the proper GPU
- Find a page controls in examples (e.g. what does mouse do? what do key commands do?)
- Get a big model combined into an example to check performance
Thanks in advance!