-
BlkPinguLikes 0Problem Description
After viewing lesson 16 of the Modern OpenGL course on Youtube it compiled successfully but I get the following output:
ERROR::SHADER::PROGRAM::LINKING_FAILED
ERROR: Compiled vertex shader was corrupt.
ERROR: Compiled fragment shader was corrupt.Any idea why? It also opens a black OpenGL window without visible content.
-
Sonar Systems adminLikes 0
Have you followed all the previous videos?
-
BlkPinguLikes 0
I made the skybox work. Like it said, it was a linker error. I have a working skybox now.
Now I’m struggeling with tut16, the loading of the nanosuit.
I deleted all my code and threw in 1:1 the code you gave us for the model loading.First try, I recieved an error because for some reason the Camera was commented out. It actually is. Check your github. I undid that.
Next try, I still get like 40 warnings, but no errors and the Window opens but is black. I changed nothing from the vanilla code you gave us, except that I uncommented the camera.Help would be much apprechiated.
-
BlkPinguLikes 0
So basically, the skybox words great, but the model loading does not.
What do I do?I have a running project with a src folder. I dump all your files from [17] in there. I run it and the skybox works. No errors.
I delete all files from the src folder and dump the files from [16] in it. No errors. Black window. No model, not even a model without textures.
I’m on OSX and Xcode.
I tried playing around with scaling, but to no avail.
I tried putting some console messages to check what’s getting loaded, but it found the object and loaded it.
I posted on stackoverflow on this issue: https://stackoverflow.com/questions/56668490/assimp-loads-vertices-but-model-is-not-getting-displayed
Meaning: In Mesh processMesh() I printed cout << vertices.data() << endl; and got0x1020e1000
0x109e5c000
0x10bca1000
0x1020e1600
0x1070a2000
0x1070a2000
0x109e5c000
for me, this means all the vertices where found and loaded.
They are just not displayed in any form.
This reply has been verified.
-
Sonar Systems adminLikes 0
Which tutorial?
This reply has been verified.
-
BlkPinguLikes 0
Still 16. Can you check for stackoverflow post for ALL I tried?
https://stackoverflow.com/questions/56668490/assimp-loads-vertices-but-model-is-not-getting-displayed
-
BlkPinguLikes 0
I answered my SO question. You should really update your tutorial 16. The model didnt load because of a change GLM made in 2018 when the went away from automatic initializing to explicit initialising. Your code will not work for anybody that does not know this. They never changed this in the tutorials on learnOpenGL either. They are just very dated and the libraries evolved past a point of downward compatibility.
-
Sonar Systems adminLikes 0
I will, thanks for letting me know.
Login to reply