How come I have negative #'s after reading .bmp info into memory ????

after I load .bmp files, Head, info, I read .bmp actual definition into array(RGB for each pixel)… However when I debug the program, and look into the content of the array, I see negative Values… I was expecting values between 0 and 255 for each color R,G,B…

However when I post the Texture on the Quad, it is displayed correctly…

I want to create uneven terrain using info from the bitmap. So are the -#'s not the error, I just have to check if its -# then I multiply by -1, to make it positive ???

Putting on my Amazing RTS the Mentalist hat, without seeing your code, I’m going to guess you want to say “unsigned char” instead of plain old “char” in your BMP stuff.

Just a guess. Posting code would help us help you better.