Sie sind nicht angemeldet.

1

Dienstag, 22. Juli 2014, 20:54

Recording/screengrabbing draggable hotspots then Tweeting them!

Hi guys -really hoping someone can ride to my rescue again...
I'm creating a 'choose your team' football interactive where people can drag and drop draggable hotspots of players on to a picture of a pitch (flat pano), then tweet it to show other people how they think the team should line up ahead of that weekend's match.
I reckon I've got two choices:
- modify the swfaddress plugin to make it record draggable hotspot positions rather than current view(I can make it tweet the current view but when you open the link in the tweet all the hotspots are back in their starting positions)
- modify a twitter button so that it not only tweets a link to the interactive(which is probably quite straightforward), but also takes a screengrab of the current screen(including draggable hotspot positions) and includes it in the tweet(I've had a play around with the Screenshot plugin but can't get it to capture an image to the screengrab folder, let alone tweet it too!). This way, I don't need to worry about recording hotspots positions.

Sachagriffin very kindly offered some advice back in May but I haven't had very much success. Any advice anyone can offer would be greatly appreciated.

The whole thing is further complicated because the interactive will be embedded in a page rather than being on its own url, so I need to take this into account when tweeting urls/taking screengrabs.

Please, someone help me start sleeping normally again rather than staying up all night staring at code! *smile*
Thanks in advance.
AR, VR, virtual tours, 3D modelling and apps, plus a cityguide to events in Durham

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

2

Mittwoch, 23. Juli 2014, 18:35

The best way to do it, is to collect all the hotspots and send them with javascript to php to save them to a database.

Your tweet would contain an id that would be an argument to a php/xml file that would pull the proper hotspots in.

Otherwise, you don't really say why swfaddress isn't working for you.

The screenshots program/plugin uses flash to create a base64 text string that can be used to mail directly. That should work for image, but not for twitter I believe. It needs a real attachment.
I think the screenshots program can also post to a php backend and save a real image than can be used as an attachment and the email is sent from the server instead of the client.

All this is doable.. but it takes a lot of time and is expensive in time or cost from a developer.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

3

Mittwoch, 23. Juli 2014, 22:26

What about doing this way. User move players and click on some button when he want to post the link. Than link is generated that will animate how this users wants to set players.



Move players, click on ball to get the link (this can be tweeter generated link with position of the players.

Generated link example:
http://webonjee.com/radna-mapa/anton/__k…640.0&w4y=611.0

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

4

Donnerstag, 24. Juli 2014, 09:38

Thats cool!
Yeah, really rich just need to interface with the swfaddress program or drop it completely and make his own setup. That's cheapest and best for few hotspots. After some limit, I imagine the URL will become too long and require an actual database backend.

Swfaddress isn't really needed. I never figured out what it was good for over basic krpano. A startup script can easily check the query variables passed and get things going. There is even a javascript example in the krpano viewer that shows how everthing is done.

Nice graphics Anton!
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour