The MASM Forum Archive 2004 to 2012

Project Support Forums => OpenGL Forum => Topic started by: mr_empty on December 11, 2009, 01:42:35 AM

Title: maximum resolution of image load by openGL
Post by: mr_empty on December 11, 2009, 01:42:35 AM
hi all,

  i want to load a very high resolution of image, say about 30000X40000, is that support by openGL?thanks!
Title: Re: maximum resolution of image load by openGL
Post by: oex on December 11, 2009, 02:33:18 AM
Not to my knowledge I think the highest accepted by most cards is 4096x4096 (less for some), I guess it really depends what you want to do with it
Title: Re: maximum resolution of image load by openGL
Post by: xanatose on December 21, 2009, 01:38:09 PM

GLint textureSize;
glGetIntegerv(GL_MAX_TEXTURE_SIZE, &textureSize);

The maximum I have seen is 8192x8192

Instead of displaying a huge image, why not divide it in chunks of 512x512 or 1024x1024?
Title: Re: maximum resolution of image load by openGL
Post by: Farabi on December 22, 2009, 02:06:19 AM
Quote from: xanatose on December 21, 2009, 01:38:09 PM

GLint textureSize;
glGetIntegerv(GL_MAX_TEXTURE_SIZE, &textureSize);

The maximum I have seen is 8192x8192

Instead of displaying a huge image, why not divide it in chunks of 512x512 or 1024x1024?

GLUbuildmipmap will make things slower for that.