Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model: not loading textures #373

Open
IntellectualKitty opened this issue Nov 17, 2023 · 1 comment
Open

Model: not loading textures #373

IntellectualKitty opened this issue Nov 17, 2023 · 1 comment

Comments

@IntellectualKitty
Copy link

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
Copy link

jiffygist commented Aug 22, 2024

The assimp headers in includes/ have this bug
assimp/assimp#2754
Just use newest assimp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants