2008/9/23 Tim Nugent <[EMAIL PROTECTED]>: > > > 2008/9/22 James Legg <[EMAIL PROTECTED]> >> >> 2008/9/22 Tim Nugent <[EMAIL PROTECTED]>: >> > >> > James, >> > >> > On a slightly different note - will it be possible for the OpenGL >> > preview to work while running Compiz on Linux? At the moment the two >> > don't play nicely together. >> > >> > Cheers, >> > Tim >> > >> >> Xgl doesn't work on my laptop, so I don't know what happens... >> >> Is your problem GUI widgets are painted black, as described here: >> http://trac.wxwidgets.org/ticket/4097 >> Or is it the freezing described here: >> http://ubuntuforums.org/showthread.php?t=492725 >> From those pages, it doesn't look like there is an obvious solution. >> >> Using xfwm4's compositor (which doesn't use OpenGL or require Xgl) I >> do notice a problem though, whenever part of the preview is exposed it >> doesn't redraw automatically. Other OpenGL apps have similar problems. >> Do you have this problem under Compiz? >> >> I guess an application doesn't get expose events when a compositing >> window manager thinks it has an up to date copy of the contents of the >> window. It doesn't work for the preview, as the window manager's copy >> doesn't include stuff rendered directly in OpenGL (at least in xfwm4). >> In that case, how do I know when to redraw it? >> >> James > > > Sounds like it might be similar to your problem - the display just doesn't > show up, unless I'm moving the sliders. So yes perhaps the window manage > should be doing an update. > > I just tried to run Neverball which is OpenGL/SDL and that seems to behave > ok (until you I start spinning the cube etc). Events might be coming via SDL > though.. >
Neverball (and glxgears and the like) would be rendering continuously. Hugin's preview, and applications like Blender shouldn't be doing this. So they get blatted when compiz decides to do a redraw. If doing something like turning the drag tool on and off doesn't get the preview on the screen long enough, then we'll have to resort to redrawing continuously (a waste of cpu cycles!). Research shows all direct rendered stuff will have various problems under Compiz: https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/96991 ...until xorg has "Redirected direct rendering", which might take a long time. It's not an issue with NVidea's proprietry driver, apparently, as that replaces bits of xorg. However at all other times using direct rendering and Compiz together is a bad thing. I think the temporary solution is to not use Compiz, or to rewrite the OpenGL parts for Cairo or some other graphics library that doesn't have to use direct rendering. I don't think using a different library is a reasonable solution, so I guess Hugin should issue a warning if you try to use the OpenGL preview while using Compiz. James --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "hugin and other free panoramic software" group. A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/hugin-ptx -~----------~----~----~----~------~----~------~--~---
