Sie sind nicht angemeldet.

1

Montag, 23. März 2009, 22:56

please, give example of autorotate and showtext with non english language

Hi!
1. Could you, please, give me example how to turn the pano into autorotating mode after start? So that the panorama start to turn itself without any user's interaction.
I have tried setting typhical code:
<krpano version="1.0.8" onstart="set(krpano.autorotate.enabled,true)" basedir="%FIRSTXML%" actionintervalbase="timer" logkey="true">


and something like this:

<autorotate enabled="true"
waittime="1.0"
accel="1.5"
speed="10"
horizon="20"
tofov="150"
/>

But it is not working *sad*

Should I do anything else?
2. Another thing: I can't go through the showtext with non english language inside. I have tried to set unicode and to use %xx as letter but have no effect...
Thanks
G.

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

2

Dienstag, 24. März 2009, 09:44

He Bazuki,

i think:

<autorotate enabled="true"
waittime="1.0"
accel="1.5"
speed="10"
horizon="20"
tofov="150"
/>

is enough the thing in the start is not needed (ithink)


<spot name="s2"
heading="90"
lat=" 52.759759"
lng="5.118036"

onclick="action(s2);"
onhover="showtext(uitzicht richting Enkhuizen);"
/>


I hope this helps..


Cheers

Tuur *thumbsup*

3

Dienstag, 24. März 2009, 13:25

Thanks for reply!
I was stupid and doubled autorate's code and second one was set to false. Now it works. Except I don't know how to simply turn to horizontal loop, because the pano stop after reaching a point.
What did you mean with this code?

Quellcode

1
2
3
4
5
6
7
8
9
<spot name="s2"
heading="90"

lat=" 52.759759"
lng="5.118036"

onclick="action(s2);"
onhover="showtext(uitzicht richting Enkhuizen);"
/>


Because I have not found this function "spot" and atribiutes in documentation.
I have problem to showtext with diacritical letters like: ą ć ę ł ń ó ś ź ż.
Regards
G.

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

4

Dienstag, 24. März 2009, 15:05

Ahhh i didn't understand about diacritical... sorry.. i like to know aswell

Tuur *thumbsup*

5

Dienstag, 24. März 2009, 15:26

hmmm... i have the same problem with diacritical signs in a few panos... in others it works - and i dont know why...
__close to the rainbow__
_D300S|Sunwayfoto|iMaci7|PM|APP|KRP_
www.panographie.net

Araneo

Anfänger

Beiträge: 8

Wohnort: Paris

Beruf: Mutimedia producer

  • Nachricht senden

6

Dienstag, 24. März 2009, 21:18

hmmm... i have the same problem with diacritical signs in a few panos... in others it works - and i dont know why...

Use a UTF8 compatible editor ( ie. Notepad++) and convert your xml file in "UTF8 without BOM"

7

Dienstag, 24. März 2009, 22:46

@Araneo
That was good advice!
I have downloaded BabelPad which can save as utf-8 without BOM.
And from my ąęćźż... I have ąćźęłóżźć and this work fine in showtext action.
Thank you very much ;-)
Regards
G.