Comments (8)
This is in my todo-list. I will have to add rectangles with a semi-transparent texture so make the shadows.
from xbpagecurl.
Awesome, thanks for the great work!
from xbpagecurl.
I am eager to get back to work on this feature, but I am still struggling to find some spare time. You can also write some code to contribute to the project if you want ;)
from xbpagecurl.
Unfortunately, OpenGL ES 2 with the shader language is a bit over the top of my head. But I just submitted a little fix. See pull: #34
from xbpagecurl.
Hi,
I have another related question to the shadowing on the topside when the page is curled. How is the shadowing cast by the page curl on the topside generated? I figured out both the bottom shadow and texture shader, but I am having trouble with the top shadow generator.
I am trying to implement similar to IOS maps app. by creating a static image (pic of page slightly curled over) as the page curl drag handler, which works great but when I try to tightly crease the bottom anchor point to match the static image (see code below for bottom anchor settings)
// XBSnappingPoint _point = [[[XBSnappingPoint alloc] init] autorelease];
// point.position = CGPointMake(self.viewToCurl.frame.size.width_0.950, self.viewToCurl.frame.size.height*0.1);
// point.angle =M_PI/3;
// point.radius = 10;
// [self.pageCurlView.snappingPoints addObject:point];
// self.bottomSnappingPoint = point;
there is a load of shadowing. So when I transition from the bottom anchor point to the static image (like the IOS Maps app) its a bit in your face.
Any help or pointers in the correct direction would be great.
Cheers.....
from xbpagecurl.
@TroySob do you have any screenshots of that? Are you using XBPageDragView? The initial angle is hardcoded.. that needs to be made easily configurable.
from xbpagecurl.
I found that the map curl animation of Apple's Maps app not only casts a shadow on the front view (=mapView) but also dims the map view. The dimming effect is stronger the more the view is curled. Would that be easier to implement than the shadow?
from xbpagecurl.
Yes, that is something that still have to be implemented. I've spent some time thinking about how that could be done. Initially, I thought about using a couple textured quads with gradient textures which I would distort and rotate based on the cylinder properties. That turned out to be very complex to manage.. Now I am thinking about implementing Percentage-Closer Soft Shadows (http://developer.download.nvidia.com/shaderlibrary/docs/shadow_PCSS.pdf) which will be a general solution and will also allow us to change the camera position and still have correct shadows in the scene.
from xbpagecurl.
Related Issues (20)
- Weird behavior of the example project HOT 3
- tap to uncurl
- Curl -- corner doesn't always pick up HOT 4
- some bug
- XBPageCurl curling acting weird
- another gpus_ReturnNotPermittedKillClient crash HOT 2
- How to implement pages flipping like iBook? HOT 1
- Page Flipping in Two Page Book HOT 1
- Source differences between Git and Cocoapods HOT 1
- duplicate symbol _XBAnimationInterpolatorEaseInOut HOT 3
- updating the frame of the curlView for the next page HOT 2
- Calling drawImageOnNextPage: not working
- Unable to use this library in Swift.
- OpenGL Error 501 in console logs
- EXC_BAD_ACCESS in applicationWillResignActiveNotification
- curl animation don't work very well on IPhone 6 HOT 1
- curl effect render hide and show
- won't compile cleanly. Needed: In XBAnimation.h, the 4 blocks need to be marked extern
- https://github.com/bachelora/iOS-PageCurl-OpenGL
- Unable to integrate this onto the Swift project HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xbpagecurl.