Is it possible to define the underside of an image?

18 views
Skip to first unread message

Nikolai Yakovenko

unread,
Jul 2, 2013, 5:10:12 AM7/2/13
to leaves-d...@googlegroups.com
I'm looking at Leaves, as well as other platforms, for a way to "peel back" a playing card, looking at its corners, etc.

Is it possible to define the underside of the image being flipped over, or is that not possible without direct access to OpenGL libraries.

Thanks!
Nikolai

Nikolai Yakovenko

unread,
Jul 2, 2013, 5:19:56 AM7/2/13
to leaves-d...@googlegroups.com
I'm also thinking about a hack... like making a page totally transparent underneath, and flipping over two pages at once. Dunno. There has to be a way to make this happen, right?

Thanks,
Nikolai
ChinesePokerWireframes_squeeze_corner.png

Ryan Duckworth

unread,
Jul 2, 2013, 5:45:25 AM7/2/13
to leaves-d...@googlegroups.com, nickya...@gmail.com
This should be very easy to do.
Use the image example. Image #1 should be the back of the playing card... Design or picture.

Image #2 should be the value of the card. Example: King of hearts.

When you peel back the card, it will reveal the King of hearts.

If you want the corner of the card to be pealed back, you probably want to look at the iOS library: UIPageViewController

Because, leaves will turn the entire card along a vertical line, not just the corner.

--
You received this message because you are subscribed to the Google Groups "Leaves Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to leaves-develop...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
<ChinesePokerWireframes_squeeze_corner.png>

Nikolai Yakovenko

unread,
Jul 2, 2013, 6:00:21 AM7/2/13
to Ryan Duckworth, leaves-d...@googlegroups.com
Thanks Ryan for your suggestion.

I think I understand what you mean -- there's a card back, which peels
back to show a card front underneath. However, my A+ solution would be
something resembling a 3-D card with a front and a back. so the card
face would be on the *underside* of the image being peeled back. See
mockup attached.

My understanding is that that UIViewAnimationOptionTransitionCurlUp
does not allow showing a custom image on the under-side of the image
being peeled, or flipped over. Maybe I'm wrong?

The closest I've found is something implemented in OpenGL, which
rotates an image (book page) with unique front & back.
http://wdnuon.blogspot.com/2010/05/implementing-ibooks-page-curling-using.html

Everything else I've found seems to have a page-back that's a
see-through version of the front page. Maybe what I'm looking for just
isn't possible?

Thanks,
Nikolai
ChinesePokerWireframes_squeeze_corner.png
Reply all
Reply to author
Forward
0 new messages