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 am using the netbeans platform and so I can't use GLCanvas, since it can't be properly resized and on Windows it has an error everytime the user drags the containing window to another location in the platform.
To solve those issues, I switched to the GLJPanel. Now everything is really slow and interaction with the mouse via zoom, etc, seems really jerky. My netbeans module component that has the GLJPanel is at https://github.com/mtakemiya/BMIDesktop/blob/5ab945cb190fb82bd83f38663071b6c45a950d59/timeline/src/jp/atr/dni/bmi/desktop/timeline/TimelineTopComponent.java Am I doing something obviously wrong? What is a good way to improve the performance so this is usable? Even with almost nothing in my render method, it is really slow! However, if I switch back to GLCanvas, everything is really fast, so I know the problem is with the GLJPanel. I am using build jogl-2.0-b23-20110303 |
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
|
On Thursday, June 30, 2011 03:05:06 AM makoto1337 [via jogamp] wrote:
> > I am using the netbeans platform and so I can't use GLCanvas, since it can't > be properly resized and on Windows it has an error everytime the user drags > the containing window to another location in the platform. > > To solve those issues, I switched to the GLJPanel. Now everything is really > slow and interaction with the mouse via zoom, etc, seems really jerky. > > My netbeans module component that has the GLJPanel is at > https://github.com/mtakemiya/BMIDesktop/blob/5ab945cb190fb82bd83f38663071b6c45a950d59/timeline/src/jp/atr/dni/bmi/desktop/timeline/TimelineTopComponent.java > > Am I doing something obviously wrong? What is a good way to improve the > performance so this is usable? Even with almost nothing in my render method, > it is really slow! > ... [show rest of quote] - http://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/javax/media/opengl/awt/GLCanvas.html#java2dgl - http://jogamp.org/wiki/index.php/Jogl_FAQ#Why_using_Swing_for_high_performance_is_not_a_good_idea_.3F If you cannot use GLJPanel in an hw accelerated manner (usually the case), you may like to try our NEWTCanvasAWT: - http://jausoft.com/blog/2010/11/28/newt-threading-overview/ Hope this is helpful. ~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 |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
This post was updated on Jun 30, 2011; 9:37am.
Sven,
Thanks for the reply. I can use the GLJPanel if I set sun.java2d.opengl to false, but then the performance is not so good. NEWT seems to just crash instantly in NetBeans on my Mac. I am wondering, has anyone successfully used it inside a Netbeans module project before? Has anyone managed to successfully use JoGL in netbeans recently? If so, what is the best type of panel to use? GLCanvas, GLJPanel, or NEWT? |
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
|
On Thursday, June 30, 2011 08:59:17 AM makoto1337 [via jogamp] wrote:
> > Sven, > > Thanks for the reply. > > NEWT seems to just crash instantly in NetBeans on my Mac. I am wondering, > has anyone successfully used it there before? No. Sorry, OSX is a loose end for NEWT :( > > Has anyone managed to successfully use JoGL in netbeans recently? If so, > what is the best type of panel to use? GLCanvas, GLJPanel, or NEWT? Well, then you may better stick w/ GLCanvas, until I port this over to OSX properly. ~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 |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
This post was updated on Jul 06, 2011; 1:00am.
Inside of Netbeans, I cannot get GLCanvas to work on Windows or Linux. In Netbeans on my Mac, the GLCanvas can't resize, so using the GLCanvas is not an option.
If I get the chance I will try out NEWT for Windows and Linux. Not sure if it will work inside the Netbeans platform, though, as nothing seems to work correctly. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Using the GLJPanel, I also cannot get keyevents. Is there a fix for this?
On the Mac, I cannot resize GLCanvas inside the netbeans framework. |
Free forum by Nabble | Edit this page |