You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Saturday, January 15th 2011, 12:11am

[solved] Pano doesn't display when hotspots are present.

I've been working on a project and ran into an issue that when hotspots are in the xml, the pano just shows a black screen. I am still able to press "o" to bring up the console, but it doesn't display any errors. When I delete the hotspot from the xml it works just fine.

I've stripped everything that isn't needed to make the pano work out of the xml just to make sure that something else isn't causing the problem, but it appears to be the hotspot.

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?xml version="1.0" encoding="UTF-8"?>
<krpano version="1.0.8">
 <view fov="60.531" fovmax="60.531" fovmin="10.350"/>
 <image type="cube" multires="true" tilesize="425" baseindex="0" multiresthreshold="-0.2">
  <level tiledimagewidth="2125" tiledimageheight="2125" download="view">
   <left url="../cubes/5/2125/left_%0y_%0x.jpg"/>
   <right url="../cubes/5/2125/right_%0y_%0x.jpg"/>
   <front url="../cubes/5/2125/front_%0y_%0x.jpg"/>
   <back url="../cubes/5/2125/back_%0y_%0x.jpg"/>
   <up url="../cubes/5/2125/up_%0y_%0x.jpg"/>
   <down url="../cubes/5/2125/down_%0y_%0x.jpg"/>
  </level>
  <level tiledimagewidth="1275" tiledimageheight="1275" download="view">
   <left url="../cubes/5/1275/left_%0y_%0x.jpg"/>
   <right url="../cubes/5/1275/right_%0y_%0x.jpg"/>
   <front url="../cubes/5/1275/front_%0y_%0x.jpg"/>
   <back url="../cubes/5/1275/back_%0y_%0x.jpg"/>
   <up url="../cubes/5/1275/up_%0y_%0x.jpg"/>
   <down url="../cubes/5/1275/down_%0y_%0x.jpg"/>
  </level>
  <level tiledimagewidth="850" tiledimageheight="850" download="auto">
   <left url="../cubes/5/850/left_%0y_%0x.jpg"/>
   <right url="../cubes/5/850/right_%0y_%0x.jpg"/>
   <front url="../cubes/5/850/front_%0y_%0x.jpg"/>
   <back url="../cubes/5/850/back_%0y_%0x.jpg"/>
   <up url="../cubes/5/850/up_%0y_%0x.jpg"/>
   <down url="../cubes/5/850/down_%0y_%0x.jpg"/>
  </level>
  <level tiledimagewidth="425" tiledimageheight="425" download="auto">
   <left url="../cubes/5/425/left_%0y_%0x.jpg"/>
   <right url="../cubes/5/425/right_%0y_%0x.jpg"/>
   <front url="../cubes/5/425/front_%0y_%0x.jpg"/>
   <back url="../cubes/5/425/back_%0y_%0x.jpg"/>
   <up url="../cubes/5/425/up_%0y_%0x.jpg"/>
   <down url="../cubes/5/425/down_%0y_%0x.jpg"/>
  </level>
 </image>
 <hotspot name="18" url="../swf/hotspot_bars.swf" ath="0" atv="0" width="40" height="40" />
</krpano>



Any ideas?

This post has been edited 1 times, last edit by "chrispen" (Jan 17th 2011, 6:25pm)


2

Saturday, January 15th 2011, 6:04am

From the document section under hotspot name. There is a link that discusses naming issues.




The (name) must begin with an alphabetic character! A number as name is not allowed!


Jarred

3

Monday, January 17th 2011, 6:25pm

That did it, thanks Jarredja!