View Full Version : 3D models and textures loading

04-15-2014, 07:56 AM
Hello everyone. I just have started learning OpenGL, and i have a problem. I am reading OpenGL SuperBible, i have all sample code, models, textures and other stuff from that book. I just have reached topic about textures, models and everything is okay, but models in samples are in "SBM" format, and textures are in "KTX". All i want to load models in other format(obj,3ds), and load textures in png or other popular format. How i can do it? Please, give me some code or something. Thanks for help!
I have downloaded all samples from here: openglsuperbible.com
P.S. I am programming with C++

04-15-2014, 06:09 PM
try this (http://www.opengl-tutorial.org/beginners-tutorials/tutorial-5-a-textured-cube/)for loading textures and this (http://www.opengl-tutorial.org/beginners-tutorials/tutorial-7-model-loading/)for obj's - remember Google is your friend