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, April 4th 2009, 6:23pm

Compass...

I want a linear and circular Compass in my GUI, like in DevalVR (www.devalvr.com).
I think it's a new plugin in krpano...

Graydon

Professional

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

2

Saturday, April 4th 2009, 10:01pm

I don't have the devalVR plugin... so I don't know what the devalVR one looks like...

but are you looking for something like this...

http://www.krpano.com/examples/108b7/exa…ss/compass.html

?

3

Tuesday, April 7th 2009, 12:40am

Yes...

Yes!
It's great!
How can I get that compass?
Thank you.
Sergio.

Shanti

Intermediate

Posts: 301

Location: Puerto Vallarta

Occupation: Web Developer

  • Send private message

4

Tuesday, April 7th 2009, 9:44am

Just look at the source, is amazingly simply! Klaus, you are king!

5

Tuesday, April 7th 2009, 3:24pm

Help...

Tell me how to download the complete compass example...
Thank you...
Gracias.

Zephyr

Professional

Posts: 969

Location: Netherlands

Occupation: Web developer

  • Send private message

6

Tuesday, April 7th 2009, 8:16pm

RE: Help...

Tell me how to download the complete compass example...
Thank you...
Gracias.


http://www.krpano.com/examples/108b7/exa…ass/compass.xml

Look at the xml, It's several images stacked on eachother
3d childrens game using krpano Game
Minify your xml with my krpano XML Compressor
Krpano XML Parsing Error Checklist
Available for hire (krpano xml, javascript, actionscript, flash, php and ipad plugins).

7

Tuesday, April 7th 2009, 9:24pm

Thank you...

Ok.
Thank you.

8

Tuesday, April 7th 2009, 11:54pm

Hi, the xml files of the examples are also included in the download

http://krpano.com/download/beta/

9

Saturday, April 25th 2009, 1:30pm

compass with altimeter

Thank you Klaus for this compas it's great!
A virtual tour in Marseilles with it:http://www.spheerique.com/spheros/visite…enotredame.html
Could you make a compass with an altimeter like in the planes, it wil be great+++++++! *thumbup*
Thank you

10

Monday, April 27th 2009, 1:49pm

Could you make a compass with an altimeter like in the planes, it wil be great+
Hi, sorry, I don't understand - an "altimeter" in a pano???
what should it display? the height doesn't change while looking around?

Shanti

Intermediate

Posts: 301

Location: Puerto Vallarta

Occupation: Web Developer

  • Send private message

11

Monday, April 27th 2009, 3:04pm

I am guessing he means tilt, when you look up and down.

germain

Trainee

Posts: 53

Location: MARSEILLE FRANCE

Occupation: PANOPHOTOGRAPHE

  • Send private message

12

Tuesday, April 28th 2009, 7:27pm

Sorry Klaus, I'm Germain alias Spheerique, I meaned inclinometer and not altimeter !! I think YOU can make that ! *tongue*

13

Tuesday, April 28th 2009, 10:52pm

Hi,

yes, such should be possible,
here is a very quick try:

http://www.krpano.com/examples/108b7/exa…2/compass2.html

xml:
http://www.krpano.com/examples/108b7/exa…s2/compass2.xml

there is a fixed mask, and a image (this here) that was masked with it, was moved up and down,

best regards,
Klaus

germain

Trainee

Posts: 53

Location: MARSEILLE FRANCE

Occupation: PANOPHOTOGRAPHE

  • Send private message

14

Wednesday, April 29th 2009, 12:50pm

Thank you a lot ++++++ Klaus ! and the fastet one! It's great!
Vielen danke Klaus! du bist der beste und der schneller ! es ist superCrass !! *smile*

Shanti

Intermediate

Posts: 301

Location: Puerto Vallarta

Occupation: Web Developer

  • Send private message

VN2009

Professional

Posts: 1,334

Location: Duluth MN

  • Send private message

16

Thursday, April 30th 2009, 1:05am

wow Klaus kicks ass ... that is cool.

germain

Trainee

Posts: 53

Location: MARSEILLE FRANCE

Occupation: PANOPHOTOGRAPHE

  • Send private message

17

Thursday, April 30th 2009, 9:54am

An exemple of the use of the new compass + inclinometer made by Klaus *thumbsup*
http://www.spheerique.com/spheros/flaneuse6c.html

Shanti

Intermediate

Posts: 301

Location: Puerto Vallarta

Occupation: Web Developer

  • Send private message

18

Thursday, April 30th 2009, 10:02am

the inclinometer is not working correctly on your example germain, it disappears at about half way up or down *sad*

germain

Trainee

Posts: 53

Location: MARSEILLE FRANCE

Occupation: PANOPHOTOGRAPHE

  • Send private message

19

Thursday, April 30th 2009, 11:05pm

Yes . But i don't know what to do against that !

Graydon

Professional

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

20

Friday, May 1st 2009, 6:38am

It looks like you tried to implement it just as Klaus did with one exception...

where Klaus has...

Source code

1
2
3
4
5
6
7
8
9
10
11
<action name="onviewchange">

			sub(plugin[compass_pointer].rotate, view.hlookat, heading);
			sub(plugin[compass2_plate].rotate,  heading, view.hlookat);
			
			div(tiltpos, view.vlookat, -180);
			mul(tiltmax, plugin[tiltmeter].height, 0.45);
			mul(plugin[tiltmeter].oy, tiltpos, tiltmax);
			
		
</action>


... you have for the "div(tiltpos... " line

Source code

1
div(tiltpos, view.vlookat, -40)


so, maybe the difference between using -40 and -180 would cause it.

I haven't walked myself through how to use the mask or laid out the math on this example... just pointing out some differences that might be an area to look at.

Similar threads