By chwastek
on Wed, 02/06/2013 - 12:13
Hi,
I tried to change a bit CloudReco sample, so that I can show a slideshow insted of one image. Ended up with various wrong results:
- on target it's showing one slide, off target another one... this is the most frequent situation. Do I have to do something extra to be able to show norml slideshow insted of one resource? I made a method to switch slides, but I ended up with static image (slide #1) on target and static image off target (slide #3).... any idea?
I have a NSMutableDictionary in my Content class (equvalent of Book class) and in TargetOverlayView I have methods for firing up NSTimer and changing slides...
Loading slideshow problems
Hi chwastek
Just wondering whether you might be better off by changing the code in CROverlayViewController.mm
... as this controls the view - if you look at the code you can see where sets up the book cover and uses timers etc.
Loading slideshow problems
I did try - still nothing... I tried to create new method with notification, so TargetOverlayView will call every time new slide is coming up - still not working.
Loading slideshow problems
actually, I'm trying to implement scrollView inside TargetOverlayView, but still no success :( can anyone tell me one thing for now: how to force ON target overlay, to refresh its content from time to time - it is working OFF target, but ON it's a mess.
Loading slideshow problems
In my experience UIViews can be slow to update if you set any IBOutlet / member outside the actual class/object. I have seen this when decoding JSON outside a UIView and then calling setNeedsLayout().
Loading slideshow problems
Loading slideshow problems
Shouldn't changes inside TargetOverlayView change what arViewController is showing?
Loading slideshow problems
I did wrap it in two places actaully:
Loading slideshow problems
If I understand correctly, you are saying that the texture defined in TargetOverlayView:
Loading slideshow problems
edit:
bookCover image is updating! Whole TargetOverlayView is updating too, but when I point ON target every update inside TargetOverlayView makes 3d stuff, shown on a plane, dissappear - so I have to repeat steps: targetLost -> targetReacquired....
Loading slideshow problems
I mean, how hard can it be to just change texture on the run - whatever if you tap, set timer or anything else - I don't believe that you don't have ways, to simply change texture without loosing & reacquiring target....
Loading slideshow problems
Have you tried changing the code within setOverlayLayer() ?
N
Loading slideshow problems
nope, setOverlayLayer stayed as it was - I didn't want to mess with EAGLView
Loading slideshow problems
btw, if it helps, I'm using QCAR SDK version 2.0.29