SOIL_load_image and mipmaps
Members - Reputation: 252
Posted 16 May 2013 - 12:34 AM
Senior Moderators - Reputation: 9582
Posted 16 May 2013 - 01:58 PM
The third parameter isn't the number of mipmaps, it is the number of channels (which in your case will be 3, since you specify RGB).
The number of mipmaps should be roughly floor( log2( min(width, height) ) ).
Provided, of course, that your image has mipmaps, and SOIL is actually loading them. I haven't stared at the code in a while, but I seem to remember that one needed to use SOIL itself to do the upload to OpenGL, all in one shot, and specify the SOIL_FLAG_DDS_LOAD_DIRECT flag...
Tristam MacDonald - Software Engineer @Amazon - [swiftcoding]