I’m trying to do a poker game in openGL. I’m using Paint.net to create the card faces and deck backs. I modified a tutorial from swiftless.com (Donald Urquhart AKA Swiftless) for texturing a 2D plain. I’m using a .bmp file with a resolution of 400pixel wide by 700 pixel height. My problem is that then I run my program ( all it does is map my card back image to a 2D plane and rotate it on all three axis) the card back image is vertically aligned (top to bottom), but it looks horizontally shifted to the right by about 100 pixels, such that the black border around the image is not at the edges of the 2D plain. I can also see a blue “seam” at that 100 pixel mark. My first question would be what is the best format to use for this type of image texturing, and how would I correct the horizontal offset. As a “quick fix” I changed the pixels to 700x700, centered my image and filled the 150 pixels on each side with black. But I would rather not settle on this as a solution, is there a library header file to collect .bmp file specs and delegate them to correct the processing error or is it simple enough that I could write my own?
Any suggestions would be a great help.