Tutorial 05: trying my own .bmp files turns out black
leo-nerd opened this issue · 3 comments
leo-nerd commented
Hello. I'm trying to replace the included .bmp textures with other images. I'm keeping them 512x512. The cube renders all black. What am I missing? Thanks.
VBorisof commented
Do you have anything reported to the console? Maybe file was not found.
opengl-tutorial commented
BMP has multiple format and we only support one in the loader.
as per:
http://www.opengl-tutorial.org/beginners-tutorials/tutorial-5-a-textured-cube/#loading-bmp-images-yourself
Our bmp loader is more for curious mind that want to see all the details.
Not really something that should be used anywhere.
Maybe you could instead use a proper image loading library like
https://github.com/nothings/stb for instance.
*Damien Mabin*
website: http://www.opengl-tutorial.org/ <http://www.opengl-tutorial.org/>
Game dev @ Supercell
…On Sun, 26 Apr 2020 at 22:41, Seva Borisoff ***@***.***> wrote:
Do you have anything reported to the console? Maybe file was not found.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#103 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADAXISKN7XC3ITMPZHBCEADROSE6VANCNFSM4MGHBXFQ>
.
--
You received this message because you are subscribed to the Google Groups
"Contact opengl-tutorial.org" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to ***@***.***
To view this discussion on the web, visit
https://groups.google.com/d/msgid/contact-opengl-tutorialorg/opengl-tutorials/ogl/issues/103/619613643%40github.com
<https://groups.google.com/d/msgid/contact-opengl-tutorialorg/opengl-tutorials/ogl/issues/103/619613643%40github.com?utm_medium=email&utm_source=footer>
.
leo-nerd commented
Right - that's what I suspected, thanks for the info!