Closed clxyder closed 1 year ago
I added the following snippet inside LoadCamShaders
to determine if shader compilation is supported.
GLint Result = GL_FALSE;
glGetIntegerv(GL_SHADER_COMPILER, &Result);
if (Result == GL_FALSE) {
printf("Error in GL_SHADER_COMPILER\n");
}
Seems like it is not, I will investigate if there is a way to enable it.
Initializing GLUT
Initializing Cam Window
Loading Cam Shaders
Error in GL_SHADER_COMPILER
Error in SunVtx Shader compile
I was able to fix my issue by removing the following flag from my .bashrc
file.
# export LIBGL_ALWAYS_INDIRECT=1
Once I removed it I was able to compile the shaders without running into an error for the Demo
and the Standalone
projects.
Setup
42
off of commit71249ff
wsl --update
feature)Problem Description
Hi there thanks again for making this great resource. I am trying to follow along the OpenSatKit's SimSat project that uses
42
.I kept running into a few issues, so I figured I would clone
42
directly and run the demo.After building the project, whenever I run the
Demo
I can see theCam
,Map
,Unit Sphere Viewer
and theOrrey
windows.But, I don't think they are rendering correctly because I also see the following output in my terminal.
I would get a similar output when running it from OpenSatKit and when I run the
Standalone
project.Side question, should
42 Case ./Demo/ is 0% Complete at Time = 0.000
stay at 0% indefinitely, even though I can see the sim time increasing?This is what it looks like when I run
./42 Demo