Big Background Picture

Started by
1 comment, last by stefu 20 years, 8 months ago
How do you draw big background (800x600px)? glDrawPixels is slow (according to old posts). And max texture size is 256x256. I found something about creating one tmptexture, then using glTexSubImage2D to copy portion of image to texture and then render a textured qued. This the way to go? edit: Damn, got it totally wrong this time. I am mixing images and textures and everything [edited by - stefu on August 14, 2003 1:59:07 PM]
Advertisement
Try using several small textured quads instead of just one big?
This is the way Resident Evil was made. =)

"Game Maker For Life, probably never professional thou." =)
"Game Maker For Life, probably never professional thou." =)
This way?
Image image; // 800x600 image read from filevector<Image> subimages;image.sub(256,256,subimages); // Create 256x256 sized sub imagesGLuint texture; // existing 256x256 sized textureglBindTexture(texture);for each img in subimages:   glTexSubImage2D(texture, 0, 0, 0, 256, 256, img.buffer());   render quad with correct coordinates


[edited by - stefu on August 14, 2003 2:24:47 PM]

This topic is closed to new replies.

Advertisement