View Full Version : initial saturation
Virtualguide
12-01-2009, 11:48 AM
Is it possible to start a pano with initial value of brightness=-1 before loading 6 cube faces? if I use onload, onstart commands, the color cubefaces are loaded and just then brightness is changed.
(I do not wnat to use disableLoading=1 and loading panoramas with onStart, because it makes problems when I want to load another xml file.)
Thanks a lot.
allSaints
12-01-2009, 12:43 PM
Well,
brightness=-1 is a hotspots command, and the earliest time you can execute a hotspots command is in the onStart event, which fires directly after the hotspots plugin is loaded. Correct me if I'm wrong here.
But the Debug Player shows that a brightness command in the onStart event is executed long after the pano starts loading and all hotspots in the xml file are parsed. So I think the pano will be displayed before the brightness command is executed.
Maybe there is another way.
Tommy
I can imagine the loading of blank black images in beginning will do the trick and give you a freedom to play with xml later
Virtualguide
12-01-2009, 01:26 PM
I can imagine the loading of blank black images in beginning will do the trick and give you a freedom to play with xml later
ok, maybe in this particular case it would be helpful, still I am not sure what would be loaded first. But still, this woiuld be not the solution, I would like to use saturation init vauses also...
Hm...
siesfor
12-01-2009, 05:01 PM
you can add a pano tag between your global tags with your brightness value, ie...
<global >
<pano brightness="-1" />
</global>
problem now of course, is that every pano will start w/ a negative brightness. but since I gather you're using different xmls(?) that may not be that big of a deal.
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.