jubei_GL
05-01-2002, 05:48 PM
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 ????
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 ????