promet / PRAugmentedReality

iOS Augmented Reality Framework
http://praugmentedreality.com/
MIT License
606 stars 162 forks source link

Click Events #43

Open faizandedia opened 10 years ago

faizandedia commented 10 years ago

I have added a button on top of ARObject, some how action touch event working on view which are on the front, but not receiving for the view which are on top.

Any Help?

faizandedia commented 10 years ago

I need quick help on this please.. :)

faizandedia commented 10 years ago

seems like y_pos < 0 or y_pos > screen height than it is not working... when frame goes out of bounds.. could you suggest me on this?

glesage commented 10 years ago

Hey, regarding buttons on top of ARObject, I've got it working for CTAR (https://itunes.apple.com/us/app/ctar/id542443367?mt=8) by sending a NSNotification with the Id of the item being clicked. Then whoever I want to handle this listens for that Notification

glesage commented 10 years ago

Regarding the screen height, I'm not sure I understand... You mean to say the AR View Frame is too large and cannot be resized?

faizandedia commented 10 years ago

I mean the AR objects which are outside frame are not receiving touch event on buttons, because the AR object frame position is < 0 or >self.view.frame.size.height...

You applied vertical positions for AR Objects as Position goes out of frame the touch events stops working.

Click events works which are on front or inside the frame only.

glesage commented 10 years ago

Hmm... I do not believe this is a problem with the framework. But how can you touch a button on an AR Object with is outside the frame? if you are talking about the individual frame of each AR Overlay, this will not be possible without some overlap, because the only way is to increase the frame size of each overlay, and they will start overlapping with each other...

xsabdullah commented 9 years ago

I am having the same issue , The objects which can be viewed by tilting the device upwards are not clickable if we add the button arobject .xib file. Can you please help??? faizandedia have you found a solution?

ghost commented 9 years ago

@faizandedia @xsabdullah Hi, could you find the solution to this problem?

NatarajSweety commented 7 years ago

Hi,

Anyone got solution for the above problem. Please suggest me ASAP.