hoogltales.blogg.se

Plugin galaxy page curl
Plugin galaxy page curl









Orthogonal projection it's used by default. Since it's very much easier to map render target to screen size using Lightning, it's a more of a trick we use here, leaving us with something very close to flat shading actually.Z-buffering, really, we don't need to do depth check giving us a minor performance boost.If someone takes the work and calibrates it properly it might turn out to something. The more you press, the smaller it gets.Ĭurrently it's a vast one line 'hack', simply to show off it's there, mostly for experimenting,īut who knows. If you go and call tEnableTouchPressure(true),Ĭurl radius will be adjusted based on the touch pressure. With the kind help ofĪndrew Winter it was possible to do some experimenting There is an experimental flag unable to show on emulator.Some perspective rendering a cube without back face culling requires 8 vertices and 12 polygons. Rendering them as triangle strips end up producing approximately 50 polygons at most.Values and vary depending on curl position and angle. ~26 vertices for curled page + ~26 vertices for fake soft shadow.8 vertices for underlying pages, 4 for each.There are approximately 26 + 26 + 4 + 4 = 60 vertices at most.

#PLUGIN GALAXY PAGE CURL ANDROID#

Them is not a happy owner of Android device yet It's truly hoped performance is not that poor on actual device compared Besides these exceptions, let it be as-is implementation or - maybe more preferably - as an example for implementing your own effect.įor the ones without Android development environment, and/or people willing to take onlyĪ brief look on what's happening here, there are a few video captures. See NOTICE for any exceptions, these include namely the application icon and images used in the demo.

plugin galaxy page curl

The source code is released under Apache 2.0 and can be used in commercial or personal projects. Project for implementing 'page curl' effect on Android + OpenGL ES 1.0 (possibly 1.1/2.0 too if there's clear advantage in using them).









Plugin galaxy page curl