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.

tonnes

Beginner

  • "tonnes" started this thread

Posts: 20

Location: Honolulu

  • Send private message

1

Friday, May 1st 2009, 9:18pm

Limit panning speed

Hi Klaus,

Is it possible to limit the panning speed, regardless of mouse sensitivity? Some people have commented that they spin too fast and get dizzy, even though I have mouse sensitivity set to what I feel is a comfortable level, if I set it any slower then others complain that they can't pan fast enough. I suppose that some people are not used to navigating a pano with their mouse and they over-control, and some people probably have their mouse set to move very fast - variable that we have no control of. I would like to have a way to counteract that with a "maximum panning speed" parameter. Maybe even better: separate maximum vertical and horizontal pan speeds?

Also, we've discussed this before but I would like to reiterate: It would be fantastic if you integrated a method for easily displaying still (non-panoramic) images - just display the image with no panning. Because still images and monitors have different aspect ratios, having the option to fill or fit still images on screen, and, in the case of fit, control background color.

*thumbup*

Dave

Graydon

Professional

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

2

Saturday, May 2nd 2009, 2:12am

It sounds like you want to adjust the "mousespeed" parameter in the "control" node...

ref... http://www.krpano.com/docu/xml/#control

If you look at the examples on the site, they have the options plugin setup and you can play with some different variables to see what might work for you.

Here's a direct link to one... http://www.krpano.com/krpano.html?pano=p…rche/kirche.xml

... look in the top right for the arrow/box and click it.

-------------

Still images... sorry if I repeat something that was said last time, I don't remember the discussion... but you can load still images as a plugin pretty simply. There are a variety of ways that it can be done (and control the background color)... so, let us know what your scenario would be and someone will post a solution.

A quick rundown of possibilities...
- on top of the existing pano as a plugin
- on top of the existing pano as a plugin, with a separate plugin to set the background color and block the existing pano
- as a new scene without a pano image defined, and with a separate plugin for background color
- as a new scene without a pano image defined, and the background color controlled via the html embed options

You could also maybe use the masking feature to do something... but I haven't gotten into that.

Just let us know.

Graydon

tonnes

Beginner

  • "tonnes" started this thread

Posts: 20

Location: Honolulu

  • Send private message

3

Sunday, May 3rd 2009, 9:49pm

Thanks for your reply Graydon...

I'm embarassed...I should have known that the mousespeed parameter would do the trick.

It might be helpful to describe how my tours work. You can have a look here (click the "Interactive Virtual Tour" link). Here's the XML:

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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<krpano version="1.0.8"> 

<plugin name="gui" url="gui.swf" /> 

<display details="24" 
movequality="LOW" 
stillquality="HIGHSHARP" 
/> 

<view hlookat ="0" 
vlookat ="0" 
camroll ="0.000000" 
fov ="80" 
fovmin ="40" 
fovmax ="130" 
limitfov ="true" 
fisheye ="0.00" 
fisheyefovlink="0.00" 
stereographic ="false" 
architectural ="0.0" 
architecturalonlymiddle="false" 
limitview ="lookat" 
hlookatmin ="0.000000" 
hlookatmax ="360.000000" 
vlookatmin ="-90.000000" 
vlookatmax ="90.000000" 
/> 

<control usercontrol ="all" 
mousetype ="moveto" 
movetocursor ="arrow" 
cursorsize ="10.0" 
mouseaccelerate="0.40" 
mousespeed ="3.23" 
mousefriction ="0.79" 
headswing ="0.00" 
keybaccelerate ="0.50" 
keybspeed ="10.00" 
keybfriction ="0.90" 
keybinvert ="false" 
mousefovchange ="1.00" 
keybfovchange ="0.75" 
fovspeed ="3.00" 
fovfriction ="0.90" 
keycodesleft ="37" 
keycodesright ="39" 
keycodesup ="38" 
keycodesdown ="40" 
keycodesin ="16,65,107" 
keycodesout ="17,89,90,109" 
/> 

<contextmenu fullscreen="true"> 
<item name="item1" 
caption="Normal Projection" 
onclick="set(view.fisheye,0); 
set(view.architectural,0); 
set(update,view);" 
/> 
<item name="item2" 
caption="Fisheye Projection" 
onclick="set(view.fisheye,0.35); 
set(view.architectural,0); 
set(update,view);" 
/> 
<item name="item3" 
caption="Architectural Projection" 
onclick="set(view.fisheye,0.0); 
set(view.architectural,1.0); 
set(update,view);" 
/> 
<item name="item4" 
separator="true" 
caption="© PanaViz Imaging" 
onclick="openurl(http://www.panaviz.com);" 
/> 

<item name="item5" 
caption="KRPANO" 
/> 

</contextmenu> 
<progress showload="bar(midbottom,170,10,0,180,shaded, 
0x000000,0x666666,0xAAAAAA)" 

Showwait="none" /> 
</krpano>


"gui.swf" contains the tour's user interface. The thumbnails in the GUI reference individual XML's:

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' ?> 
<thumbs> 
<thumb> 
<ThumbImage>001.jpg</ThumbImage> 
<Caption>Caption of thumb 001.jpg</Caption> 
<PanImage>001.jpg</PanImage> 
<xmlFile>001.xml</xmlFile> 
</thumb> 
<thumb> 
<ThumbImage>002.jpg</ThumbImage> 
<Caption>Caption of thumb 002.jpg</Caption> 
<PanImage>002.jpg</PanImage> 
<xmlFile>002.xml</xmlFile> 
</thumb> 
<thumb> 
<ThumbImage>003.jpg</ThumbImage> 
<Caption>Caption of thumb 003.jpg</Caption> 
<PanImage>003.jpg</PanImage> 
<xmlFile>003.xml</xmlFile> 
</thumb> 
<thumb> 
<ThumbImage>004.jpg</ThumbImage> 
<Caption>Caption of thumb 004.jpg</Caption> 
<PanImage>004.jpg</PanImage> 
<xmlFile>004.xml</xmlFile> 
</thumb> 
<thumb> 
<ThumbImage>005.jpg</ThumbImage> 
<Caption>Caption of thumb 005.jpg</Caption> 
<PanImage>005.jpg</PanImage> 
<xmlFile>005.xml</xmlFile> 
</thumb> 
<thumb> 
<ThumbImage>006.jpg</ThumbImage> 
<Caption>Caption of thumb 006.jpg</Caption> 
<PanImage>006.jpg</PanImage> 
<xmlFile>006.xml</xmlFile> 
</thumb> 
</thumbs>


There are individual XML files for each pano. Here's 001.xml (the first scene in the tour):

Source code

1
2
3
4
5
6
7
8
9
10
11
<krpano version='1.0.8' onstart='lookto(0,0,80);' > 
<preview url='../images/001.jpg' /> 
<image type='CUBE'> 
<front url='../images/001_f.jpg' /> 
<right url='../images/001_r.jpg' /> 
<left url='../images/001_l.jpg' /> 
<back url='../images/001_b.jpg' /> 
<up url='../images/001_u.jpg' /> 
<down url='../images/001_d.jpg' /> 
</image> 
</krpano> 


-is it possible to have an XML file that references a still image and tells krpano to display it as such? This way I could show still shots right inside my virtual tour, along with the panoramics, both using the thumbnails as a means of selecting.

Sorry if my questions seem simplistic. I don't know much about the coding that went into my virtual tours and the coder I'd hired to create the system has gone AWOL, so I'm stuck with trying to figure things out myself. *wacko*

Incidentally, the guy who built the GUI for my tours also made a cool app that allows me to create the tours with a minimum of fuss. I drop any number of equirectangular panos into a directory and launch his app. It uses krpano tools to make the cubefaces, preview and thumbs, and copies everything into a directory ready for upload. A separate Adobe Air app enables me to place the hotspots on the map and type in the names of the thumbnails. It's a fantastic time saver.

Shanti

Intermediate

Posts: 301

Location: Puerto Vallarta

Occupation: Web Developer

  • Send private message

4

Monday, May 4th 2009, 4:08am

I don't think I understand your question, you have Thumns pointing to the panos, or do you mean photos inside the panorama? I know you can use simpleviewer to show some stills.

example on this thread:
Is there a "drop-in" gallery that can be used with KRPano?

maybe you should consider sharing that app? *tongue* or even re-sell it *g* I am sure it would help a lot of people

tonnes

Beginner

  • "tonnes" started this thread

Posts: 20

Location: Honolulu

  • Send private message

5

Monday, May 4th 2009, 4:56am

Hi Shanti,

I would like the thumbs to be able to display stills also. Not over a panorama - in place of it. Unlike the simpleviewer sample, I would like the stills to fit within the entire screen. Have a look at this slideshow - click the fullscreen button and note how each image fits the screen, regardless of it's aspect ratio. That's what I'm looking for. I want my virtual tours to display panos and stills, all in the same environment.

I've thought of offering my virtual tour creator, but it needs to be polished some more and I need to find a good Flash person to work on it. Like I said, the genius who made the current iteration for me has has moved to another country and is getting his PhD *huh*

Dave

Shanti

Intermediate

Posts: 301

Location: Puerto Vallarta

Occupation: Web Developer

  • Send private message

6

Monday, May 4th 2009, 6:06am

so, you want to show a photo on the full krpano stage?

I am not sure how you would go for that...but why not try and use that slideshowpro as a plugin and set 100% for width and height?, since its a paid plugin I can't test it, but if you find a free version I'll be glad to help you.

or a lightbox (or one of the million clones out there) to show it on top of the panorama?

example: http://www.vallartarestaurants.com/panoramas/krgm/m.php click on the first thumb and a greybox will open, this can include images or anything, even a slideshow :)

hope it helps *smile*

7

Monday, May 4th 2009, 8:29am

In the same way that people make a plugin go all the way across the bottom or side of the screen as a frame or semi-transparent band, couldn't you do the same for a picture ? Just make the image a plugin that is activated by the thumnbnail, then covers the entire screen. Toggle with the usual onclick event.

tonnes

Beginner

  • "tonnes" started this thread

Posts: 20

Location: Honolulu

  • Send private message

8

Monday, May 4th 2009, 10:50pm

Still image display

My ideal solution would be an xml file for each still image. Something like this:

Source code

1
2
3
4
5
6
7
8
9
<krpano version='1.0.8' > 
<image type='STILL'> 
<preview url='../previewimages/001.jpg' /> 
<url='../images/001.jpg' /> 
<displaytype='FITSCREEN' /> (the other type would be 'FILLSCREEN') 
<padding='30px' /> (optional - default would be 0 pixels) 
<bgcolor='BLACK' /> (or maybe a semi-transparent lightbox-style background?) 
</image> 
</krpano> 


If we had a 'STILL' image param in krpano, the advantage would be simplicity plus it would display in much the same, familiar way as the panos - we'd have a low-res preview image, progress showload/showwait, and fading between images.

What do you think Klaus?

My clients almost always have me shoot still images in addition to panoramics. It would be great to have a way to easily integrate these still images right into the virtual tour.

Graydon

Professional

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

9

Tuesday, May 5th 2009, 6:17am

To "simulate" the 2d / flat-image you can use this...

Source code

1
2
3
4
5
6
<krpano>
    <view fisheye="0" fovmin="0.01" />
    <image type="SPHERE" hfov="1">
        <shpere url="flatpano.jpg" />
    </image>
</krpano>


... for your xml file. And I think that you can use sphere or cylindrical for type.

reference this link: http://www.krpano.com/forum/wbb/index.ph…ad&threadID=120
and go down to the partial pano section.

The downside is that krpano will auto fit only one of the dims (height / width) depending upon screen / stage size... and you'll still have to pan up/down or left/right to see the image.

In this thread... http://www.krpano.com/forum/wbb/index.ph…ad&threadID=605 you can see Tuur's sample. The link was changed about midway through the thread... so you'll have to scroll down to where he's provided a new link (it's the member's only showcase and links aren't supposed to be indexed in that section... so I didn't want to post it here).

There might be a way force the image to "fit" within the screen... but I can't remember how... or if it can be. It would be a nice feature though... to be able to specify image type as "flat"... or to be able to put hfov=1 (to get flat) and vfov=fit... or something (not full of ideas right now *unsure* ).

Graydon