gltut icon indicating copy to clipboard operation
gltut copied to clipboard

Could not render anything for Tutorial 09

Open b-sia opened this issue 1 year ago • 1 comments

OS: Ubuntu 24.04LTS GCC: 13.3.0 OpenGL: 4.6.0 NVIDIA: 555.42.06

I compiled the projects using the following command.

cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 ..
cmake --build . --config Release

I then tried to execute ./Tut09BasicLighting, ./Tut09AmbientLighting and ./Tut09ScaleAndLighting. None of these executable rendered any shapes.

Image

b-sia avatar Jan 26 '25 07:01 b-sia

@b-sia I noticed some of the shaders weren't working in Tut 07 due to conflicting names with the other tutorials. I appended 'Tut07' to the shader files and their references in InitializeProgram() and they loaded successfully. Maybe the same thing is happening with Tut 09?

Edit: Finally got to Tutorial 9 myself. It's definitely a problem with data files being stored globally from all tutorials. Add a unique suffix to the data file name, updated the cpp file that loads it and you should be good to go.

BassFaceIV avatar Sep 09 '25 21:09 BassFaceIV