Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
I keep getting this error every other time I try to run my program (see attached picture). It all started when I made the switch to GLWindow (Newt).
![]() My configurations: Windows Vista. Intel dual core processor. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
Hi
Please provide a small test case to allow us to reproduce your bug. Do you use both AWT and NEWT? Do you use the latest aggregated build?
Julien Gouesse | Personal blog | Website
|
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
In reply to this post by Pixelapp
After a second look, it seems there is no problem with jogl. It has to do with the larger scheme of my code.
If I'm unable to sort it out, I'll come back. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
Ok. Maybe it has something to do with your threading.
Julien Gouesse | Personal blog | Website
|
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Yes, but I used to utilize JPanel with GLCanvas and this never happened.
|
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
A code working with GLCanvas might not work anymore with NEWT because of a problem in the threading. For example, this aspect is not handled in the same way in Ardor3D in which I added the support of GLWindow and NewtCanvasAWT. Are you sure you perform all OpenGL calls in the GLEventListener or by using invoke(boolean,GLRunnable)?
Julien Gouesse | Personal blog | Website
|
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
This is how I do it.
public class Wavelogy implements GLEventListener { public static void main(String[] args) { try { //Schedule a job for the event dispatch thread: //creating and showing this application's GUI. SwingUtilities.invokeAndWait( new Runnable() { public void run() { new Wavelogy(); } } ); } catch (Exception e) { System.out.println("Couldn't start program."); } } } What is it that you mean gouessej? |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
Actually, you should not use SwingUtilities.invokeAndWait with GLWindow, I don't see why you do that. Your GLEventListener should not contain the static main method, you should respect the principle of "separation of concerns". Maybe have a look at existing examples in JogAmp repository. Do you use an animator?
Julien Gouesse | Personal blog | Website
|
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Yes, I use an animator.
|
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
In reply to this post by gouessej
I'll remove the swing utility, if it doesn't work I'll come back to this post.
Also, I used the swing utility because of the Java 2D API. Since the Java 2D api doesn't work properly without it. Moreover I quit using the Java 2D api a long time ago, this bit of code was just there because It didn't caused any problem before. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
In reply to this post by gouessej
Thanks gouessej, it runs faster and with no halts.
![]() |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
In reply to this post by Pixelapp
On 06/14/2012 12:17 AM, Pixelapp [via jogamp] wrote:
> I'll remove the swing utility, if it doesn't work I'll come back to this post. > > Also, I used the swing utility because of the Java 2D API. Since the Java 2D > api doesn't work properly without it. Moreover I quit using the Java 2D api a > long time ago, this bit of code was just there because It didn't caused any > problem before. As Julien pointed out, if using NEWT [including NewtCanvasAWT] all NEWT related stuff, incl. using the GLWindow [even in combination w/ NewtCanvasAWT] is orthogonal to AWT. In short: In such cases - don't worry or even use the AWT thread. ~Sven |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
In reply to this post by Pixelapp
You're welcome. I'm glad for you.
Julien Gouesse | Personal blog | Website
|
Free forum by Nabble | Edit this page |