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

Monday, June 8th 2009, 10:26am

Google street view

I notice that in Google street view if you double-click the image the view immediately moves to that point and centers the view. This is good.

Any way to easily implement this ? I think the more commonality there is between high-res panoramas and Google street view, the easier they will be to sell.

Tuur

Sage

Posts: 3,337

Location: Netherlands

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

  • Send private message

2

Monday, June 8th 2009, 11:16pm

Hi,

looktohotspot, ilovekrpano,0, 6 in the action instead of lookto,270,0,6

I hope i'm right

Cheers

Tuur
http://www.virtualtuur.com
Skype:studiotuur

3

Tuesday, June 9th 2009, 5:16am

Sorry, I don't understand. Or maybe this is a joke ?

Shanti

Intermediate

Posts: 301

Location: Puerto Vallarta

Occupation: Web Developer

  • Send private message

4

Tuesday, June 9th 2009, 5:26am

no, he means that looktohotspot is a feature that *could work* like google street view, except.. google uses some kind of (lasers?) cameras or something that make hotspots of all the panorama making it a big hotspot per say.

so looktohotspot could probably work on this but I don't know if it will work exactly as streetview...

but since you can't even double click in krpano... I don't think its going to be possible to 100% emulate this :)

(hahaha I've edited this post about 10 times... I need some sleep *wacko* )

This post has been edited 3 times, last edit by "Shanti" (Jun 9th 2009, 5:54am)


5

Tuesday, June 9th 2009, 12:40pm

Thanks Shanti, but this would mean creating multiple hotspots ?

Maybe this is ancient history, but why not double-click ? The biggest weakness in panorama tours by far is the non-standard controls. I think Google is the key.

Shanti

Intermediate

Posts: 301

Location: Puerto Vallarta

Occupation: Web Developer

  • Send private message

6

Tuesday, June 9th 2009, 6:49pm

There was a post talking about double-click, and Klaus trying to implement it, but in my opinion, panoramas have *standard* controls, they are just not *google's* standard* controls, panorama player have used the same controls ever since I discovered panoramas about 6 years ago, google is the one that changed, I for once, HATE the drag controls that google uses I think it really cuts the experience in half when you have to click like 10 times to rotate, I do like the new feature in google streets thou :)

hopefully Klaus can implement the double click to zoom at least :)

7

Tuesday, June 9th 2009, 7:27pm

Well, I agree that the drag is bad in Google, but the double-click to move and center the view is excellent.

And whatever Google does *is* the standard. Street view is good promotion for panorama photography.

Have you looked at panoramas as used in the real estate industry ? Absolutely awful, and every one of them has different way of presenting them. That's really what I mean: a video is obvious - you press play. Panoramas aren't obvious to many people. I have watched people completely fail to understand the "click and drag" effect on screen even after I have explained it !

Phil

Trainee

Posts: 97

Location: Texas

  • Send private message

8

Tuesday, June 9th 2009, 8:07pm

Have you looked at panoramas as used in the real estate industry ? Absolutely awful, and every one of them has different way of presenting them.
The panoramas in the real estate industry are right up there with their photography. *thumbdown* And people pay them how much to "market" their property???

Phil

Shanti

Intermediate

Posts: 301

Location: Puerto Vallarta

Occupation: Web Developer

  • Send private message

9

Tuesday, June 9th 2009, 11:14pm

I don't agree on the Google IS the standard part... but I do agree that Google changes the standards for their own convenience, and then everyone follows, but I really think if you explain your panorama and have easy to use controls you should have no problem with clients, but in the other hand, I have seen clients that just don't get it no matter what, I am sure they wouldn't get Google either.

Real state panoramas should not even be called panoramas, they are so awful, and that's because agents don't give a damn on this, and I know I used to work on a real estate company (not related to photo or panoramas :P ) but Google street panoramas are not far from awful too (well the latest generation have better quality).

hopefully the pano makers/viewers/etc won't follow Google street view, as their controls are just pretty lame EXCEPT for the double click.

10

Monday, June 22nd 2009, 4:49pm

So I wonder whatever happened to the great double-click experiment ? I still think this would an extremely useful function to align high-res panoramas with accepted Google behaviour.

Graydon

Professional

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

11

Wednesday, June 24th 2009, 8:11am

getting a double click to work in krpano is one challenge.

The real problem is setting up your pano so that an "event" (single or double click) moves you in the correct direction... to the appropriate "next" or "previous" pano.

If you are using icons... it's simple... click icon A, you go that direction, click icon B and go the other way (which in the case of icons, most people now understand that while on the web, single clicks on icons is the standard).

Without using icons, I think you could setup two large transparent hotspots... one on each half of the pano and set the correct events. But, then you will run across the problem of when you click to move the pano... you'll be clicking one of the hotspots. Might work around it by changing the control functions to just follow the mouse... saving the clicks for the hotspots.

Interesting scenario.

12

Tuesday, July 6th 2010, 8:55am

I think the experience from Street View is the best.
Double click and their "smart hotspot" are crucial to make a real immersive experience.
I love the way google shows a circle in perspective if you are over the street, or an oriented square if you are over a building, that's really helps to make the 3D illusion.
And google interprets our double clicks, orienting the view and zooming the image if we are clicking a building or changing the pano if we click over the street (even they made a "pseudo blending" so we don't feel the "break" of changing the pano).
Is there a way to make something similar to Google Street View?
I think they are combining the LIDAR information to make their smart hotspot. But maybe we could define manually where is the street (or floor) and where are the walls, so our mouse can show with a circle (or square) in perspective according with the real 3D of the scene.
That's would a really big step for KRPano

Zephyr

Professional

Posts: 1,003

Location: Netherlands

Occupation: Web developer

  • Send private message

13

Tuesday, May 24th 2011, 1:43pm

google's way is doable to copy with a bit of javascript:

in the head of your html:

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
<script>
var krpano = function(){
	document.getElementbyId('#krpanoSWFObject');
}
function set_events(){
	krpano.set("events.onclick", "js(doubleclick())"); //Doubleclick event
}
function doubleclick(){
	setTimeout("numclick = 0",200);
	numclick = numclick + 1;
	if (numclick == 2){	
		move_and_zoom();
	}
}
function move_and_zoom(){
	//get the spherical coordinates of the place where the user clicked.
	var mousex = krpano.get("mouse.x");
	var mousey = krpano.get("mouse.y");
	var spherical_coordinates = krpano.get("screentosphere("+mousex+","+mousey+")"); //convert x/y in ath/atv
	var coordinates_array = spherical_coordinates.split(","); 
	
	var Ath = Math.round(Number(coordinates_array[0]) * 100) / 100; //round up to 2 decimals after ,
	var Atv = Math.round(Number(coordinates_array[1]) * 100) / 100;
	
	krpano.call("lookat("+Ath+","+Atv+", 50)"); //move and zoom a bit.
}
</script>


and in krpano you have to add

Source code

1
2
3
<events
 onxmlcomplete="js(set_events())"
/>

because else the browser will try to set the doubleclick event, while krpano isnt loaded.

Tuur

Sage

Posts: 3,337

Location: Netherlands

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

  • Send private message

14

Tuesday, May 24th 2011, 1:49pm

there is also the double click plugin from ahoeben..

would that be a good alternative?

Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

Zephyr

Professional

Posts: 1,003

Location: Netherlands

Occupation: Web developer

  • Send private message

15

Tuesday, May 24th 2011, 1:50pm

I think the experience from Street View is the best.
Double click and their "smart hotspot" are crucial to make a real immersive experience.
I love the way google shows a circle in perspective if you are over the street, or an oriented square if you are over a building, that's really helps to make the 3D illusion.
And google interprets our double clicks, orienting the view and zooming the image if we are clicking a building or changing the pano if we click over the street (even they made a "pseudo blending" so we don't feel the "break" of changing the pano).
Is there a way to make something similar to Google Street View?
I think they are combining the LIDAR information to make their smart hotspot. But maybe we could define manually where is the street (or floor) and where are the walls, so our mouse can show with a circle (or square) in perspective according with the real 3D of the scene.
That's would a really big step for KRPano


btw you cant compare krpano with google. Google has lasers and mapping data, building a pseudo 3d environment with photos mapped to the environment, they have long/lat coordinates and a bearing (where the north is at). 99,999% of the users here just have a spherical/cubic image. Or maybe a couple of images, but not of every street from every angle. Which would mean you have to "define" by hand where you have a photo.

you can build upon krpano to do all that. Krpano is very modular. But krpano shouldnt be made towards that goal because that would mean, to make a tour to work, you should provide all that data.

Zephyr

Professional

Posts: 1,003

Location: Netherlands

Occupation: Web developer

  • Send private message

16

Tuesday, May 24th 2011, 1:54pm

there is also the double click plugin from ahoeben..

would that be a good alternative?

Tuur *thumbsup*


Hmm missed that of ahoeben. But yeah that would work too.

Similar threads