Re: Re: NSGLImage doesnt open large images
Re: Re: NSGLImage doesnt open large images
- Subject: Re: Re: NSGLImage doesnt open large images
- From: "Pradeep Kumar" <email@hidden>
- Date: 11 Mar 2005 01:02:59 -0000
It seems the minimum texture size is 16x16. For the images that are displayed garbled, the
size was not a multiple of 16. All images that are multiples of 16 and less than 2048 display
correctly. Other images dont display.
This raises the question, is OpenGL ideal for displaying static images? Any thoughts?
-
prady
On Fri, 11 Mar 2005 John Stiles wrote :
>My guess would be that you're going over the maximum texture size.
>OpenGL doesn't let you create arbitrarily large textures; there's a limit. I'm pretty sure the
limit is queryable.
>
>
>On Mar 10, 2005, at 12:31 PM, Pradeep Kumar wrote:
>
>> Hi
>>
>> I have been trying to use NSGLImage sample code provided by Apple. It works fine for
small
>> images (less than 2300pixs width). But for larger images (> 2400 pixs) it gives an error
>> WARNING: OpenGL Error 0x501 while loading texture with glTexImage2D()
>>
>> The view doesnt display the image. The image is a JPEG image taken using a 5MP
digital
>> camera.
>>
>> Does anyone know why this is happening? I am new to openGL.
>>
>> TIA
>> prady
>>
>>
>> <inbox.gif> _______________________________________________
>>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
>
_______________________________________________
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