Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Donnerstag, 21. März 2013, 12:17

Problem with graphics


Hey Guys!


This is my first post here, so thank you for these great place :) I'm Michal and I'm from Poland. I just switched from FPP to Krpano.
Some of my work you can see here:
http://panotuts.com/portfolio.html

I have a problem with my first tour in KRpano.
Link:
http://fooz.pl/krpano/tour.html

On the right side I added a menu which will contain some categories and images. I added two group of images "min-estetyka" and "min-energo":

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
<layer name="estetyka" url="ikony/estetyka.png" scale="1.3" align="lefttop" x="20" y="0" zorder="1" />
<layer name="min-estetyka" keep="true" type="container" align="lefttop" width="100" height="100" x="73" y="5" zorder="10" visible="true" >
	<layer name="3" url="min/9.jpg" scale=".4" align="left" x="0" y="0" />
	<layer name="5" url="min/7.jpg" scale=".4" align="left" x="50" y="0" />
	<layer name="7" url="min/5.jpg" scale=".4" align="left" x="100" y="0" />
	<layer name="10" url="min/2.jpg" scale=".4" align="left" x="150" y="0" />	
	</layer>
 
<layer name="energooszczednosc" url="ikony/energooszczednosc.png" scale="1.3" align="lefttop" x="20" y="35" zorder="2" />
	<layer name="min-energo" keep="true" type="container" align="lefttop" width="100" height="100" x="73" y="5" zorder="20" visible="true" >
	<layer name="3energo" url="min/9.jpg" scale=".4" align="left" x="0" y="0" zorder="22" />
	<layer name="5energo" url="min/7.jpg" scale=".4" align="left" x="50" y="0" zorder="20" />
	</layer>

Only the first group "min-estetyka" is visible, the other one "min-energo" is not. What did I do wrong?

Thanks in advance!
Michal
Panotuts.com - panoramic photography tutorials

2

Donnerstag, 21. März 2013, 14:10

Hi,

the problem are theses names here:

Zitat

<layer name="3" ...
<layer name="5" ...
<layer name="7" ...
<layer name="10" ...
When using numbers as names, then these numbers will be interpreted as index-values, and they can refer to other elements.

See also here:
http://krpano.com/docu/xml/#name-notes

Numbers as names should be only used for read-access, e.g. when looping to a set of elements.

Best regards,
Klaus

3

Montag, 25. März 2013, 10:57

Thank You Klaus!

I have one more question.

As I said, I just switched from Fpp. And in FPP when I wanted to load a new pano by clicking a hotspot I just have to write onClick="loadpano(panos/pano1)" and that's all.

How do I do it in krpano? I found in documentation that loadpano function needs and xml file. Does it mean that each pano has to have a separate xml file? If yes, could you show an example of such file?

I'm a little confused...
Panotuts.com - panoramic photography tutorials

4

Montag, 25. März 2013, 17:04

try learning by reading the documentation. Here you can see different ways on loading panorama:
http://krpano.com/docu/actions/#loadpano with separate xml or all by using scene. There is very good example part of Krpano package. Use it to play and learn.
regards
Umalo