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

Tuesday, December 9th 2008, 8:43pm

a newbie question..

Hi,

sorry i'm ashamed to ask so noob question... ;(

how to launch an action by clicking on main pano ??
pano onclick = action...

Thanks

2

Wednesday, December 10th 2008, 11:00pm

Hi,

you mean a click on the whole pano?
there is no action for this at the moment...

but you can do this with a trick:
  • set a interrupt action, this is your clicking action
  • wait a very long time
example:

Source code

1
2
3
4
5
6
7
<krpano onstart="oninterrupt( action(my_pano_click) );wait(10000);">

  <action name="my_pano_click">
	lookto(0,0,150);
  </action>
  ...
</krpano>


best regards,
Klaus

3

Thursday, December 18th 2008, 1:57am

hi,

ah i'm not so noob ;-)

yes i meant a click mouse on whole pano,
your solution doesn't works for me,
so i prefer wait till you implement the function.

See u

Graydon

Professional

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

4

Thursday, December 18th 2008, 2:47am

cheat with a transparent png or white jpg mask

You could add a "layer" over the pano... either a blank transparent png or a white jpg (mask) set to 100%x100% that would capture a click on the pano.

if you disabled mouse controls and just used keyboard... or added the pano controls plugin on a level "above" the transparent layer then you could still enable control of the view.

In fact... could get some interesting effects with a white jpg mask and with every click switching the blend mode... but I am getting off topic.

Graydon

5

Monday, December 22nd 2008, 1:58am

Hi,
cheating with transparent layer,
sounds interesting, any xml code example ?

Thanks

Graydon

Professional

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

6

Monday, December 22nd 2008, 5:18am

I don't have anything myself.

The ver 1.0.7 download came with sample mask effects that you could look at... (look at the jpg's being used for the masks as well to see what I mean by a white jpg).

Or look here... http://www.krpano.com/docu/xml/#plugin

you'll probably have to work with the zorder, capture and children options.

It would be just like adding a logo image to the screen.

7

Monday, December 22nd 2008, 11:43am

Thanks,
i will try on the upcomings days and report here if i find successfull trick.

btw : Congrats Klaus, since 1.08 support qtvr .mov,
it was the feature i'm waiting for to switch from FPP,
and the best: this is faster and smoother than movdecoder.swf FPP Plugin, on my old powerbook i save CPU Power !
(now i can get rid of parser.php and use .mov file even in local)
if the plugin development follow this line and add some missing features, you can be the winner :D