I need a help …some one how can tell me what kind of error I am doing
What I had a textures that carry my height field which are now working fine. Well, those textures use borders i.e the resolution (1026X1026) since I wanted to use (1024X1024) with 2 pixels borders as:
now is the problem
I want to use same thing i.e textures with borders for data from Bitmaps
Well, I have loaded the Bitmap into and RGB array and then do the same like before. The problem that I faced is that I get weird colors which means clearly that some thing wrong but I am sure that all the settings of the texture and data array are correct.
glTexImage2D(GL_TEXTURE_RECTANGLE_ARB, 0, GL_RGB16F_ARB, 1026, 1026, 0, GL_RGB, GL_UNSIGNED_BYTE,bitmapdata);
What I have done to understand the problem:
- use another Bitmap with resolution (1024X1024) ::: every thing is working fine.
- So,I expected that the problem might be that I am using not power of tow textures, therefore I have tested the code with
BUT stil working fine for bitmaps with (1024X1024) and also
bitmaps for NPOT but till 1024 not more that this resolution
However, I think the problem is not the my driver is not supporting resolution more that 1024 because I had used it for height field as I mensioned before
I really now feel that I am missing some important things which is honestly I do not know them…
So, if anyone can know why or at least know some important references that would be helpful