Sie sind nicht angemeldet.

Zephyr

Profi

  • »Zephyr« ist der Autor dieses Themas

Beiträge: 1 003

Wohnort: Netherlands

Beruf: Web developer

  • Nachricht senden

1

Mittwoch, 3. Dezember 2008, 17:27

updatescreen() not working

Hi,

I've created a virtual tour and when I go from 1 location to another, and move a little bit, the new location has "crooked" sawtooth lines that should be straight. I then open my options plugin, set the tessmode from 5 to 5 (so just basicly clicking till it is 5 again) the lines are straight again. Same happened if I click the details from 32 back to 32.

So I thought this is an updatescreen() problem because the option plugin forces an updatescreen();

I then created an <krpano onstart("updatescreen();") >
That didnt work. Because I think, it has no "screen" to update yet, because it just started

Next thing I tried was forcing an update from within a plugin I use to change the current panorama.

Quellcode

1
2
3
4
5
6
7
8
9
10
11
function doPano(toLoad:String)
{	
	try { 
		krpano.call("loadpano(" + pani + ".xml,null,MERGE,BLEND(1));"); //Make the call, executing the new pano
		krpano.call("updatescreen();")
	}
	catch(error)
	{
		trace("can't get action(loadpano(" + myStyle.pprefix +  toLoad + "_" + myStyle.currentvar + ")" + " Check global.xml");
	}
}

Didn't work either, changed everything from updatescreen to updateobject(), no results. Same as copying

Quellcode

1
2
3
4
5
6
7
	<display fps="60"
	     	details="32"
	     	tessmode="5"
	     	movequality="HIGH"
	     	stillquality="HIGHSHARP"
	     	stilltime="0.25"
	 />

to every location instead keeping it global in the global.xml

What am I doing wrong or why, doesn't the screen update when you move to another location?

2

Samstag, 6. Dezember 2008, 13:55

Hi,

do you use multiresolution panoramas?
if yes - is there a details setting in the levels tags?
these details settings overwrittes the global one.

Best regards,
Klaus

Zephyr

Profi

  • »Zephyr« ist der Autor dieses Themas

Beiträge: 1 003

Wohnort: Netherlands

Beruf: Web developer

  • Nachricht senden

3

Montag, 8. Dezember 2008, 09:01

Hi,

No im using a spherical panorama with 1 level, converted to tiles. Do I need to set the details in every panorama? Cant he use the global one and still keep the llnes straight?

4

Montag, 8. Dezember 2008, 22:51

Hi,

both is possible to, a global setting, or individual ones in every xml, normally it should work...
do you have a link to a not working example?

when you use MERGE on the loadpano() call - it uses the new settings if there were some in the new xml,
if not it uses the current ones, but you can use KEEPDISPLAY addtionally to MERGE ("MERGE|KEEPDISPLAY")
to force keeping the current display settings.

and it's also possible to change the details and tessmode dynamically,
e.g. with - "set(display.details,22); updateobject();")

best regards,
Klaus

Ähnliche Themen