hello, unfortunately the support for using Cogl through gobject-introspection is not the best, that's why accessing the CoglMaterial crashes your python interpreter.
However, giving the back actor a depth of -1 and calling Cogl.set_depth_test_enabled(True) should fix your problem. so long :wq buz On Mon, Apr 30, 2012 at 11:17:21AM +0200, Moritz Renftle wrote: > hi, > > i did some further experimenting and went back to approach 1: have two > rectangles with very small depth(z)-distance, rotating both in sync. > to achieve this, i changed the z-rotation center of the front page to > -50 and for the back page to 50. the result is here: > http://imagepaste.nullnetwork.net/viewimage.php?id=3759 > > i'm a bit puzzled, because as you can see in the animation, the red > rectangle gets in front of the green one, but one can still see the > green one through the red one. is this a bug? how can i bring the red > rectangle to the front? > > please help me ;), > moritz > > Am Sonntag, den 29.04.2012, 11:20 +0200 schrieb Moritz Renftle: > > Hello everybody, > > > > I'm trying to create a Rectangle, which has a different front and back > > side, so that if you turn it, you DON'T see the mirrored front-side but > > the back-side. I'm using python with pygobject. > > i've been trying this for several hours and couldn't find any solution. > > what i tried was: > > > > 1. have two rectangles with very small depth(z)-distance, rotating both > > in sync. i didn't manage to get one rectangle in front of the other one. > > > > 2. add front- and back-side of the page to a Clutter.Box with > > Clutter.BinLayout. this also made it look the same on both sides. > > > > 3. make use of a Clutter.DeformEffect which actually has a method > > "set_background_material()" that sounds promising. I pasted part of my code > > here: http://paste.ubuntu.com/953747/ > > but this approach doesn't work either, i get an error about the cogl > > material and if i change the order of the statements the program segfaults. > > what am i doing wrong? > > > > there must be an easier way! > > > > i would really appreciate your help cause it seems i won't succeed on my > > own! (the docs for pygobject + clutter seem rare) > > moritz > > > > > > _______________________________________________ > > clutter-app-devel-list mailing list > > clutter-app-devel-list@clutter-project.org > > http://lists.clutter-project.org/listinfo/clutter-app-devel-list > > > > _______________________________________________ > clutter-app-devel-list mailing list > clutter-app-devel-list@clutter-project.org > http://lists.clutter-project.org/listinfo/clutter-app-devel-list -- A morning without coffee is like something without something else. GnuPG Fingerprint: 2FFF FC48 C7DF 1EA0 00A0 FD53 8C35 FD2E 6908 7B82
signature.asc
Description: Digital signature
_______________________________________________ clutter-app-devel-list mailing list clutter-app-devel-list@clutter-project.org http://lists.clutter-project.org/listinfo/clutter-app-devel-list