-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use the sphere to add buttons or views at a specific point in the photo. #25
Comments
Same question from me |
I have the same question, currently trying to figure out how to place something on the sphere and add tap even to it. |
'Hotspots' functionality would definitely boost this project way up |
@elibendavid @OlegPanfyorov @leo1mml For this, I added CTPanoramaView as files, and after it, I worked with SKScene object, this solution provides two objects in SKScene: sphere/cylinder and camera objects. After I find this ability it saves a huge amount of time for me. |
Wow! Sounds good. Thanks! |
You need to read more info about SKScene and SKNode. As you found in CTPanoramaView source code, it generates a SKScene with 2 objects in it: In my case, I worked with the sphere. As you can find sphere have coordinates (x: from -5 to 5; y: from -5 to 5; z: from -5 to 5) on the SKScene They're not so much code need to be added. If you will check CTPanoramaView code in more details you will understand how and where to place it. And creating SKNode object is a very easy task. Please let me know if you will have any questions. |
Thanks! |
Hello! Can you help me with some code sample. I have actually added nodes successfully but the nodes are not showing in the way i want. How can I add for example a small car image as node which will supposed to be tappable. Any Help......Thanks |
friend tell me please screenshots how you did it or share the code |
Друг можешь дать пожалуйста образец кода, |
@KamaNext Please check the comments above:
Here is info about SKNode: I don't have the project source code with me, but you can ask if you have specific questions. |
Please check Raywenderlich post about detecting objects from CameraNode in SKScene(in case if you need to detect taps on the SKNode object). Also, they described how to add image to SKNode, and how to make images of SKNode always follow the camera object. |
I'm trying to add points, but it doesn't work out, could you make a small example, if you don't mind, or help me figure it out, I would thank you |
@KamaNext please post here the code part related to this, maybe something wrong with it. |
@yakovlev0509 addChild(markPoint) required init?(coder aDecoder: NSCoder) { Artem If you don’t mind, you can download the CTPanorama library and add 1 point |
@KamaNext try something like this:
Later, you can access your child nodes via:
To handle taps or actions on your nodes, you can use something like this:
It is not the best implementation or solution. But I hope it helps you solve your task/goal. |
|
@yakovlev0509 |
Please share more info |
@yakovlev0509
|
@yakovlev0509 |
@yakovlev0509 |
@yakovlev0509
|
@KamaNext your error totally not related to CTPanoramaView. This is not suitable for this Issue thread. Please post a question in Stackoverflow. You have some MarkSpriteView (naming - would be better to "markSriteView"), which should be initialized during init, and you are not doing this. |
I was wondering if I could make use of buttons or something like this to go through doors in a photo for example. Is it possible?
The text was updated successfully, but these errors were encountered: