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
OpenGL resize freeze (Read 932 times)
OpenGL resize freeze
Sep 3rd, 2009, 11:29am
 
I have an application where I'm doing some 3D OpenGL graphics in Processing and this is embedded as a frame inside a Java application.  If I don't resize, everything works.  If I maximize the application, the OpenGL frame resizes appropriately and everything works.  However, if I try to resize by dragging the bottom-right corner of the application, it all freezes.  I have no idea why.
I tried putting print statements in the draw() function and found out that it's freezing _outside_ of the draw function.  

I don't know if it's related, but the lighting (not the shapes themselves; it's like the OpenGL light bulb is dying) flickers and I'm not sure why.  Less of an issue, but not sure if it's related or not.

Any ideas why the resizing is causing it to freeze?

Thanks,

-Ryan
Re: OpenGL resize freeze
Reply #1 - Sep 4th, 2009, 9:41am
 
It might depend on your configurations. Are you running the latest version of Processing V1.05 or more? It wasn't working for me on Ubuntu and it has been fixed for V1.04 (http://dev.processing.org/bugs/buglist.cgi?bug_status=__open__&content=sketch)

But I'm not familiar with Processing embedding. It should work the same I think.
Re: OpenGL resize freeze
Reply #2 - Sep 5th, 2009, 3:20pm
 
Thanks for the reply.  And yep, I'm using the latest version of processing... Has anyone else had this issue, or know why it might occur?
Page Index Toggle Pages: 1