We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
GL_ERROR (Read 803 times)
GL_ERROR
Jan 13th, 2006, 6:31am
 
I've built an earth model which uses UV texture mapping of NASA "blue marble" images onto a QUAD sphere.  Here's the applet which should work:
 http://www.backspaces.net/files/play/

But I've run into an odd problem.  I have three sizes of the NASA image used, 2048 4096 8192 pix across, with the smaller as the default.

When I change the default to be 4096, and change from P3D to OPENGL, I get the following error:
GL_ERROR at before bind: 0501  GL_INVALID_VALUE

I can use all three resolutions using Processing & P3D with the memory set high .. as suggested in the FAQ.  But if I use OPENGL with either of the two larger sizes, I get the failure above.

Any ideas?
Re: GL_ERROR
Reply #1 - Jan 13th, 2006, 1:02pm
 
that error is because on most systems the max. texture size still is limited to 2048x2048 pixels, on many mac it's even just 512x512...

there should be a function to query the max. texture size available, but haven't got time to dig it out.

also check here:
http://www.google.co.uk/search?q=opengl+texture+2048+limit

Re: GL_ERROR
Reply #2 - Jan 13th, 2006, 3:20pm
 
i'll make a note to add something that'll check it internally to provide a more useful error message.
Re: GL_ERROR
Reply #3 - Jan 13th, 2006, 5:38pm
 
Thanks for the fast response!

So I could probably solve the problem by subdivision: break my larger pictures into smaller ones, and map them onto appropriate smaller spherical shapes?

Owen
Re: GL_ERROR
Reply #4 - Apr 14th, 2006, 2:58am
 
now fixed for 0112, which will provide an error message if you attempt to make a texture that's too large.
Page Index Toggle Pages: 1