Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Snapshot of GLCanvas
Snapshot of GLCanvas [message #329109] Thu, 12 June 2008 22:00 Go to next message
Eclipse UserFriend
Originally posted by: micha.bgl.gmx.de

Hi,

I try to make a snapshot (gc.copyArea) of an OpenGLCanvas with some
OpenGL-Stuff implemented with JOGL. Finally I get also my snapshot, but the
OpenGL-Animation is never displayed in the image. Is there something to get
also the OpenGL-Animation displayed in the GLCanvas displayed in the image ?
Thanks in advance.

ciao,
micha
Re: Snapshot of GLCanvas [message #329135 is a reply to message #329109] Fri, 13 June 2008 15:08 Go to previous messageGo to next message
Wayne Beaton is currently offline Wayne BeatonFriend
Messages: 554
Registered: December 2017
Senior Member
If I understand correctly, I think I've seen this before. It may be the
case that the OpenGL stuff is being drawn in an overlay layer.

I found this link that describes the problem and may provide a solution.

http://labnol.blogspot.com/2005/11/capture-still-images-from -windows.html

I think this part might be the most helpful:

If this sorts out the problem, please report back your results to this
group.

HTH,

Wayne

On Fri, 2008-06-13 at 00:00 +0200, Michael Weber wrote:
> Hi,
>
> I try to make a snapshot (gc.copyArea) of an OpenGLCanvas with some
> OpenGL-Stuff implemented with JOGL. Finally I get also my snapshot, but the
> OpenGL-Animation is never displayed in the image. Is there something to get
> also the OpenGL-Animation displayed in the GLCanvas displayed in the image ?
> Thanks in advance.
>
> ciao,
> micha
>
Re: Snapshot of GLCanvas [message #329136 is a reply to message #329135] Fri, 13 June 2008 15:09 Go to previous messageGo to next message
Wayne Beaton is currently offline Wayne BeatonFriend
Messages: 554
Registered: December 2017
Senior Member
Sorry... somehow, I hit send by accident...

On Fri, 2008-06-13 at 11:08 -0400, Wayne Beaton wrote:
> I think this part might be the most helpful:

To disable graphics hardware acceleration globally for all applications
in Windows XP or Windows 2000, Select
Control Panel - Display - Properties - Settings - Advanced -
Troubleshooting and slide the Hardware Acceleration slider from Full to
None.

HTH,

Wayne
Re: Snapshot of GLCanvas [message #329160 is a reply to message #329109] Sun, 15 June 2008 18:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: micha.bgl.gmx.de

Hi Wane,

thanks for your post. But finally, it was as you said some OpenGL-stuff.
JOGL provides therefore a wonderful method (Screenshot.writeImageFile(...)).
So this works. now I have the problem to make a screenshot of a TableViewer.
I need to say, that I change the view (loading new content) and I make then
a screenshot. All labels are fine. But the tableviewer is always too late
filled with the content. So the table in my screenshot is empty. Even with
Thread.sleep it seems that the table filling stops for a moment. So the
result is the same. Any ideas ?

"Michael Weber" <micha.bgl@gmx.de> schrieb im Newsbeitrag
news:g2s69n$vr9$1@build.eclipse.org...
> Hi,
>
> I try to make a snapshot (gc.copyArea) of an OpenGLCanvas with some
> OpenGL-Stuff implemented with JOGL. Finally I get also my snapshot, but
> the OpenGL-Animation is never displayed in the image. Is there something
> to get also the OpenGL-Animation displayed in the GLCanvas displayed in
> the image ? Thanks in advance.
>
> ciao,
> micha
>
Re: Snapshot of GLCanvas [message #329162 is a reply to message #329109] Sun, 15 June 2008 19:21 Go to previous message
Eclipse UserFriend
Originally posted by: micha.bgl.gmx.de

Ok, I got it. During updating the TableViewer I set the TableViewer
invisible and after again visible. It seems that this operation slows the
fast displaying of the TableViewer after the update of the content.

But thanks again for your post Wayne.

regards,
Michael

"Michael Weber" <micha.bgl@gmx.de> schrieb im Newsbeitrag
news:g2s69n$vr9$1@build.eclipse.org...
> Hi,
>
> I try to make a snapshot (gc.copyArea) of an OpenGLCanvas with some
> OpenGL-Stuff implemented with JOGL. Finally I get also my snapshot, but
> the OpenGL-Animation is never displayed in the image. Is there something
> to get also the OpenGL-Animation displayed in the GLCanvas displayed in
> the image ? Thanks in advance.
>
> ciao,
> micha
>
Previous Topic:eclipse RC3
Next Topic:Dynamic drop-down menu for a toolitem
Goto Forum:
  


Current Time: Fri Sep 27 09:31:59 GMT 2024

Powered by FUDForum. Page generated in 0.05996 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top