Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-10

GLScene flickers in GTK2 and TJpegImage error

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Paulo Malheiros

Hello,

I installed the new release of Lazarus, great work by the way, but the GLScene components are not totally compatible, using SVN from http://svn.freepascal.org/svn/fpcprojects/glscene/trunk/ .

On the Actor demo compiling gives an 'EConvertError' with the message "Cannot assign a TJpegImage to a TGLBitmap32". I've seen in previous discussions that Image formats have changed in Lazarus, any ideas on how to make the change in GLScene?

The other problem is using in GTK2, GLscene flickers horribly which didn't happened in 0.9.24 (can be checked with Volcano demo). What has changed in GTK2 for this to happen?

I can try and fix this, just need some directions :-)

Regards,
Paulo Malheiros

Reply by email

Burkhard Carstens
to Paulo Malheiros
Paulo Malheiros wrote 10 lines
Hello, I installed the new release of Lazarus, great work by the way, but the GLScene components are not totally compatible, using SVN from http://svn.freepascal.org/svn/fpcprojects/glscene/trunk/ . On the Actor demo compiling gives an 'EConvertError' with the message "Cannot assign a TJpegImage to a TGLBitmap32". I've seen in previous discussions that Image formats have changed in Lazarus, any ideas on how to make the change in GLScene?

This should be fixed with glscene svn rev. 2262

The other problem is using in GTK2, GLscene flickers horribly which didn't happened in 0.9.24 (can be checked with Volcano demo). What has changed in GTK2 for this to happen?

Did this work ok with a recent glscene svn version (> r2228) and laz 0.9.24 ? I changed some things regarding rendering context creation device context handling in glscene in around r.2228 .. that could have caused it, too. I don't use gtk2 so I wouldn't have noticed ..

I can try and fix this, just need some directions :-)

* try with svn r. 2227 (or any earlier version that worked for you) and current laz.
* check Source/platform/gllclviewer.pas and Source/platform/ gllingtkcontext.pas if you find things to improve ...
* get in touch on freenode.net IRC #glscene channel

regards
Burkhard

Reply by email

Reenen Laurie
to Burkhard Carstens
The other problem is using in GTK2, GLscene flickers horribly which didn't happened in 0.9.24 (can be checked with Volcano demo). What has changed in GTK2 for this to happen?

I also got that when I used gtk2, and I was under the impression that gtk2 is not 100% supported yet.

If I recall correctly, it flickers only when the cadencer is running, but I may be wrong, it's been a while since I tested it.

o__ ,_.>/ _ (_)_\(_)_______ ...speed is good _______________ I believe five out of four people have a problem with fractions. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20081017/a06810ff/attachment.html

Reply by email

Paulo Malheiros
to Burkhard Carstens: This should be fixed with glscene svn rev. 2262 Did this work ok with a recent glscene…

Hello Burkhard

Thanks for the fix, the 'EConvertError' is in fact corrected.

I'll take a look at the Gtk2 flicker as you suggested. This issue becomes important because Lazarus is now officially in Gtk2. I remember some people talking about some issues in double-buffering Gtk2 a while back, so probably this problem might not have come from any of your changes.

Best regards,
Paulo

Quoting Burkhard Carstens :

Show quoted text 41 lines
Am Donnerstag, 16. Oktober 2008 14:01 schrieb Paulo Malheiros: > Hello, > > I installed the new release of Lazarus, great work by the way, but > the GLScene components are not totally compatible, using SVN from > http://svn.freepascal.org/svn/fpcprojects/glscene/trunk/ . > > On the Actor demo compiling gives an 'EConvertError' with the message > "Cannot assign a TJpegImage to a TGLBitmap32". I've seen in previous > discussions that Image formats have changed in Lazarus, any ideas on > how to make the change in GLScene? This should be fixed with glscene svn rev. 2262 > The other problem is using in GTK2, GLscene flickers horribly which > didn't happened in 0.9.24 (can be checked with Volcano demo). What > has changed in GTK2 for this to happen? Did this work ok with a recent glscene svn version (> r2228) and laz 0.9.24 ? I changed some things regarding rendering context creation device context handling in glscene in around r.2228 .. that could have caused it, too. I don't use gtk2 so I wouldn't have noticed .. > > I can try and fix this, just need some directions :-) * try with svn r. 2227 (or any earlier version that worked for you) and current laz. * check Source/platform/gllclviewer.pas and Source/platform/ gllingtkcontext.pas if you find things to improve ... * get in touch on freenode.net IRC #glscene channel regards Burkhard _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Paulo Malheiros
to Reenen Laurie: I also got that when I used gtk2, and I was under the impression that gtk2 is not 100%…
Show quoted text 9 lines
> The other problem is using in GTK2, GLscene flickers horribly which > didn't happened in 0.9.24 (can be checked with Volcano demo). What > has changed in GTK2 for this to happen? I also got that when I used gtk2, and I was under the impression that gtk2 is not 100% supported yet. If I recall correctly, it flickers only when the cadencer is running, but I may be wrong, it's been a while since I tested it.

I tried the Cubemap example that has no cadencer and the problem persists.

I have to look somewhere else, but thanks for the tip ;-)

Regards, Paulo

Reply by email