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.

hub

Trainee

  • "hub" started this thread

Posts: 118

Location: Annecy, France

  • Send private message

1

Wednesday, April 1st 2009, 2:05pm

wysiwyg Options

It is not easy to find the exact position of any hotspot, especially in static distances X and Y on the screen.
Why KRPano doesn't use the same wysiwyg (Options) changing location system of hotspots and plugins as FPP does?

Zephyr

Professional

Posts: 1,003

Location: Netherlands

Occupation: Web developer

  • Send private message

2

Wednesday, April 1st 2009, 7:46pm

Please don't compare fpp with krpano :) I've "toyed" with both, got both licences. But with customisation, krpano steals the crown :) fpp felt very "hacking into plugins" to do things you want.

But to answer your question. Krpano has a options plugin (options.swf, see the examples in the topright corner). When you look around, the lookat(somevalue, somevalue) changes, the first value is the pan, the second is the tilt. these values you can fill in the hotspot.

Posistions things is alsoo easy. First think off, which way does it need to move, when you scale or resize. This value is the align, then you fill in the edge (which side much be at the align) en then you offset it with x en y. So if you want the topleft corner of your thingy to stay at the topleft, but 10 pixels from the top and 50 from the left, then you have align="topleft" edge="topleft" x="50" y="-10"



If you have a fixed size panorama it's easy, then you dont need the align or edge and can fill in x en y, measured from the topleft. Those values you can usually find in your photoediting software like photoshop

hub

Trainee

  • "hub" started this thread

Posts: 118

Location: Annecy, France

  • Send private message

3

Thursday, April 2nd 2009, 11:01pm

Hi Zephyr,

I'm not a specialist like you in code, but I feel what you say about Krpano.
I found, that Krpano is much more stable and less “capricious” than FPP is.
My demand concerning wysiwyg Options (similar to FPP) was inspired by some maps applications. I have put my last virtual tour, not finished yet, on my server, so I shall be able to show you that this Option's option can be quite useful.
http://www.annecypanoramique.com/krpano_…_vv_Aravis.html
The third button from right opens a map image. I put on it some hotspots (sorry “plugins” in Krpano vocabulary). These “flags” indicate the exact position of panoramas on the map. To find these positions on my screen I had to print the map, to find the scale between the dimensions in pixels and distances X and Y of every point. Or, it would be so simple to move every “flag” on the screen...

Graydon

Professional

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

4

Friday, April 3rd 2009, 4:31am

Another way of finding your hotspot / plugin locations for the map would be to...

- open the map image in your editor of choice
- make note of where your 0,0 coordinates are (i.e. bottom-left is common)
- now move the cursor around and make note of the x,y coordinates for your hotspots

Now, as long as you know the pixel size of your map and those reference coordinates, you can repeatedly place your markers in the same location without too much math.

It just requires using the ox, oy attributes (offset x, offset y) in the beta.

The simplest example would be something like this...
map size - width=500px and height=300px
map align / edge = rightbottom
map location - x=10, y=10 (this is the "padding" from the edge of the pano)
hotspot - original coordinates in your graphics program - x=321, y=209 (based upon coordinates from the bottom left)

the map image code would be...

Source code

1
2
3
4
5
6
7
8
...
width=500px
height=300px
align=rightbottom
edge=rightbottom
x=10
y=10
....


Your hotspot code would be something like...

Source code

1
2
3
4
5
6
7
8
...
align=rightbottom
edge=center
x=510
y=10
ox=321
oy=-209
...

NOTE - the code above is not formatted correctly with " " left out due to my laziness : )

Now, if you walk through this (and I'm pretty sure I've got it right *tongue* ) you'll see how it works.

First -with the map image... we've said...
- the map is 500x300px
- use the bottom right of the stage to locate it
- then use the bottom right of the image for location
- move it up and to the left 10px each to give us some padding between the map and edge

For the hotspot we've said
- use the bottom right of the stage to locate it
- use the center of the hotspot image for it's location info
- move the image to the left (x) 510 (width of map + padding) and then offset the image back to the right 321
- move the image up (y) 10 (just the padding) and then offset UP 209 (the offset is a bit weird in that neg is up)

Depending upon your image for the map hotspot.... and for your specific case linked to... you may want to use an edge of "leftbottom" in order to get the "point" on the correct spot.

Hopefully this will let you save some paper and some time.

hub

Trainee

  • "hub" started this thread

Posts: 118

Location: Annecy, France

  • Send private message

5

Friday, April 3rd 2009, 4:54pm

Graydon,

My work flow is based on Lightroom 1,4, and PS Elements 3, and there is no coordinates X/Y in these softwares.

Before I wrote my demand on krpanoforum, I imported my map image into the CorelDraw 13, and also into the DataCad 11. Corel and Dcad have the coordinates, but there is no relation between the pixels and the length dimensions. I changed the dimensions of the map image with a ratio 1px=1m and could read my distances. It was possible, but not simple!

I don't know if Gimp shows the coordinates and distances in pixels; I shall try to download it.

hub

Trainee

  • "hub" started this thread

Posts: 118

Location: Annecy, France

  • Send private message

6

Friday, April 3rd 2009, 5:01pm

Your method works with Gimp! Thank you Graydon, *g*

Graydon

Professional

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

7

Friday, April 3rd 2009, 5:58pm

You are welcome.

inkscape also shows coordinates... and is free as well.

I wasn't aware that those other editors didn't show any type of coordinates. *sad*

Zephyr

Professional

Posts: 1,003

Location: Netherlands

Occupation: Web developer

  • Send private message

8

Friday, April 3rd 2009, 7:07pm

I use Irfanview as my main image viewer since 8 yrs now. Its faster then the default microsoft windows one, can handle almost all imagetypes (even swf, psd, tga,tiff and eps) And when you click and hold the mousebutton on the images it shows the color and x/y coordinate of the image in the topbar :)

Similar threads