JoeyDeVries / LearnOpenGL

Code repository of all OpenGL chapters from the book and its accompanying website https://learnopengl.com
https://learnopengl.com
Other
11.1k stars 2.81k forks source link

Model: not loading textures #373

Open IntellectualKitty opened 1 year ago

IntellectualKitty commented 1 year ago

I was trying to get the deferred shading lesson to work, but the backpack model doesn't load correctly and appears as solid black.

From the errors emitted, the first four letters of each texture name are being skipped, e.g., "Specular.jpg" becomes "ular.jpg". It's the same for the diffuse ("use.jpg") and normal ("al.png") maps.

As far as I can tell, the sample should work correctly-- it looks like the lack of a normal map is causing the normals to be zeroed out and the lack of a diffuse map is causing the ambient portion of the lighting equation to be zero as well.

jiffygist commented 3 months ago

The assimp headers in includes/ have this bug https://github.com/assimp/assimp/issues/2754 Just use newest assimp