View Full Version : Contrast, brightness, hue, saturation, effects
Dear All,
Just wishing to adjust the brightness & contrast to balance between mac and PC jpg gamma as best I can, rather than having separate or altered resources. I thought couple of lines of code to do what the editor does............ and that would be quicker!?
tried using code in flash : panorama.pano.hue = 0.5
I've also tried the xml by copying from the editor to the xml file.
Neither is working...... has anyone got this working? I've not found anything on the forum discussing these particular effects found in the editor effects section. And are not discussed in the parameters help either.
Any ideas?
Cheers
myksa
03-19-2009, 09:14 AM
pano.hue=0.5
pano.satutation=-1
etc
But adding effects to panorama is very "heavy" to display, so panorama might play less smoothly
Myksa
thanks,
but I cannot get that to work? I tried it in the flash.
Had not thought of the performance level, perhaps it's a case of adjusting resources.
Anyone else got any method of handling gamma differences.
Why oh why do we humans have two systems !!! Argh.
myksa
03-19-2009, 02:45 PM
Try do add an action in global section:
onLoad="pano.saturation=-1"
More detailed example
<global onLoad="pano.saturation=-1">
<!-- put some hotspots here -->
</global>
This definately shoud work ;)
Myksa
Many thanks :), the first one worked...... onload in the xml.
izoneguy
03-20-2009, 07:09 PM
But how would you know if someone was viewing with PC or MAC?
Do you have a button to direct the viewer?
I typically try to split the difference....
The pano may be a touch darker on PC and lighter on a MAC.
But after being in TV for 30 years I can tell you that everyones monitors
will be different.
OK I've been advised of this flash actionscript to make the changes:
var hotspots:Object = panorama.externals.hotspots; // hotspots plugin reference
var mySpot:Object = hotspots.getSpot("spotID"); // your spot: <spot id="spotID" />
mySpot.brightness = 2;
Yes I get the comment about splitting the difference. (what I've ended up doing immediately for your reasons as well as time.) I intended to detect which system/browser and script the switch. Who knows I might get around to it at some point.
I would add that for an image or a video the splitting is fine as the whole screen is presented at once so split balance between the dark and light is achieved more easily. However with VR it is far more complicated as the light and dark is different depending on which direction one is looking at.
Thanks for everyone's comments and help.
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.