Re: NSGLImage doesnt open large images
Re: NSGLImage doesnt open large images
- Subject: Re: NSGLImage doesnt open large images
- From: Edward Hillenbrand <email@hidden>
- Date: Thu, 10 Mar 2005 17:59:36 -0700
On Mar 10, 2005, at 5:28 PM, Pradeep Kumar wrote:
Yes, there is a query for this. I get a value 2048. So whenever the
image size is greater than
2048 pixs in width or height the image doesn't display. However there
are some images
which are less than this size which doesnt display properly. Although
openGL doesn't report
any error for such images, it displays garbled up. It's like there is
some difference in the
parameters between the image and the parameters that are used by
openGL. It's like some
kind of mismatch in the row bytes.
I am reconsidering the use of openGL for displaying images because of
these issues unless
someone has a way to solve this problem.
"Before I start explaining the code there are a few VERY important
things you need to know about the images you plan to use as textures.
The image height and width MUST be a power of 2. The width and height
must be at least 64 pixels, and for compatability reasons, shouldn't be
more than 256 pixels. If the image you want to use is not 64, 128 or
256 pixels on the width or height, resize it in an art program. There
are ways around this limitation, but for now we'll just stick to
standard texture size"
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=06
I don't know if this is the problem or not, but I remembered reading it
back when I was experimenting with OpenGL.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden