Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 155289 - media-gfx/povray-3.6.1-r1 doesn't display properly under a compositing manager
Summary: media-gfx/povray-3.6.1-r1 doesn't display properly under a compositing manager
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Joe Peterson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-15 12:22 UTC by David Leverton
Modified: 2008-11-08 17:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch (3.6.1-argb-visuals.diff,1.36 KB, patch)
2006-11-15 12:23 UTC, David Leverton
Details | Diff
better patch (3.6.1-argb-visuals.diff,2.87 KB, patch)
2007-03-05 17:47 UTC, David Leverton
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Leverton 2006-11-15 12:22:31 UTC
When POV-Ray is invoked with the +D switch (to display a preview of the image as it renders) and a compositing manager (Compiz, Beryl, etc) is running, the POV-Ray window is partially transparent.  This happens because it chooses an ARGB visual without setting the alpha channel properly.
Comment 1 David Leverton 2006-11-15 12:23:03 UTC
Created attachment 102000 [details, diff]
patch

Patch to make it not use ARGB visuals.
Comment 2 David Leverton 2007-02-12 22:28:50 UTC
Comment on attachment 102000 [details, diff]
patch

Patch works, but is rather hackish - once we figure out how to fix this in FontForge I'll attach something similar here for POV-Ray.
Comment 3 David Leverton 2007-03-05 17:47:58 UTC
Created attachment 112187 [details, diff]
better patch

This one should be better.
Comment 4 Joe Peterson (RETIRED) gentoo-dev 2008-11-08 00:02:25 UTC
Just revisiting this bug...  Can you try the new 3.7.0 beta 29 version and see if the problem still exists?  If so, we should send the patch to upstream.

Thanks, Joe
Comment 5 David Leverton 2008-11-08 10:51:50 UTC
(In reply to comment #4)
> Just revisiting this bug...  Can you try the new 3.7.0 beta 29 version and see
> if the problem still exists?  If so, we should send the patch to upstream.

POV-Ray 3.7 switched to using SDL for display, which works fine under compositing.
Comment 6 Joe Peterson (RETIRED) gentoo-dev 2008-11-08 17:20:58 UTC
(In reply to comment #5)
> POV-Ray 3.7 switched to using SDL for display, which works fine under
> compositing.

SDL?  Are you referring to "Simple DirectMedia Layer"?  I don't see any indication that they use that.  Or are you talking about POV-Ray's "Scene Description Language", which is not display-related?

There are comments currently on the newsgroup, regarding beta 29, that mention they are still getting the kinks out the display functionality.  I am still seeing the ocasional X error, which is, I'm sure, part of this.  Also, people are still commenting about issues with compiz:

http://news.povray.org/povray.beta-test/thread/%3C48f34464@news.povray.org%3E/

I'll keep this bug open, and I'll ping the newsgroup as well to make sure this is a known issue that is being looked at...
Comment 7 David Leverton 2008-11-08 17:47:01 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > POV-Ray 3.7 switched to using SDL for display, which works fine under
> > compositing.
> 
> SDL?  Are you referring to "Simple DirectMedia Layer"?  I don't see any
> indication that they use that.

[dleverton@shiny-one ~] $ ldd /usr/bin/povray | grep -i sdl
        libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0x0000003df1c00000)

> Or are you talking about POV-Ray's "Scene Description Language", which is
> not display-related?

Hah, sorry for the confusion, I did indeed mean the other one.

> There are comments currently on the newsgroup, regarding beta 29, that mention
> they are still getting the kinks out the display functionality.  I am still
> seeing the ocasional X error, which is, I'm sure, part of this.  Also, people
> are still commenting about issues with compiz:
> 
> http://news.povray.org/povray.beta-test/thread/%3C48f34464@news.povray.org%3E/

I suspect they're either using an old version of SDL (IIRC it started to support ARGB properly in either 1.2.9, 1.2.10 or 1.2.11), or there's some other issue, apart from the one my patch is supposed to solve.  My current system doesn't want to run any Compiz or any other compositing manager in the main X session (yay for ATI), but I tried the new POV-Ray with xcompmgr under Xephyr and it works fine.
Comment 8 Joe Peterson (RETIRED) gentoo-dev 2008-11-08 17:52:46 UTC
OK, cool - thanks for trying it.  I'll close this out (as fixed in 3.7), but if the problem crops up again, feel free to reopen or make a new bug on the newer POV-Ray version.