View Full Version : Hotspots disappear + slow
Florent
12-11-2008, 07:22 AM
Hi :)
Here is my last tour :
http://panos.thouretphotos.com/divers/lecinq/
I have some problems with it.
Sometimes, impossible to know when in advance, just after loading a new pano, every fixed hostpots (fullscreen button, hotspots for tour, map) disappear and then the pano just loaded is so slooooooooooow....
It's not every pano, not every time. Impossible to find why and how to fix it
My xml is too long to be posted here, you can download it :
http://panos.thouretphotos.com/divers/lecinq/brasseriele5.xml
Florent
12-11-2008, 12:23 PM
Hi. me. again.
Finally, I have an error just before loading the next pano :
TypeError: Error #1009: Il est impossible d'accйder а la propriйtй ou а la mйthode d'une rйfйrence d'objet nul.
at PanoController/loadImages()
at PanoController/initPanorama()
at PanoController/loadPanorama()
at Hotspots/loadPano()
at Hotspots/execute()
at Hotspots/executeFunction()
at Attributes/onDone()
at AttributeChanger/remove()
at AttributeChanger/calc()
at AttributeChanger/onTime()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
(a part of the error message is in french and mean : "Impossible to acess null object reference property or method")
I click "continue" and then the pano loads. The glassmeter doesn't appear. and then I am in the second pano, but without any hotspot and the so slooooow movements.
If you have an idea... Thanks !
allSaints
12-11-2008, 12:59 PM
Hi Florent,
I have a question:
onLoad="bienvenue.visible=1
pano.pan+=0.01
carte_recto.visible=0
carte_verso.visible=0
fontaine_vers_rue.visible=0
fullscreen.visible=0
plan.visible=0"
onLoad2="bienvenue.visible=0
plan.visible=1
pano.pan+=0.01"
Why do you have to hide and unhide your hotspots when they are linked? Isn't that just the point with linking, that they are visible just for that pano?
Tommy
Florent
12-11-2008, 01:11 PM
Hi Florent,
I have a question:
Why do you have to hide and unhide your hotspots when they are linked? Isn't that just the point with linking, that they are visible just for that pano?
Tommy
I have modified the code.
now it is :
onLoad="bienvenue.visible=1
carte_recto.visible=0
carte_verso.visible=0
fontaine_vers_rue.visible=0
fullscreen.visible=0
plan.visible=0"
onLoad2="bienvenue.visible=0"
When you load the tour, for the first time, it hides some hotspots. after that, they're visible or not using linking.
allSaints
12-11-2008, 01:13 PM
I also noticed that you set qualityStatic="..."
Why don't you also set qualityMotion="..." as this is the parameter that decides the image quality when moving the pano?
Tommy
Florent
12-11-2008, 01:20 PM
Because qualitymotion default is "low", and I don't need to modify it.
siesfor
12-11-2008, 05:54 PM
hey Florent, found a couple problems....
looks like allSaints was on the right track with the hiding hotspots part.
<global
onStart="loadPano(panoName=fontaine/pano&pan=-4.5&tilt=-90&zoom=0.7)"
onLoad="pano.saturation=-1
bienvenue.visible=1
carte_recto.visible=0
carte_verso.visible=0
fontaine_vers_rue.visible=0
fullscreen.visible=0
plan.visible=0"
onLoad2="bienvenue.visible=0"
because you have the onload in the global section, it is used as the onload for every pano, not just the first one. Something you could try...
onStart="loadPano(panoName=fontaine/pano&pan=-4.5&tilt=-90&zoom=0.7)
onLoad=pano.saturation=-1
bienvenue.visible=1
carte_recto.visible=0
carte_verso.visible=0
fontaine_vers_rue.visible=0
fullscreen.visible=0
plan.visible=0"
I took out 2 of the quotation marks so that onload is contained within onStart and isn't a global function. I also removed onLoad2 since I don't believe that would be necessary. Now, onload shouldn't be affecting every pano like it was before.
As for the slow second pano, when I touched the pano after loading, it would pan with some abrupt stopping. But, if I let it set a couple seconds before interacting with the pano, the global onLoad would kick in, causing it to lose it's saturation, but it would pan fine. (Huh, now that I write that, I go back and check it again, but now it won't desaturate anymore, and only when it desaturated, did the arrows show up to move to other panos. I also notice that the mp3 of the water keeps playing, even though I've moved on to another pano. It might be the mp3player causing problems while panning. Might try taking that out just to see if it helps.)
final couple things. When I first load the pano, I get a loadingfailed message. Probably, because it was trying to load a pano from the <parameters> section. But since you're skipping straight to the hotspots section, you'll need to add
disableLoading = 1
inside your <parameters> brackets.
Also, the glassmeter not coming up for the next pano, does this happen w/ the glassmeter that came w/ FPP, or just the FFC version?
Well, I think that's everything for right now, should be plenty to dwell on.
Trausti Hraunfjord
12-11-2008, 07:32 PM
Also, the glassmeter not coming up for the next pano, does this happen w/ the glassmeter that came w/ FPP, or just the FFC version?
Not because of FFC.... yet. Simply because the Tourificator equipped version hasn't been released yet, so every panorama has to be made independently and use openUrl ... or be handcoded for making tours as of now.
That being said; Tourificator is ready - apart of a couple of tests, and will be released later today/night, with other goodies.
So for now I am pretty sure that FFC is innocent of the errors present.
siesfor
12-11-2008, 08:55 PM
Originally Posted by siesfor
Also, the glassmeter not coming up for the next pano, does this happen w/ the glassmeter that came w/ FPP, or just the FFC version?
Not because of FFC.... yet.
lifted from the xml....
layer_1 = plugins/ffc_glassMeter.swf
layer_2 = plugins/hotspots.swf
layer_3 = plugins/ffc_tooltips.swf
*shrug*
Don't worry Tuddi, not pointing fingers at your prog (...yet ;) )
Was just throwing around some ideas out as to why the glassmeter doesn't load for the next pano.
Florent
12-11-2008, 09:06 PM
So.
I modified as you told :
onStart="loadPano(panoName=fontaine/pano&pan=-4.5&tilt=-90&zoom=0.7)
bienvenue.visible=1
carte_recto.visible=0
carte_verso.visible=0
fontaine_vers_rue.visible=0
fullscreen.visible=0
plan.visible=0"
adding disableLoading = 1
and if I remove sounds, it seems to work. no I just have to find a way to add sound with a clean method....
Btw, thanks a lot for your help !
EDIT : answered too quickly... still the same with IE7 (slow pano, hotspots unloaded)
siesfor
12-11-2008, 09:36 PM
aye, your problem is the ffc_glassmeter.swf plugin that you're using. Try the one that came w/ FPP.
I d/l'ed your pano to tinker around with, troubleshooting. But I didn't d/l the glassmeter, I just used the one from FPP, and everything worked fine. I d/l'ed the ffc_glassmeter plugin you were using, and found it was what was causing the problems. It wouldn't come up for the next pano, and hotspots wouldn't show and the pano would act sluggish. Using the FPP version, and everything worked fine.
Florent
12-11-2008, 09:59 PM
pfiuuuuuuuuuuuuuu..........
I note that with a pen on my screen. just to remember.
maybe Tuddi can say why ?
THANKS !!!!
(it works even with opera and safari)
Trausti Hraunfjord
12-11-2008, 10:35 PM
No worries siesfor, you are only seeking clarification, and I fully understand that.
The ffc_ marked glassMeter plugin is the original FPP glassMeter.swf, where the only thing that has been changed, was adding weak references for garbage collection to work inside the Flashificator. No functionality or other stuff has been changed.
... and that leads me to think that maybe the garbage collection is so effective that it cleans out the glassmeter from other panos in the tour.... http://www.hraunfjord.org/1/stills/smileys/unknw.gif I don't really think it's like that, but I will make some tests to make sure it ain't that way.
Florent
12-11-2008, 10:37 PM
Thanks for all... I hope my mistakes can give you the opportunity to improve your products :cool:
Trausti Hraunfjord
12-11-2008, 10:41 PM
Started to write the above post of mine before siesfor confirmed that it's the glassmeter's fault, had to leave the house, finished the writing and posted, not checking for replies...
Will have my main programmer to check this out and fix whatever it is that needs fixing.
Trausti Hraunfjord
12-12-2008, 12:32 AM
Confirmed on this end. The glassMeter plugin provided with Flashificator is at fault. Until now, we have not tested it in tours, simply because we hadn't come that far in the development, and with a single pano it works well and error-free.
I'm sincerely sorry for the problems this has caused you Florent, and the time others have put into trying to spot the reason for the problem... and that brings a big thank you to siesfor and his unstoppable willingness to help those who are in need for coding solutions!
Hope to have a fail-free glassMeter for the next release (not today... due to the domino effect this caused ... obviously I need to get better at testing).
Florent
12-12-2008, 06:08 AM
The most important for me is to have a working tour now.
I have to say thank you again to siesfor for his help !!!!! (and to you, for flashificator :o)
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.