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 > [email protected] > http://lists.clutter-project.org/listinfo/clutter-app-devel-list _______________________________________________ clutter-app-devel-list mailing list [email protected] http://lists.clutter-project.org/listinfo/clutter-app-devel-list
