PDA

View Full Version : Compas demo


jaaaab
07-30-2007, 02:46 PM
Hi all,

Here's a demo of a live compas with FPP.

As it is a bit tricky to realize and i as i don't have enough time to write a tutorial for now, the only thing i can say is "all the code you need is in controller.fla".

http://www.immersive.fr/panos/?pan=metro&type=flash2.1&fullscreen=true

Cheers.

clustar
07-31-2007, 12:40 PM
Hello,

That is great.
If you have time, it would be beautiful if you wrote the tutorial.

Stefan

jaaaab
07-31-2007, 01:03 PM
Hi,

Yes i plan to write it, but not until next week :/

++

jaaaab
07-31-2007, 03:24 PM
Is anyone experiencing trouble with the compas?

I mean someone told me he loses the real time FOV while switching the view.

Thanks.

yalon
08-01-2007, 04:46 PM
Very impressive demo!
Can you please check my post "pano1 -> movie.flv - > pano2"
I really could use some help.:D
Thanks
Yalon

suastegui
08-14-2007, 10:03 PM
Hi,

Yes i plan to write it, but not until next week :/

++

Hello jaaaab,

any idea when you'll find time give us a few hints on how to modify the controller.fla? I really have no idea.....
Thanx.

whizzkid
08-15-2007, 02:29 PM
I made a compass using an embedded panorama in flash.
Since I don't know what events the panorama object fires (Is this documented somewhere?) I make an interval which updates my compass image.

You can read the current angle of rotation from the panorama object like this:

compass_mc.rotation=panorama.pano.pan;

where panorama is your panorama object :)

whizzkid
08-15-2007, 02:41 PM
Is anyone experiencing trouble with the compas?

I mean someone told me he loses the real time FOV while switching the view.

Thanks.

Yes,
You enter on viewpoint A
Click on B, this works
Then click on A again, this also works
Click on B again, and then the pano doesn't change, viewpoint A still has the compass.

I have a question for you, but I think you're having the same problem as I have.

When you load a different panorama, you need to know when to change the compass-image, because you want it to be displayed on another location. But, how do you know when the panorama is finished loading? The documentation about controlling the object from flash is missing (or am I looking in the wrong place?)
I can't find anything about an onLoad-event or something like that that i can monitor.

I use a compass which I update using an Interval, but when i load another panorama my
panorama.pano.pan returns an error because panorama.pano is null.

If I'm correct, you're also using an interval to update the compass-angle, and I think you also just fade out the compass when the user clicks on another viewpoint, wait a little, then display it again, without actually checking if the panorama is loaded. Am I correct?

I can try to start a loop which checks the panorama.pano.loadCompleted periodically to see if the panorama has loaded, but this is a bit of a workaround, I prefer an event :P