You are not logged in.

> The forum rules have been updated. Please take a moment to read them.


#1 2011-03-09 17:01:47

MikeMcFarlane
Member
From: Moscow, Russia
Registered: 2011-02-26
Posts: 55
Website

Hotspottype

Hi
Does anyone know about the way the hotspottype node is used in the themes xml to produce the output xml as 'hotspottype' is not standard krpano xml?

For example, in one of my themes:

Code:

<hotspottype default="pano" nbfile="1" devices="desktop"    file="hotspots/video.png" >
                <translation>
                    <caption lang="fr" text="neutre"/>
                    <caption lang="en" text="video"/>
                </translation>
            </hotspottype>

I would like to use the tag 'devices="desktop"' to stop this hotspot appearing on iDevices (as it is for video which doesn't play on iDevices), but PTP seems to translate the code in a way that doesn't transfer the devices tag to the output xml.

I guess the question is, how do I stop iDevice non-compliant hotspots appearing on iDevices? Without editing the <hotspot> node in the output xml that is?

Thanks

Mike


Bio: Generation fluxer - farmer, mechatronics engineer, project manager, climbing shop manager, landscape photographer, programmer, virtual panographer, cyclist, life lover.
Twitter: MikeJMcFarlane
email: moo@moosooboo.com
www: www.moosooboo.com

Offline

 

#2 2011-03-09 18:00:50

mediavets
Moderator
From: Isleham, Cambridgeshire, UK.
Registered: 2007-11-14
Posts: 9731
Website

Re: Hotspottype

MikeMcFarlane wrote:

I guess the question is, how do I stop iDevice non-compliant hotspots appearing on iDevices? Without editing the <hotspot> node in the output xml that is?

Thanks

Mike

I know SWF custom point hotspot graphics are automagically changed to an animated GIF (black pulsing circles) in the i-Device compatible versions of tour made with 'mobile compatibility' enabled.

Perhaps some substitution is made for video type hostpots too?

What do you see on an i-Device with your video hotspots? Are you talking about rectangular hotspots with a video fill (Display/Object)?t

Last edited by mediavets (2011-03-09 18:01:44)


Andrew Stephens
Nikon D40, Nikkor 10.5mm fisheye, Sigma 8mm f3.5 fisheye, Nikkor 18-55/50/35mm lenses, Nodal Ninja 5 Lite, Nodal Ninja 4 with R-D16, Agno's MrotatorTCS short.
Nikon P5100, CP5000, CP995, FC-E8, WC-E63,WC-E68, TC-E2, Kaidan Kiwi 995, Bophoto pano bracket, Agno's MrotatorA.
Merlin/Orion robotic pano head + Papywizard on Nokia 770/N800/N810 and Windows 8/XP/2K.

Offline

 

#3 2011-03-09 18:04:14

mediavets
Moderator
From: Isleham, Cambridgeshire, UK.
Registered: 2007-11-14
Posts: 9731
Website

Re: Hotspottype

MikeMcFarlane wrote:

Hi
Does anyone know about the way the hotspottype node is used in the themes xml to produce the output xml as 'hotspottype' is not standard krpano xml?

I think this is custom Kolor XML that's parsed (and actioned) by PTP when generating krpano XML.


Andrew Stephens
Nikon D40, Nikkor 10.5mm fisheye, Sigma 8mm f3.5 fisheye, Nikkor 18-55/50/35mm lenses, Nodal Ninja 5 Lite, Nodal Ninja 4 with R-D16, Agno's MrotatorTCS short.
Nikon P5100, CP5000, CP995, FC-E8, WC-E63,WC-E68, TC-E2, Kaidan Kiwi 995, Bophoto pano bracket, Agno's MrotatorA.
Merlin/Orion robotic pano head + Papywizard on Nokia 770/N800/N810 and Windows 8/XP/2K.

Offline

 

#4 2011-03-09 19:15:44

MikeMcFarlane
Member
From: Moscow, Russia
Registered: 2011-02-26
Posts: 55
Website

Re: Hotspottype

mediavets wrote:

MikeMcFarlane wrote:

I guess the question is, how do I stop iDevice non-compliant hotspots appearing on iDevices? Without editing the <hotspot> node in the output xml that is?

Thanks

Mike

I know SWF custom point hotspot graphics are automagically changed to an animated GIF (black pulsing circles) in the i-Device compatible versions of tour made with 'mobile compatibility' enabled.

Perhaps some substitution is made for video type hostpots too?

What do you see on an i-Device with your video hotspots? Are you talking about rectangular hotspots with a video fill (Display/Object)?t

Hi Andrew

I've swapped all animated hotspots for animated GIFs so they should be OK.

I don't understand what you mean by a 'rectangular hotspot'. I meant a hotspot that will trigger video, in the flash version. On an iDevice you can still see the hotspot, but if you tap it then nothing happens, so to avoid confusion/frustration I don't want to show a hotspot at all.

By including 'devices="desktop"' in the buttons plugins (in the themes>menu xml) I can stop non-functioning buttons showing on an iDevice, e.g. turn hotspots on/off or e-cards.

Probably as you stated in another post, it is custom xml so I will need to edit the code by hand at the end.

Although, reading the krpano documentation I did see mention of definable 'styles' so it may be possible to define a style for iDevice code????? From http://www.krpano.com/docu/xml/

Code:

<style name="style1" alpha="0.5" scale="0.5" ... />

<plugin  name="p1" ... style="style1" />
<plugin  name="p2" ... style="style1" />
<hotspot name="h1" ... style="style1" />

So much to learn:-)

Thanks again for your advice.

Mike


Bio: Generation fluxer - farmer, mechatronics engineer, project manager, climbing shop manager, landscape photographer, programmer, virtual panographer, cyclist, life lover.
Twitter: MikeJMcFarlane
email: moo@moosooboo.com
www: www.moosooboo.com

Offline

 

#5 2011-03-09 19:40:26

mediavets
Moderator
From: Isleham, Cambridgeshire, UK.
Registered: 2007-11-14
Posts: 9731
Website

Re: Hotspottype

MikeMcFarlane wrote:

I've swapped all animated hotspots for animated GIFs so they should be OK.

Animated GIFs do not animate when displayed in the Flash version of krpano/PTP tours.

If you want animated hotspot graphics that will work the same way in both the Flash and i-Device versions of a 'mobile compatible' tour then you need to create those hotspot graphics in a theme using the same method as is used in the default PTP themes.

I don't understand what you mean by a 'rectangular hotspot'. I meant a hotspot that will trigger video, in the flash version. On an iDevice you can still see the hotspot, but if you tap it then nothing happens, so to avoid confusion/frustration I don't want to show a hotspot at all.

PTP supports three types of hotspot - polygon, rectangular and point - you can display video as a fill for rectangular hotspots (imagine a rectangukar hotspot drawn over a TV screen in a room in pano image) by selecting a video file as the hotspot Display/Object rather than as a Link/Object.

Last edited by mediavets (2011-03-09 19:43:46)


Andrew Stephens
Nikon D40, Nikkor 10.5mm fisheye, Sigma 8mm f3.5 fisheye, Nikkor 18-55/50/35mm lenses, Nodal Ninja 5 Lite, Nodal Ninja 4 with R-D16, Agno's MrotatorTCS short.
Nikon P5100, CP5000, CP995, FC-E8, WC-E63,WC-E68, TC-E2, Kaidan Kiwi 995, Bophoto pano bracket, Agno's MrotatorA.
Merlin/Orion robotic pano head + Papywizard on Nokia 770/N800/N810 and Windows 8/XP/2K.

Offline

 

#6 2011-03-10 12:07:53

MikeMcFarlane
Member
From: Moscow, Russia
Registered: 2011-02-26
Posts: 55
Website

Re: Hotspottype

mediavets wrote:

MikeMcFarlane wrote:

I've swapped all animated hotspots for animated GIFs so they should be OK.

Animated GIFs do not animate when displayed in the Flash version of krpano/PTP tours.

If you want animated hotspot graphics that will work the same way in both the Flash and i-Device versions of a 'mobile compatible' tour then you need to create those hotspot graphics in a theme using the same method as is used in the default PTP themes.

I don't understand what you mean by a 'rectangular hotspot'. I meant a hotspot that will trigger video, in the flash version. On an iDevice you can still see the hotspot, but if you tap it then nothing happens, so to avoid confusion/frustration I don't want to show a hotspot at all.

PTP supports three types of hotspot - polygon, rectangular and point - you can display video as a fill for rectangular hotspots (imagine a rectangukar hotspot drawn over a TV screen in a room in pano image) by selecting a video file as the hotspot Display/Object rather than as a Link/Object.

Morning

Sorry, my wrong words. I didn't mean animated GIFs as such, I meant as part of the PTP theme.

The hotspot type is point. In the tour I am working on I don't want the video playing all the time as it would distract from the tour imagery itself (landscape).

I'm looking at Google Maps integration today, but might come back to trying to define a style that would automatically exclude the non-functioning hotspots on iDevices. Will keep you posted.

Kind regards

Mike


Bio: Generation fluxer - farmer, mechatronics engineer, project manager, climbing shop manager, landscape photographer, programmer, virtual panographer, cyclist, life lover.
Twitter: MikeJMcFarlane
email: moo@moosooboo.com
www: www.moosooboo.com

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson