I don't know the details of the bmp format, but you may want to check to see if it employs a stride in non-pow2 images, which would effect the offset of texels within the data. 'Stride' is essentially used for handling a 'padding' space at the end of each row which aligns the data to the next nearest pow2. The stride value should be either the width of the padding or else the width of a row with the padding included.
Can you post an image showing the kind of distortion you're getting?
Show differencesHistory of post edits
#2Khatharr
Posted 05 January 2013 - 11:31 PM
getPixelVector() does not set the alpha channel of the returned color.
I don't know the details of the bmp format, but you may want to check to see if it employs a stride in non-pow2 images, which would effect the offset of texels within the data. 'Stride' is essentially used for handling a 'padding' space at the end of each row which aligns the data to the next nearest pow2. The stride value should be either the width of the padding or else the width of a row with the padding included.
Can you post an image showing the kind of distortion you're getting?
I don't know the details of the bmp format, but you may want to check to see if it employs a stride in non-pow2 images, which would effect the offset of texels within the data. 'Stride' is essentially used for handling a 'padding' space at the end of each row which aligns the data to the next nearest pow2. The stride value should be either the width of the padding or else the width of a row with the padding included.
Can you post an image showing the kind of distortion you're getting?
#1Khatharr
Posted 05 January 2013 - 11:31 PM
getPixelVector() does not set the alpha channel of the returned color.<br /><br />I don't know the details of the bmp format, but you may want to check to see if it employs a stride in non-pow2 images, which would effect the offset of texels within the data. 'Stride' is essentially used for handling a 'padding' space at the end of each row which aligns the data to the next nearest pow2. The stride value should be either the width of the padding or else the width of a row with the padding included.<br /><br />Can you post an image showing the kind of distortion you're getting?