Hi;

Tidy Texture reflection is pretty broken / limited in what it supports -
new COGL should fix it. Assuming the video is showing (but not
reflection) but guess is the video is playing back on a POTs sized
texture and the reflection only supports NPOTS. Do you see any warnings
or anything ?

  == Matthew

On Fri, 2008-04-18 at 18:24 -0400, Kashyap Ashwin wrote:
> Hello,
> 
> I am trying to add reflection effect to a video playback. Is this
> possible?
> 
>  
> 
> I modified the python videosionk.py as follows:
> 
>  
> 
> def main (args):
> 
>     stage = clutter.Stage()
> 
>     stage.set_size(320,480)
> 
>     stage.set_color(clutter.color_parse('DarkSlateGrey'))
> 
>     stage.connect('key-press-event', clutter.main_quit)
> 
>  
> 
>     # Creates a gstreamer texture
> 
>     video_texture = clutter.Texture()
> 
>     video_texture.show()
> 
>  
> 
>     # reflection
> 
>     reflect = tidy.TextureReflection(video_texture)
> 
>     reflect.set_opacity(100)
> 
>     #reflect.set_position(0, 450)
> 
>     reflect.show()
> 
>  
> 
>     pipeline = gst.Pipeline()
> 
>  
> 
>     src = gst.element_factory_make("audiotestsrc")
> 
>     goom = gst.element_factory_make("goom")
> 
>     colorspace = gst.element_factory_make("ffmpegcolorspace")
> 
>  
> 
>     # Attaches the output texture to gstreamer sink
> 
>     sink = cluttergst.VideoSink(video_texture)
> 
>  
> 
>     pipeline.add(src, goom, colorspace, sink)
> 
>     gst.element_link_many(src, goom, colorspace, sink)
> 
>     pipeline.set_state(gst.STATE_PLAYING)
> 
>  
> 
>     stage.add(video_texture)
> 
>     stage.add(reflect)
> 
>     stage.show_all()
> 
>     clutter.main()
> 
>  
> 
>     return 0
> 
>  
> 
> if __name__ == '__main__':
> 
>     sys.exit(main(sys.argv[1:]))
> 
>  
> 
> I don’t see the reflection. I have tried to change the position of the
> reflected texture (thinking it was occluded). No luck.
> 
>  
> 
> Can some one please tell me if I am messing up something?
> 
>  
> 
> Thanks,
> 
> Ashwin
> 
>  
> 
>  
> 
> 

-- 
To unsubscribe send a mail to [EMAIL PROTECTED]

Reply via email to