jlfreund
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2013
10:08 PM
Animating with roImageCanvas
Hi,
I have an roImageCanvas with 2 layers, each with a fullscreen image + a few pieces of text on top. I want the second layer to animate sliding over the first. The only way I can seem to get it to work is to recreate the 2nd layer's content from scratch each frame; just doing AddReplace on the layout properties and calling SetLayer + Show isn't sufficient. And even then, it seems to require a Sleep(1000) between each Show -- shorter values start skipping frames. So it doesn't seem this will ever optimize down to something like 30FPS.
Is there another way to accomplish this -- without sacrificing the ability to paint both text + at least 2 fullscreen images?
Thanks,
Jason
I have an roImageCanvas with 2 layers, each with a fullscreen image + a few pieces of text on top. I want the second layer to animate sliding over the first. The only way I can seem to get it to work is to recreate the 2nd layer's content from scratch each frame; just doing AddReplace on the layout properties and calling SetLayer + Show isn't sufficient. And even then, it seems to require a Sleep(1000) between each Show -- shorter values start skipping frames. So it doesn't seem this will ever optimize down to something like 30FPS.
Is there another way to accomplish this -- without sacrificing the ability to paint both text + at least 2 fullscreen images?
Thanks,
Jason
1 REPLY 1
renojim
Community Streaming Expert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2013
10:13 PM
Re: Animating with roImageCanvas
You should check out roScreen. You'll never get that kind of performance from an image canvas.
-JT
-JT
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.